On 12/5/13 5:37 AM, Daniel Johnson wrote: > > On Dec 4, 2013, at 6:37 PM, Martin Costabel <costa...@wanadoo.fr> wrote: > >> On 4/12/13 23:38, Alexander Hansen wrote: >>>> duplicate symbol ___sputc in: >>>>>> mpeg2dec.o >>>>>> dump_state.o >> >>> The package is probably using looser syntax than the compilers on 10.9 >>> will tolerate. I'll cc the maintainer. >> >> For a similar error in vtk58, the fix was to add -std=gnu89 to the linker >> line. >> >> -- >> Martin > > Actually, this error is usually triggered by the presence of -fgnu89-inline. > It causes system headers to miscompile causing duplicate symbols to be > generated because the headers always expect C99 inline to be in effect. > -fgnu89-inline should NEVER be used with 10.9 or Bad Things will happen. > However, I get no such error building mpeg2dec on 10.9 with Xcode 5.0.2 and I > don't get and -std or -fgnu89 options added. Glynn, can you post the entire > build log or at least a bit before what you already posted? I need to see the > actual compile commands, not just the final linking one. > > Daniel >
Here's the link line for me: gcc -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -g -O3 -fomit-frame-pointer -fno-common -I/usr/X11R6/include -I/sw/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -g -O2 -Wl,-dylib_file -Wl,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -o .libs/mpeg2dec mpeg2dec.o dump_state.o getopt.o gettimeofday.o -Wl,-framework -Wl,Cocoa -L/sw/lib ../libvo/libvo.a -lSM -lICE -L/usr/X11R6/lib -lXext -lX11 -lXv /sw/lib/libSDLmain.a /sw/lib/libSDL.dylib ../libmpeg2/.libs/libmpeg2.dylib ../libmpeg2/convert/.libs/libmpeg2convert.dylib duplicate symbol ___sputc in: mpeg2dec.o dump_state.o -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ Fink-beginners mailing list Fink-beginners@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.beginners Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-beginners