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
State Changed From-To: open->closed Committed. Thanks!