Bug 126354 - multimedia/mplayer vs. ffmpeg compile-Error (redefine)
Summary: multimedia/mplayer vs. ffmpeg compile-Error (redefine)
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: chinsan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-07 22:50 UTC by Kalten
Modified: 2008-08-24 18:50 UTC (History)
0 users

See Also:


Attachments
mplayer_diff.txt (900 bytes, text/plain; charset=iso-8859-15)
2008-08-18 14:28 UTC, Thomas E. Zander
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kalten 2008-08-07 22:50:01 UTC
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-08-08 00:49:36 UTC
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
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2008-08-08 00:49:38 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Thomas E. Zander 2008-08-18 14:28:57 UTC
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
Comment 4 John Nielsen 2008-08-21 23:22:46 UTC
I ran into the exact same compile problem as the OP. The proposed patch 
allows the build to complete. Thanks!  -JN
Comment 5 chinsan freebsd_committer freebsd_triage 2008-08-24 10:56:36 UTC
Responsible Changed
From-To: freebsd-ports-bugs->chinsan

I'll take this.
Comment 6 dfilter service freebsd_committer freebsd_triage 2008-08-24 12:21:05 UTC
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"
Comment 7 chinsan freebsd_committer freebsd_triage 2008-08-24 12:21:33 UTC
State Changed
From-To: feedback->closed

Committed with mezz's version, thanks.
Comment 8 dfilter service freebsd_committer freebsd_triage 2008-08-24 18:49:41 UTC
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"