Bug 54966 - id3v2 port has gcc 3.3 trouble
Summary: id3v2 port has gcc 3.3 trouble
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-28 07:10 UTC by barney
Modified: 2003-07-29 07:48 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description barney 2003-07-28 07:10:15 UTC
	audio/id3v2 port c++ files include /usr/local/include/getopt.h, which
	has an empty prototype for getopt() that conflicts with the one in
	/usr/include/stdlib.h.  c++ in gcc 3.3 is stricter about this than
	older versions, and the port will not build on 5-Current.

Fix: Patch /usr/ports/audio/id3v2/Makefile:



This patch works on both -current and -stable.--k6jVKdr6DK18UbqllmtwPzWtoqrJALfcGubk6ycHyEQN3t3e
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- Makefile-030725	Fri Jul 25 19:52:50 2003
+++ Makefile	Sun Jul 27 17:57:33 2003
@@ -18,7 +18,7 @@
 LIB_DEPENDS=	id3-3.8.2:${PORTSDIR}/audio/id3lib
 
 USE_GETOPT_LONG=yes
-CPPFLAGS=	-I${LOCALBASE}/include
+CPPFLAGS=	-I${LOCALBASE}/include -DHAVE_DECL_GETOPT=1
 LDFLAGS=	-L${LOCALBASE}/lib
 CFLAGS+=	${CPPFLAGS}
 MAKE_ENV=	LDFLAGS="${LDFLAGS}"
How-To-Repeat: 	cd /usr/ports/audio/id3v2; make all
Comment 1 Daichi GOTO freebsd_committer 2003-07-29 07:48:03 UTC
State Changed
From-To: open->closed

Committed. Thanks!