ports/54966: id3v2 port has gcc 3.3 trouble

Barney Wolff barney at databus.com
Mon Jul 28 06:10:17 UTC 2003


>Number:         54966
>Category:       ports
>Synopsis:       id3v2 port has gcc 3.3 trouble
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 27 23:10:15 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Barney Wolff
>Release:        FreeBSD 5.1-Current i386
>Organization:
Databus Inc.
>Environment:
System: FreeBSD lab.databus.com 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Fri Jul 25 21:12:56 EDT 2003     toor at lab.databus.com:/home/obj/usr/src/sys/LAB  i386

>Description:
	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.
>How-To-Repeat:
	cd /usr/ports/audio/id3v2; make all
>Fix:
Patch /usr/ports/audio/id3v2/Makefile:

--- 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}"

This patch works on both -current and -stable.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list