[FFmpeg-devel] [PATCH] Enable C99 in Solaris C library

Jeff Downs heydowns
Thu Jun 11 01:19:02 CEST 2009

On Wed, 10 Jun 2009, M?ns Rullg?rd wrote:

> Jeff Downs <heydowns at borg.com> writes:
> > I do agree that this could be considered a bug in gcc.
> Have you reported it?

Filed as gcc bug 40411.  I can repost when I hear back.

While waiting for gcc to fix this, users can work around 
by doing --extra-libs=/usr/lib/{32 or 64}/values-xpg6.o

(using Sun compiler is not an option without some work -- it does not 
successfully compile ffmpeg)

> > Passing the object file to the linker multiple times (with the Sun linker) 
> > generates a warning, but links successfully.  I tried this through both 
> > the Sun compiler driver and gcc.
> >
> > Another way to approach this is to check execution of a small c99 test 
> > program without adding the object file, then add it only if necessary.
> That won't work if cross-compiling.  That's a problem with your patch
> too.

Agree the execution check is not suitable for cross compilation.

The patch might not be ideal for the cross environment, but the outcome is 
no worse than current (and improved significantly for native).  Use in 
cross environment could be improved by using --sysroot argument in the 
paths (I'll repost a modified patch if necessary after gcc bug is 


More information about the ffmpeg-devel mailing list