compile error (redefinition of...): even at default-values for switches (/var/db/ports/) this problem happens. according to pkg_info -W /usr/local/include/libavutil/common.h it is from ffmpeg-2008.07.27_2. mplayer is (Makefile*) 0.99.11_5 csup from 2008_08_07 (today) from 72.233.193.64 at about 16:30GMT Essential part of Output at portinstall multimedia/mplayer: ---SCHNIPP--- cc -O2 -fno-strict-aliasing -pipe -march=athlon-mp -O3 -ffast-math -fomit-frame-pointer -I./libavcodec -I./libavformat -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -I. -I./libavutil -O2 -fno-strict-aliasing -pipe -march=athlon-mp -O3 -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include -D_THREAD_SAFE -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/pango-1.0 -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/freetype2 -I/usr/local/include/pixman-1 -I../libavcodec -I../libavformat -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -I.. -I../libavutil -O2 -fno-strict-aliasing -pipe -march=athlon -mp -O3 -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include -D_THREAD_SAFE -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/pango-1.0 -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/freetype2 -I/usr/local/include/pixman-1 -c -o vo_yuv4mpeg.o vo_yuv4mpeg.c In file included from /usr/local/include/libavutil/rational.h:32, from vo_yuv4mpeg.c:46: /usr/local/include/libavutil/common.h:124: error: redefinition of 'av_log2' ./libavutil/common.h:98: error: previous definition of 'av_log2' was here /usr/local/include/libavutil/common.h:140: error: redefinition of 'av_log2_16bit' ./libavutil/common.h:116: error: previous definition of 'av_log2_16bit' was here /usr/local/include/libavutil/common.h:153: error: redefinition of 'mid_pred' ./libavutil/common.h:131: error: previous definition of 'mid_pred' was here /usr/local/include/libavutil/common.h:200: error: redefinition of 'av_clip' ./libavutil/common.h:178: error: previous definition of 'av_clip' was here /usr/local/include/libavutil/common.h:212: error: redefinition of 'av_clip_uint8' ./libavutil/common.h:190: error: previous definition of 'av_clip_uint8' was here /usr/local/include/libavutil/common.h:223: error: redefinition of 'av_clip_int16' ./libavutil/common.h:201: error: previous definition of 'av_clip_int16' was here /usr/local/include/libavutil/common.h:248: error: redefinition of 'ff_get_fourcc' ./libavutil/common.h:212: error: previous definition of 'ff_get_fourcc' was here /usr/local/include/libavutil/common.h:335: error: redefinition of 'read_time' ./libavutil/common.h:300: error: previous definition of 'read_time' was here In file included from /usr/local/include/libavutil/rational.h:32, from vo_yuv4mpeg.c:46: /usr/local/include/libavutil/common.h:383:1: warning: "STOP_TIMER" redefined In file included from ../libavutil/avutil.h:40, from ../libswscale/swscale.h:30, from vo_yuv4mpeg.c:43: ./libavutil/common.h:349:1: warning: this is the location of the previous definition In file included from vo_yuv4mpeg.c:46: /usr/local/include/libavutil/rational.h:37: error: redefinition of 'struct AVRational' /usr/local/include/libavutil/rational.h:40: error: redefinition of typedef 'AVRational' ./libavutil/rational.h:39: error: previous declaration of 'AVRational' was here /usr/local/include/libavutil/rational.h:48: error: redefinition of 'av_cmp_q' ./libavutil/rational.h:47: error: previous definition of 'av_cmp_q' was here /usr/local/include/libavutil/rational.h:60: error: redefinition of 'av_q2d' ./libavutil/rational.h:59: error: previous definition of 'av_q2d' was here gmake[1]: *** [vo_yuv4mpeg.o] Error 1 gmake[1]: Leaving directory `/usr/ports/multimedia/mplayer/work/MPlayer-1.0rc2/libvo' gmake: *** [libvo/libvo.a] Error 2 *** Error code 2 Stop in /usr/ports/multimedia/mplayer. *** Error code 1 Stop in /usr/ports/multimedia/mplayer. ** Command failed [exit code 1]: /usr/bin/script -qa /usr/tmp/portinstall.84625.0 env make ** Fix the problem and try again. ** Listing the failed packages (-:ignored / *:skipped / !:failed) ! multimedia/mplayer (unknown build error) ---schnapp--- How-To-Repeat: portinstall multimedia/mplayer or in /usr/ports/multimedia/mplayer/ simply make
Maintainer of multimedia/mplayer, Please note that PR ports/126354 has just been submitted. If it contains a patch for an upgrade, an enhancement or a bug fix you agree on, reply to this email stating that you approve the patch and a committer will take care of it. The full text of the PR can be found at: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/126354 -- Edwin Groothuis via the GNATS Auto Assign Tool edwin@FreeBSD.org
State Changed From-To: open->feedback Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Here is the fix. Diff to the current mplayer port is attached. This also fixes the build of mencoder which obviously suffers the same issue. It uses a similar hack as in http://lists.freebsd.org/pipermail/freebsd-multimedia/2008-July/008856.html but does it directly in mplayer's configure script. Riggs
I ran into the exact same compile problem as the OP. The proposed patch allows the build to complete. Thanks! -JN
Responsible Changed From-To: freebsd-ports-bugs->chinsan I'll take this.
chinsan 2008-08-24 11:20:52 UTC FreeBSD ports repository Modified files: multimedia/mplayer Makefile Log: - Fix build with update ffmpeg. Thsnks for all helpers: mezz, Kalten, Thomas E. Zander(maintainer), John Nielsen PR: ports/126354 Submitted by: Kalten <kalten at sbox.tu-graz.ac.at> Tested on: tinderbox and my home box Revision Changes Path 1.174 +2 -1 ports/multimedia/mplayer/Makefile _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: feedback->closed Committed with mezz's version, thanks.
chinsan 2008-08-24 17:49:32 UTC FreeBSD ports repository Modified files: multimedia/mplayer Makefile multimedia/mplayer/files patch-ad Log: - Remove the last commit as maintainer's request[B. - Use maintainer's patch which also fix build multimedia/mencoder. Thanks for all helpers: mezz, Kalten, Thomas E. Zander(maintainer), John Nielsen PR: ports/126354 Submitted by: Kalten <kalten at sbox.tu-graz.ac.at> Tested on: tinderbox and my home box Approved by: Thomas E. Zander(maintainer) Revision Changes Path 1.175 +1 -2 ports/multimedia/mplayer/Makefile 1.33 +10 -1 ports/multimedia/mplayer/files/patch-ad _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"