Current CVS: static build broken?

Matthias Hopf mhopf at suse.de
Fri Jan 14 07:19:28 PST 2005


Hi folks,

any ideas about the following?

It seems to be that the current CVS state is broken WRT to building with
static linking. I don't know about dynamic linking (test compilation
hasn't finished yet), though.

My host.def config:

#define NothingOutsideProjectRoot YES
#define DefaultGcc2i386Opt -O0 -g
#define HasFreetype2 YES
#define HasFontconfig YES
#define InstallXserverSetUID    NO
#define DebuggableLibraries     YES

#define ForceNormalLib          YES
#define DoLoadableServer        NO
#define XF86CardDrivers         ati i810 nv mga


The build process fails while linking Xorg:

gcc -m32 -o Xorg -O0 -g -ansi -pedantic -Wall -Wpointer-arith -Wstrict-prototypes                         -Wmissing-prototypes -Wmissing-declarations            -Wredundant-decls -Wnested-externs -Wundef     -L../../exports/lib   xkb/xf86KillSrv.o xkb/xf86VT.o xkb/xf86Private.o ../../programs/Xserver/hw/xfree86/drivers/drvConf.o ../../programs/Xserver/hw/xfree86/input/drvConf.o    ../../programs/Xserver/hw/xfree86/drivers/libdriver.a ../../programs/Xserver/hw/xfree86/ramdac/libramdac.a ../../programs/Xserver/hw/xfree86/ddc/libddc.a ../../programs/Xserver/hw/xfree86/i2c/libi2c.a               ../../programs/Xserver/hw/xfree86/xaa/libxaa.a ../../programs/Xserver/hw/xfree86/vgahw/libvgahw.a ../../programs/Xserver/hw/xfree86/fbdevhw/libfbdevhw.a                ../../programs/Xserver/hw/xfree86/xf8_32bpp/libxf8_32bpp.a             ../../programs/Xserver/hw/xfree86/xf8_16bpp/libxf8_16bpp.a              ../../programs/Xserver/hw/xfree86/xf4bpp/libxf4bpp.a ../../programs/Xserver/hw/xfree86/xf1bpp/libxf1bpp.a ../../programs/Xserver/hw/xfree86/shadowfb/libshadowfb.a afb/libafb.a ../../programs/Xserver/hw/xfree86/input/libidriver.a  ../../programs/Xserver/hw/xfree86/common/xf86Init.o ../../programs/Xserver/hw/xfree86/common/xf86IniExt.o ../../programs/Xserver/hw/xfree86/common/libxf86.a ../../programs/Xserver/hw/xfree86/rac/librac.a             ../../programs/Xserver/hw/xfree86/parser/libxf86config.a ../../programs/Xserver/hw/xfree86/vbe/libvbe.a ../../programs/Xserver/hw/xfree86/os-support/libxf86_os.a ../../programs/Xserver/hw/xfree86/os-support/libint10.a            ../../programs/Xserver/hw/xfree86/common/libxf86.a miext/shadow/libshadow.a dix/libdix.a os/libos.a  fb/libfb.a cfb16/libcfb16.a                 cfb24/libcfb24.a               cfb32/libcfb32.a                 cfb/libcfb.a mfb/libmfb.a dix/libxpstubs.a mi/libmi.a composite/libcomposite.a damageext/libdamage.a miext/damage/libdamage.a xfixes/libxfixes.a miext/cw/libcw.a               Xext/libext.a xkb/libxkb.a Xi/libxinput.a                   lbx/liblbx.a                   ../../lib/lbxutil/liblbxutil.a dbe/libdbe.a record/librecord.a  XTrap/libxtrap.a GL/glx/libglx.a                GL/mesa/GLcore/libGLcore.a                GL/dri/libdri.a randr/librandr.a render/librender.a ../../programs/Xserver/hw/xfree86/common/libxf86.a mi/libmi.a ../../programs/Xserver/hw/xfree86/scanpci/libscanpci.a ../../programs/Xserver/hw/xfree86/os-support/libxf86_os.a                ../../programs/Xserver/hw/xfree86/ddc/libddc.a     ../../lib/font/libXfont.a -lfreetype dix/libxpstubs.a -lz -lm                   -lXau -lXdmcp    -Wl,-rpath-link,../../exports/lib
mfb/libmfb.a(mfbgc.o)(.text+0xebf): In function `mfbGetInverseAlu':
/space/mhopf/xc_new/programs/Xserver/mfb/mfbgc.c:1459: multiple definition of `mfbGetInverseAlu'
../../programs/Xserver/hw/xfree86/xf1bpp/libxf1bpp.a(mfbgc.o)(.text+0xebf):../../../../../programs/Xserver/mfb/mfbgc.c:1459: first defined here
mfb/libmfb.a(mfbfont.o)(.text+0xa): In function `mfbRealizeFontWeak':
/space/mhopf/xc_new/programs/Xserver/mfb/mfbfont.c:67: multiple definition of `mfbRealizeFontWeak'
../../programs/Xserver/hw/xfree86/xf1bpp/libxf1bpp.a(mfbfont.o)(.text+0xa):../../../../../programs/Xserver/mfb/mfbfont.c:67: first defined here
mfb/libmfb.a(mfbfont.o)(.text+0x1e): In function `mfbUnrealizeFontWeak':
/space/mhopf/xc_new/programs/Xserver/mfb/mfbfont.c:82: multiple definition of `mfbUnrealizeFontWeak'
../../programs/Xserver/hw/xfree86/xf1bpp/libxf1bpp.a(mfbfont.o)(.text+0x1e):../../../../../programs/Xserver/mfb/mfbfont.c:82: first defined here
mfb/libmfb.a(maskbits.o)(.text+0x51): In function `mergeGetRopBits':
/space/mhopf/xc_new/programs/Xserver/mfb/maskbits.c:1056: multiple definition of `mergeGetRopBits'
../../programs/Xserver/hw/xfree86/xf1bpp/libxf1bpp.a(maskbits.o)(.text+0x51):../../../../../programs/Xserver/mfb/maskbits.c:1056: first defined here
mfb/libmfb.a(mfbpushpxl.o)(.text+0x55f): In function `mfbPushPixelsWeak':
/space/mhopf/xc_new/programs/Xserver/mfb/mfbpushpxl.c:281: multiple definition of `mfbPushPixelsWeak'
../../programs/Xserver/hw/xfree86/xf1bpp/libxf1bpp.a(mfbpushpxl.o)(.text+0x79f):../../../../../programs/Xserver/mfb/mfbpushpxl.c:281: first defined here
mfb/libmfb.a(mfbclip.o)(.text+0x71f): In function `mfbPixmapToRegionWeak':
/space/mhopf/xc_new/programs/Xserver/mfb/mfbclip.c:274: multiple definition of `mfbPixmapToRegionWeak'
../../programs/Xserver/hw/xfree86/xf1bpp/libxf1bpp.a(mfbclip.o)(.text+0x8ff):../../../../../programs/Xserver/mfb/mfbclip.c:274: first defined here
mfb/libmfb.a(mfbmisc.o)(.text+0xc1): In function `mfbQueryBestSizeWeak':
/space/mhopf/xc_new/programs/Xserver/mfb/mfbmisc.c:94: multiple definition of `mfbQueryBestSizeWeak'
../../programs/Xserver/hw/xfree86/xf1bpp/libxf1bpp.a(mfbmisc.o)(.text+0xc1):../../../../../programs/Xserver/mfb/mfbmisc.c:94: first defined here
../../programs/Xserver/hw/xfree86/input/libidriver.a(evdev_drv.o)(.text+0xab2): In function `EvdevPlug':
/space/mhopf/xc_new/programs/Xserver/hw/xfree86/input/evdev/evdev.c:648: undefined reference to `xf86AddInputDriver'
collect2: ld returned 1 exit status
make[4]: *** [Xorg] Error 1
make[4]: Leaving directory `/space/mhopf/xc_new/programs/Xserver'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/space/mhopf/xc_new/programs'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/space/mhopf/xc_new'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/space/mhopf/xc_new'
make: *** [World] Error 2


Thanks

Matthias

-- 
Matthias Hopf <mhopf at suse.de>      /--       /--  /--         mat at mshopf.de
Maxfeldstr. 5 / 90409 Nuernberg    \-\  | |  \-\  |--         www.mshopf.de
Phone +49-911-74053-715            --/  \_/  --/  \--  labs



More information about the xorg mailing list