Bug 6742 - xorg xprt linking needs to be re-ordered on darwin to function properly
Summary: xorg xprt linking needs to be re-ordered on darwin to function properly
Status: RESOLVED WORKSFORME
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: git
Hardware: PowerPC Mac OS X (All)
: high normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2006-04-26 02:04 UTC by paul
Modified: 2008-05-06 01:38 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
ok fine, i did it (2.03 KB, patch)
2006-05-25 02:40 UTC, paul
no flags Details | Splinter Review
also, csrg (5.70 KB, patch)
2006-05-25 04:32 UTC, paul
no flags Details | Splinter Review

Description paul 2006-04-26 02:04:31 UTC
/usr/bin/glibtool --tag=CC --mode=link gcc  -D_BSD_SOURCE -DHAS_FCHOWN
-DHAS_STICKY_DIR_BIT   -I../include -I../include -I../Xext -I../composite
-I../damageext -I../xfixes -I../Xi -I../mi -I../miext/shadow  -I../miext/damage
-I../render -I../randr -I../fb  -arch ppc -g -pipe  -arch ppc -o Xprt -L..
Xprt-attributes.o Xprt-AttrValid.o Xprt-ddxInit.o Xprt-Init.o Xprt-mediaSizes.o
Xprt-Oid.o Xprt-spooler.o Xprt-Util.o Xprt-miinitext-wrapper.o
Xprt-dpmsstubs-wrapper.o Xprt-fbcmap.o -lX11 -lXfont -lXdmcp -lXau  
../dix/libdix.la ../xkb/libxkb.la ../xkb/libxkbstubs.la ../Xext/libXext.la
../dbe/libdbe.la ../XTrap/libxtrap.la ../record/librecord.la
../render/librender.la ../composite/libcomposite.la ../randr/librandr.la
../Xi/libXi.la ../xfixes/libxfixes.la  ../damageext/libdamageext.la
../Xi/libXi.la  ../mi/libmi.la ../miext/damage/libdamage.la ../miext/cw/libcw.la
../os/libcwrapper.la ../os/libos.la ps/libps.la raster/libraster.la
pcl/libpcl.la pcl-mono/libpcl.la ../fb/libfb.la ../render/librender.la
../mi/libmi.la ../Xext/libXext.la  -lm 
gcc -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I../include -I../include
-I../Xext -I../composite -I../damageext -I../xfixes -I../Xi -I../mi
-I../miext/shadow -I../miext/damage -I../render -I../randr -I../fb -arch ppc -g
-pipe -arch ppc -o Xprt Xprt-attributes.o Xprt-AttrValid.o Xprt-ddxInit.o
Xprt-Init.o Xprt-mediaSizes.o Xprt-Oid.o Xprt-spooler.o Xprt-Util.o
Xprt-miinitext-wrapper.o Xprt-dpmsstubs-wrapper.o Xprt-fbcmap.o 
-L/Source/xorg/xserver/xorg /usr/lib/libX11.6.2.0.dylib
/usr/lib/libXfont.1.4.1.dylib /usr/lib/libfreetype.6.3.9.dylib
/usr/lib/libfontenc.1.0.0.dylib -lz /usr/lib/libXdmcp.6.0.0.dylib
/usr/lib/libXau.6.0.0.dylib ../dix/.libs/libdix.a ../xkb/.libs/libxkb.a
../xkb/.libs/libxkbstubs.a ../dbe/.libs/libdbe.a ../XTrap/.libs/libxtrap.a
../record/.libs/librecord.a ../composite/.libs/libcomposite.a
../randr/.libs/librandr.a ../xfixes/.libs/libxfixes.a
../damageext/.libs/libdamageext.a ../Xi/.libs/libXi.a
../miext/damage/.libs/libdamage.a ../miext/cw/.libs/libcw.a
../os/.libs/libcwrapper.a ../os/.libs/libos.a ps/.libs/libps.a
raster/.libs/libraster.a pcl/.libs/libpcl.a pcl-mono/.libs/libpcl.a
../fb/.libs/libfb.a ../render/.libs/librender.a ../mi/.libs/libmi.a
../Xext/.libs/libXext.a -lm
ld: multiple definitions of symbol _serverGeneration
/usr/lib/libXfont.1.4.1.dylib(miscutil.o) definition of _serverGeneration
../dix/.libs/libdix.a(globals.o) definition of _serverGeneration in section
(__DATA,__data)
ld: multiple definitions of symbol _Xalloc
/usr/lib/libXfont.1.4.1.dylib(miscutil.o) definition of _Xalloc
../os/.libs/libos.a(utils.o) definition of _Xalloc in section (__TEXT,__text)
ld: multiple definitions of symbol _Xcalloc
/usr/lib/libXfont.1.4.1.dylib(miscutil.o) definition of _Xcalloc
../os/.libs/libos.a(utils.o) definition of _Xcalloc in section (__TEXT,__text)
ld: multiple definitions of symbol _Xfree
/usr/lib/libXfont.1.4.1.dylib(miscutil.o) definition of _Xfree
../os/.libs/libos.a(utils.o) definition of _Xfree in section (__TEXT,__text)
ld: multiple definitions of symbol _Xrealloc
/usr/lib/libXfont.1.4.1.dylib(miscutil.o) definition of _Xrealloc
../os/.libs/libos.a(utils.o) definition of _Xrealloc in section (__TEXT,__text)
ld: multiple definitions of symbol _ErrorF
/usr/lib/libXfont.1.4.1.dylib(errorf.o) definition of _ErrorF
../os/.libs/libos.a(log.o) definition of _ErrorF in section (__TEXT,__text)
ld: multiple definitions of symbol _FatalError
/usr/lib/libXfont.1.4.1.dylib(fatalerror.o) definition of _FatalError
../os/.libs/libos.a(log.o) definition of _FatalError in section (__TEXT,__text)
ld: multiple definitions of symbol _CopyISOLatin1Lowered
/usr/lib/libXfont.1.4.1.dylib(miscutil.o) definition of _CopyISOLatin1Lowered
../dix/.libs/libdix.a(dixutils.o) definition of _CopyISOLatin1Lowered in section
(__TEXT,__text)
ld: warning multiple definitions of symbol _RegisterFPEFunctions
../dix/.libs/libdix.a(dixfonts.o) definition of _RegisterFPEFunctions in section
(__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(regfpefunc.o) definition of _RegisterFPEFunctions
ld: warning multiple definitions of symbol _XpClientIsBitmapClient
Xprt-Init.o definition of _XpClientIsBitmapClient in section (__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(xpstubs.o) definition of _XpClientIsBitmapClient
ld: warning multiple definitions of symbol _XpClientIsPrintClient
Xprt-Init.o definition of _XpClientIsPrintClient in section (__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(xpstubs.o) definition of _XpClientIsPrintClient
ld: warning multiple definitions of symbol _ClientSignal
../dix/.libs/libdix.a(dixutils.o) definition of _ClientSignal in section
(__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(csignal.o) definition of _ClientSignal
ld: warning multiple definitions of symbol _GetClientResolutions
../dix/.libs/libdix.a(dixfonts.o) definition of _GetClientResolutions in section
(__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(getcres.o) definition of _GetClientResolutions
ld: warning multiple definitions of symbol _GetNewFontClientID
../dix/.libs/libdix.a(dixfonts.o) definition of _GetNewFontClientID in section
(__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(getnewfntcid.o) definition of _GetNewFontClientID
ld: warning multiple definitions of symbol _GetTimeInMillis
../os/.libs/libos.a(utils.o) definition of _GetTimeInMillis in section
(__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(gettime.o) definition of _GetTimeInMillis
ld: warning multiple definitions of symbol _ValidAtom
../dix/.libs/libdix.a(atom.o) definition of _ValidAtom in section (__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(atom.o) definition of _ValidAtom
ld: warning multiple definitions of symbol _MakeAtom
../dix/.libs/libdix.a(atom.o) definition of _MakeAtom in section (__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(atom.o) definition of _MakeAtom
ld: warning multiple definitions of symbol _NameForAtom
../dix/.libs/libdix.a(atom.o) definition of _NameForAtom in section (__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(atom.o) definition of _NameForAtom
ld: warning multiple definitions of symbol _client_auth_generation
../dix/.libs/libdix.a(dixfonts.o) definition of _client_auth_generation in
section (__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(cauthgen.o) definition of _client_auth_generation
ld: warning multiple definitions of symbol _find_old_font
../dix/.libs/libdix.a(dixfonts.o) definition of _find_old_font in section
(__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(findoldfnt.o) definition of _find_old_font
ld: warning multiple definitions of symbol _init_fs_handlers
../dix/.libs/libdix.a(dixfonts.o) definition of _init_fs_handlers in section
(__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(initfshdl.o) definition of _init_fs_handlers
ld: warning multiple definitions of symbol _remove_fs_handlers
../dix/.libs/libdix.a(dixfonts.o) definition of _remove_fs_handlers in section
(__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(rmfshdl.o) definition of _remove_fs_handlers
ld: warning multiple definitions of symbol _serverClient
../dix/.libs/libdix.a(globals.o) definition of _serverClient in section
(__DATA,__common)
/usr/lib/libXfont.1.4.1.dylib(servclient.o) definition of _serverClient
ld: warning multiple definitions of symbol _set_font_authorizations
../os/.libs/libos.a(utils.o) definition of _set_font_authorizations in section
(__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(setfntauth.o) definition of _set_font_authorizations
/usr/lib/libXdmcp.6.0.0.dylib(Alloc.o) definition of _Xalloc
/usr/lib/libXdmcp.6.0.0.dylib(Alloc.o) definition of _Xfree
/usr/lib/libXdmcp.6.0.0.dylib(Alloc.o) definition of _Xrealloc
ld: warning multiple definitions of symbol _DeleteFontClientID
../dix/.libs/libdix.a(dixfonts.o) definition of _DeleteFontClientID in section
(__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(delfntcid.o) definition of _DeleteFontClientID
ld: warning multiple definitions of symbol _StoreFontClientFont
../dix/.libs/libdix.a(dixfonts.o) definition of _StoreFontClientFont in section
(__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(stfntcfnt.o) definition of _StoreFontClientFont
ld: warning multiple definitions of symbol _GetDefaultPointSize
../dix/.libs/libdix.a(dixfonts.o) definition of _GetDefaultPointSize in section
(__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(getdefptsize.o) definition of _GetDefaultPointSize

libos, libdix, and libXfont conflict in the default order, resulting in
ld: multiple definitions of symbol _CopyISOLatin1Lowered
ld: multiple definitions of symbol _ErrorF
ld: multiple definitions of symbol _FatalError
ld: multiple definitions of symbol _Xalloc
ld: multiple definitions of symbol _Xcalloc
ld: multiple definitions of symbol _Xfree
ld: multiple definitions of symbol _Xrealloc
ld: multiple definitions of symbol _serverGeneration


moving libos and the already built and installed libX11, libXfont, libXdmcp, and
libXau at the end allows proper linking

/usr/bin/glibtool --tag=CC --mode=link gcc -arch ppc -o Xprt Xprt-attributes.o
Xprt-AttrValid.o Xprt-ddxInit.o Xprt-Init.o Xprt-mediaSizes.o Xprt-Oid.o
Xprt-spooler.o Xprt-Util.o Xprt-miinitext-wrapper.o Xprt-dpmsstubs-wrapper.o
Xprt-fbcmap.o ../dix/libdix.la ../xkb/libxkb.la ../xkb/libxkbstubs.la
../Xext/libXext.la ../dbe/libdbe.la ../XTrap/libxtrap.la ../record/librecord.la
../render/librender.la ../composite/libcomposite.la ../randr/librandr.la
../Xi/libXi.la ../xfixes/libxfixes.la ../damageext/libdamageext.la
../Xi/libXi.la ../mi/libmi.la ../miext/damage/libdamage.la ../miext/cw/libcw.la
../os/libcwrapper.la ps/libps.la raster/libraster.la pcl/libpcl.la
pcl-mono/libpcl.la ../fb/libfb.la ../render/librender.la ../mi/libmi.la
../Xext/libXext.la ../os/libos.la -lX11 -lXfont -lXdmcp -lXau
gcc -arch ppc -o Xprt Xprt-attributes.o Xprt-AttrValid.o Xprt-ddxInit.o
Xprt-Init.o Xprt-mediaSizes.o Xprt-Oid.o Xprt-spooler.o Xprt-Util.o
Xprt-miinitext-wrapper.o Xprt-dpmsstubs-wrapper.o Xprt-fbcmap.o 
../dix/.libs/libdix.a ../xkb/.libs/libxkb.a ../xkb/.libs/libxkbstubs.a
../dbe/.libs/libdbe.a ../XTrap/.libs/libxtrap.a ../record/.libs/librecord.a
../composite/.libs/libcomposite.a ../randr/.libs/librandr.a
../xfixes/.libs/libxfixes.a ../damageext/.libs/libdamageext.a
../Xi/.libs/libXi.a ../miext/damage/.libs/libdamage.a ../miext/cw/.libs/libcw.a
../os/.libs/libcwrapper.a ps/.libs/libps.a raster/.libs/libraster.a
pcl/.libs/libpcl.a pcl-mono/.libs/libpcl.a ../fb/.libs/libfb.a
../render/.libs/librender.a ../mi/.libs/libmi.a ../Xext/.libs/libXext.a
../os/.libs/libos.a /usr/lib/libX11.6.2.0.dylib /usr/lib/libXfont.1.4.1.dylib
/usr/lib/libfreetype.6.3.9.dylib -lm /usr/lib/libfontenc.1.0.0.dylib -lz
/usr/lib/libXdmcp.6.0.0.dylib /usr/lib/libXau.6.0.0.dylib
ld: warning table of contents of library: ../Xext/.libs/libXext.a not sorted
slower link editing will result (use the ranlib(1) -s option)
ld: warning multiple definitions of symbol _Xalloc
../os/.libs/libos.a(utils.o) definition of _Xalloc in section (__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(miscutil.o) definition of _Xalloc
ld: warning multiple definitions of symbol _CopyISOLatin1Lowered
../dix/.libs/libdix.a(dixutils.o) definition of _CopyISOLatin1Lowered in section
(__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(miscutil.o) definition of _CopyISOLatin1Lowered
ld: warning multiple definitions of symbol _Xcalloc
../os/.libs/libos.a(utils.o) definition of _Xcalloc in section (__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(miscutil.o) definition of _Xcalloc
ld: warning multiple definitions of symbol _serverGeneration
../dix/.libs/libdix.a(globals.o) definition of _serverGeneration in section
(__DATA,__data)
/usr/lib/libXfont.1.4.1.dylib(miscutil.o) definition of _serverGeneration
ld: warning multiple definitions of symbol _Xrealloc
../os/.libs/libos.a(utils.o) definition of _Xrealloc in section (__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(miscutil.o) definition of _Xrealloc
ld: warning multiple definitions of symbol _Xfree
../os/.libs/libos.a(utils.o) definition of _Xfree in section (__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(miscutil.o) definition of _Xfree
ld: warning multiple definitions of symbol _RegisterFPEFunctions
../dix/.libs/libdix.a(dixfonts.o) definition of _RegisterFPEFunctions in section
(__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(regfpefunc.o) definition of _RegisterFPEFunctions
ld: warning multiple definitions of symbol _XpClientIsBitmapClient
Xprt-Init.o definition of _XpClientIsBitmapClient in section (__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(xpstubs.o) definition of _XpClientIsBitmapClient
ld: warning multiple definitions of symbol _XpClientIsPrintClient
Xprt-Init.o definition of _XpClientIsPrintClient in section (__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(xpstubs.o) definition of _XpClientIsPrintClient
ld: warning multiple definitions of symbol _ClientSignal
../dix/.libs/libdix.a(dixutils.o) definition of _ClientSignal in section
(__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(csignal.o) definition of _ClientSignal
ld: warning multiple definitions of symbol _ErrorF
../os/.libs/libos.a(log.o) definition of _ErrorF in section (__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(errorf.o) definition of _ErrorF
ld: warning multiple definitions of symbol _GetClientResolutions
../dix/.libs/libdix.a(dixfonts.o) definition of _GetClientResolutions in section
(__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(getcres.o) definition of _GetClientResolutions
ld: warning multiple definitions of symbol _GetNewFontClientID
../dix/.libs/libdix.a(dixfonts.o) definition of _GetNewFontClientID in section
(__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(getnewfntcid.o) definition of _GetNewFontClientID
ld: warning multiple definitions of symbol _GetTimeInMillis
../os/.libs/libos.a(utils.o) definition of _GetTimeInMillis in section
(__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(gettime.o) definition of _GetTimeInMillis
ld: warning multiple definitions of symbol _ValidAtom
../dix/.libs/libdix.a(atom.o) definition of _ValidAtom in section (__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(atom.o) definition of _ValidAtom
ld: warning multiple definitions of symbol _MakeAtom
../dix/.libs/libdix.a(atom.o) definition of _MakeAtom in section (__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(atom.o) definition of _MakeAtom
ld: warning multiple definitions of symbol _NameForAtom
../dix/.libs/libdix.a(atom.o) definition of _NameForAtom in section (__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(atom.o) definition of _NameForAtom
ld: warning multiple definitions of symbol _client_auth_generation
../dix/.libs/libdix.a(dixfonts.o) definition of _client_auth_generation in
section (__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(cauthgen.o) definition of _client_auth_generation
ld: warning multiple definitions of symbol _find_old_font
../dix/.libs/libdix.a(dixfonts.o) definition of _find_old_font in section
(__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(findoldfnt.o) definition of _find_old_font
ld: warning multiple definitions of symbol _init_fs_handlers
../dix/.libs/libdix.a(dixfonts.o) definition of _init_fs_handlers in section
(__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(initfshdl.o) definition of _init_fs_handlers
ld: warning multiple definitions of symbol _remove_fs_handlers
../dix/.libs/libdix.a(dixfonts.o) definition of _remove_fs_handlers in section
(__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(rmfshdl.o) definition of _remove_fs_handlers
ld: warning multiple definitions of symbol _serverClient
../dix/.libs/libdix.a(globals.o) definition of _serverClient in section
(__DATA,__common)
/usr/lib/libXfont.1.4.1.dylib(servclient.o) definition of _serverClient
ld: warning multiple definitions of symbol _set_font_authorizations
../os/.libs/libos.a(utils.o) definition of _set_font_authorizations in section
(__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(setfntauth.o) definition of _set_font_authorizations
/usr/lib/libXdmcp.6.0.0.dylib(Alloc.o) definition of _Xalloc
/usr/lib/libXdmcp.6.0.0.dylib(Alloc.o) definition of _Xfree
/usr/lib/libXdmcp.6.0.0.dylib(Alloc.o) definition of _Xrealloc
ld: warning multiple definitions of symbol _FatalError
../os/.libs/libos.a(log.o) definition of _FatalError in section (__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(fatalerror.o) definition of _FatalError
ld: warning multiple definitions of symbol _DeleteFontClientID
../dix/.libs/libdix.a(dixfonts.o) definition of _DeleteFontClientID in section
(__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(delfntcid.o) definition of _DeleteFontClientID
ld: warning multiple definitions of symbol _StoreFontClientFont
../dix/.libs/libdix.a(dixfonts.o) definition of _StoreFontClientFont in section
(__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(stfntcfnt.o) definition of _StoreFontClientFont
ld: warning multiple definitions of symbol _GetDefaultPointSize
../dix/.libs/libdix.a(dixfonts.o) definition of _GetDefaultPointSize in section
(__TEXT,__text)
/usr/lib/libXfont.1.4.1.dylib(getdefptsize.o) definition of _GetDefaultPointSize
Comment 1 paul 2006-05-25 02:40:04 UTC
Created attachment 5734 [details] [review]
ok fine, i did it

patch for proper xprt this and thating
Comment 2 paul 2006-05-25 04:32:13 UTC
Created attachment 5736 [details] [review]
also, csrg
Comment 3 Daniel Stone 2007-02-27 01:31:46 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 4 Jeremy Huddleston Sequoia 2008-05-06 01:38:09 UTC
This looks like it's fixed... please reopen if I'm wrong...


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.