Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem when compiling Xprt of X11R7.1



Hello!

When on Mac OS X 10.4.8 Xprt is built by GCC 4.0.1 from dynamic and static libraries I get one message

/sw/lib/odcctools/bin/ld: multiple definitions of symbol _serverGeneration
/usr/X11R7/lib/libXfont.dylib(miscutil.o) definition of _serverGeneration
../../dix/.libs/libdix.a(globals.o) definition of _serverGeneration in section (__DATA,__data)


and many more like

/sw/lib/odcctools/bin/ld: multiple definitions of symbol _Xalloc
/usr/X11R7/lib/libXfont.dylib(miscutil.o) definition of _Xalloc
../../os/.libs/libos.a(utils.o) definition of _Xalloc in section (__TEXT,__text)
/sw/lib/odcctools/bin/ld: multiple definitions of symbol _Xcalloc
/usr/X11R7/lib/libXfont.dylib(miscutil.o) definition of _Xcalloc
../../os/.libs/libos.a(utils.o) definition of _Xcalloc in section (__TEXT,__text)


In the end making of Xprt fails:

	collect2: ld returned 1 exit status
	make[3]: *** [Xprt] Error 1

What is/can be the cause? Warnings like these above, for both sections, happen also for other targets (Xvfb, Xnest, Xdmx), but these get made. In making libdix.a warnings are emitted:

ar cru .libs/libdix.a .libs/atom.o .libs/colormap.o .libs/ cursor.o .libs/devices.o .libs/dispatch.o .libs/dixfonts.o .libs/ dixutils.o .libs/events.o .libs/extension.o .libs/ffs.o .libs/ gc.o .libs/globals.o .libs/glyphcurs.o .libs/grabs.o .libs/ initatoms.o .libs/main.o .libs/pixmap.o .libs/privates.o .libs/ property.o .libs/resource.o .libs/swaprep.o .libs/swapreq.o .libs/ tables.o .libs/window.o .libs/strcasecmp.o
/sw/lib/odcctools/bin/ranlib: file: .libs/libdix.a(strcasecmp.o) has no symbols
ranlib .libs/libdix.a
ranlib: file: .libs/libdix.a(strcasecmp.o) has no symbols
creating libdix.la


which also happens for some other (static) libraries. CFLAGS used are: -pipe -fPIC -O0, in LDFLAGS -dead_strip is used; G4/7450, MACOSX_DEPLOYMENT_TARGET is set to 10.4.

The actual collect2 invocation is:

Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5363)
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/collect2 -dynamic -arch ppc7450 -dead_strip -macosx_version_min 10.4 - weak_reference_mismatches non-weak -o Xprt -lcrt1.o -L/sw/lib/ freetype219/lib -L/usr/local/lib -L/sw/lib/ncurses -L/sw/lib -L/Users/ pete/Quellen/X11R7.1/xserver -L/usr/X11R7/lib -L/usr/lib/gcc/powerpc- apple-darwin8/4.0.1 -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1 -L/usr/ lib/gcc/powerpc-apple-darwin8/4.0.1/../../.. 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 /usr/X11R7/lib/libX11.dylib /usr/X11R7/lib/ libxcb-xlib.dylib /usr/X11R7/lib/libxcb.dylib /usr/X11R7/lib/ libXfont.dylib /sw/lib/freetype219/lib/libfreetype.dylib /usr/X11R7/ lib/libfontenc.dylib -lz /usr/X11R7/lib/libXdmcp.dylib /usr/X11R7/lib/ libXau.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 -lgcc_s.10.4 -lgcc - lSystemStubs -lSystem



-- Greetings

  Pete

Some day we may discover how to make magnets that can point in any direction.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.