[Ffmpeg-devel] OS/X - undefined symbols due to strip'd shared libs

Diego Biurrun diego
Fri Oct 21 15:45:24 CEST 2005


On Thu, Oct 20, 2005 at 10:16:33PM -0700, Steven M. Schultz wrote:
> 
> 	On OS/X the shared libs must be installed with "install -s" which
> 	strips all the global symbols.  Linking against a stripped library
> 	gives undefined symbols.
> 
> 	I noticed this when linking against libavutil.dylib where
> 	_ff_log2_tab is supposed to reside.  Looking at the symbol table
> 
> sms% nm /usr/local/lib/libavutil.dylib
> 
> /usr/local/lib/libavutil.dylib(single module):
>          U _frexp
>          U _ldexp
>          U _log
> 
> 	"install -s" removed _everything_ except the 3 undefineds.
> 
> 	The attached patch for ./configure creates an 'installstrip' variable
> 	which can be overriden on a per OS basis.  The default is set to be
> 	"-s", then in the Darwin) section installstrip="" is done.  Later
> 	on "INSTALLSTRIP=$installstrip" is used.
> 
> 	After the patch 'nm /usr/local/lib/libavutil.dylib | grep ff_log2"
> 	yields:
> 
> 00002d90 S _ff_log2_tab
> 
> 	Much better :)

Thanks, applied.

Diego





More information about the ffmpeg-devel mailing list