Bug 8917 - can't locate file for: -lXau
Summary: can't locate file for: -lXau
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 7.1 (2006.05)
Hardware: PowerPC Mac OS X (All)
: high normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-06 03:11 UTC by Peter Dyballa
Modified: 2007-03-11 14:14 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Peter Dyballa 2006-11-06 03:11:13 UTC
While make the X server in making XDarwinApp this error appears:

/sw/lib/odcctools/bin/ld: can't locate file for: -lXau
collect2: ld returned 1 exit status

The reason is this gcc invocation:

/bin/sh ../../libtool --tag=CC --mode=link gcc -DHAVE_XORG_CONFIG_H -I/usr/X11R7/include   -Wall 
-Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs 
-fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/X11R7/include -I/
sw/lib/freetype219/include/freetype2   -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 -pipe -fPIC -O0 -mcpu=7450 -mtune=7450 -DDARWIN_WITH_QUARTZ -
DXFree86Server -D__DARWIN__  -dead_strip -bind_at_load -L/sw/lib/freetype219/lib -L/sw/lib/
fontconfig2/lib -L/sw/lib/ncurses -L/usr/local/lib -L/sw/lib -o XDarwinApp -XCClinker -Objc -Wl,-
u,_miDCInitialize -Wl,-framework,Carbon -Wl,-framework,ApplicationServices -Wl,-framework,Cocoa -
Wl,-framework,CoreAudio -Wl,-framework,IOKit fbcmap.o miinitext.o stubs.o ../../dix/dixfonts.lo ../../
dix/libdix.la ../../os/libos.la ./quartz/XApplication.o ./libdarwinShared.a ./quartz/libXQuartz.a ../../dix/
libxpstubs.la ../../miext/shadow/libshadow.la ../../fb/libfb.la ../../composite/libcomposite.la ../../
damageext/libdamageext.la ../../miext/damage/libdamage.la ../../xfixes/libxfixes.la ../../miext/cw/
libcw.la ../../Xext/libXext.la ../../xkb/libxkb.la ../../xkb/libxkbstubs.la ../../Xi/libXi.la ../../dbe/libdbe.la 
../../record/librecord.la ../../XTrap/libxtrap.la  ../../miext/rootless/librootless.la ../../miext/rootless/
safeAlpha/libsafeAlpha.la ../../miext/rootless/accel/librlAccel.la ../../composite/libcomposite.la ../../
mi/libmi.la ../../xfixes/libxfixes.la ../../Xext/libXextbuiltin.la ../../GL/glx/libglx.la ../../GL/mesa/
libGLcore.la ../../render/librender.la ../../randr/librandr.la ../../damageext/libdamageext.la ../../miext/
damage/libdamage.la ../../miext/cw/libcw.la ../../miext/shadow/libshadow.la ../../Xi/libXi.la ../../xkb/
libxkb.la ../../dix/libxpstubs.la ../../os/libos.la -lXau -lXdmcp -lXfont -lfreetype ../../fb/libfb.la  -
lXplugin -lm 
mkdir .libs
gcc -DHAVE_XORG_CONFIG_H -I/usr/X11R7/include -Wall -Wpointer-arith -Wstrict-prototypes -
Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -
DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/X11R7/include -I/sw/lib/freetype219/include/freetype2 
-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 -pipe -fPIC -O0 
-mcpu=7450 -mtune=7450 -DDARWIN_WITH_QUARTZ -DXFree86Server -D__DARWIN__ -dead_strip -
bind_at_load -o XDarwinApp -Objc -Wl,-u -Wl,_miDCInitialize -Wl,-framework -Wl,Carbon -Wl,-
framework -Wl,ApplicationServices -Wl,-framework -Wl,Cocoa -Wl,-framework -Wl,CoreAudio -Wl,-
framework -Wl,IOKit fbcmap.o miinitext.o stubs.o ../../dix/.libs/dixfonts.o ./quartz/XApplication.o  -L/
sw/lib/freetype219/lib -L/sw/lib/fontconfig2/lib -L/sw/lib/ncurses -L/usr/local/lib -L/sw/lib ../../
dix/.libs/libdix.a ./libdarwinShared.a ./quartz/libXQuartz.a ../../Xext/.libs/libXext.a ../../xkb/.libs/
libxkbstubs.a ../../dbe/.libs/libdbe.a ../../record/.libs/librecord.a ../../XTrap/.libs/libxtrap.a ../../
miext/rootless/.libs/librootless.a ../../miext/rootless/safeAlpha/.libs/libsafeAlpha.a ../../miext/
rootless/accel/.libs/librlAccel.a ../../composite/.libs/libcomposite.a ../../mi/.libs/libmi.a ../../
xfixes/.libs/libxfixes.a ../../Xext/.libs/libXextbuiltin.a ../../GL/glx/.libs/libglx.a ../../GL/mesa/.libs/
libGLcore.a ../../render/.libs/librender.a ../../randr/.libs/librandr.a ../../damageext/.libs/
libdamageext.a ../../miext/damage/.libs/libdamage.a ../../miext/cw/.libs/libcw.a ../../miext/
shadow/.libs/libshadow.a ../../Xi/.libs/libXi.a ../../xkb/.libs/libxkb.a ../../dix/.libs/libxpstubs.a ../../
os/.libs/libos.a -lXau -lXdmcp -lXfont /sw/lib/freetype219/lib/libfreetype.dylib -lz ../../fb/.libs/libfb.a 
-lXplugin -lm  

