[MPlayer-dev-eng] [PATCH] OS/X localtime_r multiply defined

Michael Niedermayer michaelni at gmx.at
Fri Apr 16 15:23:16 CEST 2004


Hi

On Wednesday 14 April 2004 01:05, Steven M. Schultz wrote:
> Hi!
>
> 	After installing a copy of ffmpeg/libavformat into the MPlayer
> 	source tree the symbol localtime_r() is multiply defined when
> 	building mencoder on OS/X:
>
> ld: warning multiple definitions of symbol _locale_charset
> /usr/lib/libiconv.dylib(localcharset.o) definition of _locale_charset
> /usr/local/lib/libintl.dylib(localcharset.o) definition of _locale_charset
> ld: multiple definitions of symbol _localtime_r
> /usr/lib/libm.dylib(localtime.So) definition of _localtime_r
> libavformat/libavformat.a(os_support.o) definition of _localtime_r in
> section (__TEXT,__text) gmake: *** [mencoder] Error 1
>
> 	This is because HAVE_LOCALTIME_R is used by libavformat/os_support.c
> 	but MPlayer's ./configure does not define HAVE_LOCALTIME_R for systems
> 	which have it.
>
> 	A patch against the current CVS version is attached which adds a test
> 	for localtime_r and defines HAVE_LOCALTIME_R in config.h as needed
> 	(the ffmpeg folks have graciously added a '#include "config.h"' to
> 	os_support.c).
applied

[...]
-- 
Michael
level[i]= get_vlc(); i+=get_vlc();		(violates patent EP0266049)
median(mv[y-1][x], mv[y][x-1], mv[y+1][x+1]);	(violates patent #5,905,535)
buf[i]= qp - buf[i-1];				(violates patent #?)
for more examples, see http://mplayerhq.hu/~michael/patent.html
stop it, see http://petition.eurolinux.org & http://petition.ffii.org/eubsa/en




More information about the MPlayer-dev-eng mailing list