[MPlayer-dev-eng] [PATCH] Windows DLL support for OS X/Intel (cleaned version)

Dominik 'Rathann' Mierzejewski dominik at rangers.eu.org
Mon Nov 20 13:16:22 CET 2006


On Monday, 20 November 2006 at 03:24, Nicolas Plourde wrote:
> 
> On 19-Nov-06, at 6:04 PM, Bernd Ernesti wrote:
> 
> >
> >Removing the stale } made it possible to compile ext.c but later when
> >mplayer is linked:
> >
> >loader/libloader.a(ldt_keeper.o): In function `Setup_LDT_Keeper':
> >ldt_keeper.c:(.text+0x76): undefined reference to `mmap_anon'
> >loader/libloader.a(ext.o): In function `FILE_dommap':
> >ext.c:(.text+0x1cd): undefined reference to `mmap_anon'
> >loader/libloader.a(ext.o): In function `CreateFileMappingA':
> >ext.c:(.text+0x2b6): undefined reference to `mmap_anon'
> >loader/libloader.a(ext.o): In function `VirtualAlloc':
> >ext.c:(.text+0x4d5): undefined reference to `mmap_anon'
> >gmake: *** [mplayer] Error 1
> >
> 
> I just tested the patch on linux and seems like libosdep.a need to be  
> moved after loader weird...

That's to be expected. If loader uses symbols from osdep then osdep needs
to be after loader in the link command.

R.

-- 
MPlayer developer and RPMs maintainer: http://rpm.greysector.net/mplayer/
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
	-- from "Collected Sayings of Muad'Dib" by the Princess Irulan



More information about the MPlayer-dev-eng mailing list