which is wrong due to an incorrect value for the XDarwin_LDADD macro in Makefile.in and Makefile.am. 
They have both an explicit line of

			 -lXau -lXdmcp -lXfont -lfreetype \

without the component -L/usr/X11R7/lib anywhere.

I have no real insight the complicated looking process of generating Makefile. Yet. Adding -L/usr/
X11R7/lib in Makefile does not seem to cure the problem: still other errors:

/sw/lib/odcctools/bin/ld: multiple definitions of symbol _GlxPushProvider
./quartz/libXQuartz.a(quartzStartup.o) definition of _GlxPushProvider in section (__DATA,__data)
../../GL/glx/.libs/libglx.a(glxscreens.o) definition of _GlxPushProvider in section (__TEXT,__text)
/sw/lib/odcctools/bin/ld: warning multiple definitions of symbol _Xalloc
../../os/.libs/libos.a(utils.o) definition of _Xalloc in section (__TEXT,__text)
/usr/X11R7/lib/libXfont.dylib(miscutil.o) definition of _Xalloc
/sw/lib/odcctools/bin/ld: warning multiple definitions of symbol _CopyISOLatin1Lowered
../../dix/.libs/libdix.a(dixutils.o) definition of _CopyISOLatin1Lowered in section (__TEXT,__text)
/usr/X11R7/lib/libXfont.dylib(miscutil.o) definition of _CopyISOLatin1Lowered
/sw/lib/odcctools/bin/ld: warning multiple definitions of symbol _Xcalloc
../../os/.libs/libos.a(utils.o) definition of _Xcalloc in section (__TEXT,__text)
/usr/X11R7/lib/libXfont.dylib(miscutil.o) definition of _Xcalloc
/sw/lib/odcctools/bin/ld: warning multiple definitions of symbol _serverGeneration
../../dix/.libs/libdix.a(globals.o) definition of _serverGeneration in section (__DATA,__data)
/usr/X11R7/lib/libXfont.dylib(miscutil.o) definition of _serverGeneration
/sw/lib/odcctools/bin/ld: warning multiple definitions of symbol _Xrealloc
../../os/.libs/libos.a(utils.o) definition of _Xrealloc in section (__TEXT,__text)
/usr/X11R7/lib/libXfont.dylib(miscutil.o) definition of _Xrealloc
/sw/lib/odcctools/bin/ld: warning multiple definitions of symbol _Xfree
../../os/.libs/libos.a(utils.o) definition of _Xfree in section (__TEXT,__text)
/usr/X11R7/lib/libXfont.dylib(miscutil.o) definition of _Xfree
/sw/lib/odcctools/bin/ld: warning multiple definitions of symbol _RegisterFPEFunctions
../../dix/.libs/dixfonts.o definition of _RegisterFPEFunctions in section (__TEXT,__text)
/usr/X11R7/lib/libXfont.dylib(regfpefunc.o) definition of _RegisterFPEFunctions
/sw/lib/odcctools/bin/ld: warning multiple definitions of symbol _ClientSignal
../../dix/.libs/libdix.a(dixutils.o) definition of _ClientSignal in section (__TEXT,__text)
/usr/X11R7/lib/libXfont.dylib(csignal.o) definition of _ClientSignal
/sw/lib/odcctools/bin/ld: warning multiple definitions of symbol _ErrorF
../../os/.libs/libos.a(log.o) definition of _ErrorF in section (__TEXT,__text)
/usr/X11R7/lib/libXfont.dylib(errorf.o) definition of _ErrorF
/sw/lib/odcctools/bin/ld: warning multiple definitions of symbol _GetClientResolutions
../../dix/.libs/dixfonts.o definition of _GetClientResolutions in section (__TEXT,__text)
/usr/X11R7/lib/libXfont.dylib(getcres.o) definition of _GetClientResolutions
/sw/lib/odcctools/bin/ld: warning multiple definitions of symbol _GetNewFontClientID
../../dix/.libs/dixfonts.o definition of _GetNewFontClientID in section (__TEXT,__text)
/usr/X11R7/lib/libXfont.dylib(getnewfntcid.o) definition of _GetNewFontClientID
/sw/lib/odcctools/bin/ld: warning multiple definitions of symbol _GetTimeInMillis
../../os/.libs/libos.a(utils.o) definition of _GetTimeInMillis in section (__TEXT,__text)
/usr/X11R7/lib/libXfont.dylib(gettime.o) definition of _GetTimeInMillis
/sw/lib/odcctools/bin/ld: warning multiple definitions of symbol _ValidAtom
../../dix/.libs/libdix.a(atom.o) definition of _ValidAtom in section (__TEXT,__text)
/usr/X11R7/lib/libXfont.dylib(atom.o) definition of _ValidAtom
/sw/lib/odcctools/bin/ld: warning multiple definitions of symbol _MakeAtom
../../dix/.libs/libdix.a(atom.o) definition of _MakeAtom in section (__TEXT,__text)
/usr/X11R7/lib/libXfont.dylib(atom.o) definition of _MakeAtom
/sw/lib/odcctools/bin/ld: warning multiple definitions of symbol _NameForAtom
../../dix/.libs/libdix.a(atom.o) definition of _NameForAtom in section (__TEXT,__text)
/usr/X11R7/lib/libXfont.dylib(atom.o) definition of _NameForAtom
/sw/lib/odcctools/bin/ld: warning multiple definitions of symbol _client_auth_generation
../../dix/.libs/dixfonts.o definition of _client_auth_generation in section (__TEXT,__text)
/usr/X11R7/lib/libXfont.dylib(cauthgen.o) definition of _client_auth_generation
/sw/lib/odcctools/bin/ld: warning multiple definitions of symbol _find_old_font
../../dix/.libs/dixfonts.o definition of _find_old_font in section (__TEXT,__text)
/usr/X11R7/lib/libXfont.dylib(findoldfnt.o) definition of _find_old_font
/sw/lib/odcctools/bin/ld: warning multiple definitions of symbol _init_fs_handlers
../../dix/.libs/dixfonts.o definition of _init_fs_handlers in section (__TEXT,__text)
/usr/X11R7/lib/libXfont.dylib(initfshdl.o) definition of _init_fs_handlers
/sw/lib/odcctools/bin/ld: warning multiple definitions of symbol _remove_fs_handlers
../../dix/.libs/dixfonts.o definition of _remove_fs_handlers in section (__TEXT,__text)
/usr/X11R7/lib/libXfont.dylib(rmfshdl.o) definition of _remove_fs_handlers
/sw/lib/odcctools/bin/ld: warning multiple definitions of symbol _serverClient
../../dix/.libs/libdix.a(globals.o) definition of _serverClient in section (__DATA,__common)
/usr/X11R7/lib/libXfont.dylib(servclient.o) definition of _serverClient
/sw/lib/odcctools/bin/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/X11R7/lib/libXfont.dylib(setfntauth.o) definition of _set_font_authorizations
/sw/lib/odcctools/bin/ld: warning multiple definitions of symbol _FatalError
../../os/.libs/libos.a(log.o) definition of _FatalError in section (__TEXT,__text)
/usr/X11R7/lib/libXfont.dylib(fatalerror.o) definition of _FatalError
/sw/lib/odcctools/bin/ld: warning multiple definitions of symbol _DeleteFontClientID
../../dix/.libs/dixfonts.o definition of _DeleteFontClientID in section (__TEXT,__text)
/usr/X11R7/lib/libXfont.dylib(delfntcid.o) definition of _DeleteFontClientID
/sw/lib/odcctools/bin/ld: warning multiple definitions of symbol _StoreFontClientFont
../../dix/.libs/dixfonts.o definition of _StoreFontClientFont in section (__TEXT,__text)
/usr/X11R7/lib/libXfont.dylib(stfntcfnt.o) definition of _StoreFontClientFont
/usr/X11R7/lib/libXdmcp.dylib(Alloc.o) definition of _Xalloc
/usr/X11R7/lib/libXdmcp.dylib(Alloc.o) definition of _Xfree
/usr/X11R7/lib/libXdmcp.dylib(Alloc.o) definition of _Xrealloc
/sw/lib/odcctools/bin/ld: warning multiple definitions of symbol _GetDefaultPointSize
../../dix/.libs/dixfonts.o definition of _GetDefaultPointSize in section (__TEXT,__text)
/usr/X11R7/lib/libXfont.dylib(getdefptsize.o) definition of _GetDefaultPointSize
collect2: ld returned 1 exit status
make[3]: *** [XDarwinApp] Error 1



Mac OS X 10.4.8
GCC 4.0.1
Release 7.1.99.2
Comment 1 Daniel Stone 2007-02-27 01:34:29 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 2 Peter Dyballa 2007-03-11 14:14:37 UTC
The error is solved.


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.