Bug 100048

Summary: xorg-server-9999 - common/.libs/libcommon.a(xf86Init.o): In function `ddxProcessArgument': xf86Init.c:(.text+0xd60): undefined reference to `LoaderSetOptions'
Product: xorg Reporter: Coacher <itumaykin+freedesktop>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium Keywords: regression
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Complete build.log none

Description Coacher 2017-03-03 11:49:49 UTC
Created attachment 130042 [details]
Complete build.log

Hello.

xorg-server-git @ 5c44169ca fails to build with:

libtool: link: x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Wimplicit -Wnonnull -Winit-self -Wmain -Wmissing-braces -Wsequence-point -Wreturn-type -Wtrigraphs -Warray-bounds -Wwrite-strings -Waddress -Wint-to-pointer-cast -Wpointer-to-int-cast -fno-strict-aliasing -fno-strict-aliasing -D_DEFAULT_SOURCE -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/var/tmp/portage/x11-base/xorg-server-9999/work/xorg-server-9999/include -I../../include -I/var/tmp/portage/x11-base/xorg-server-9999/work/xorg-server-9999/Xext -I/var/tmp/portage/x11-base/xorg-server-9999/work/xorg-server-9999/composite -I/var/tmp/portage/x11-base/xorg-server-9999/work/xorg-server-9999/damageext -I/var/tmp/portage/x11-base/xorg-server-9999/work/xorg-server-9999/xfixes -I/var/tmp/portage/x11-base/xorg-server-9999/work/xorg-server-9999/Xi -I/var/tmp/portage/x11-base/xorg-server-9999/work/xorg-server-9999/mi -I/var/tmp/portage/x11-base/xorg-server-9999/work/xorg-server-9999/miext/sync -I/var/tmp/portage/x11-base/xorg-server-9999/work/xorg-server-9999/miext/shadow -I/var/tmp/portage/x11-base/xorg-server-9999/work/xorg-server-9999/miext/damage -I/var/tmp/portage/x11-base/xorg-server-9999/work/xorg-server-9999/render -I/var/tmp/portage/x11-base/xorg-server-9999/work/xorg-server-9999/randr -I/var/tmp/portage/x11-base/xorg-server-9999/work/xorg-server-9999/fb -I/var/tmp/portage/x11-base/xorg-server-9999/work/xorg-server-9999/dbe -I/var/tmp/portage/x11-base/xorg-server-9999/work/xorg-server-9999/present -fvisibility=hidden -DHAVE_XORG_CONFIG_H -fvisibility=hidden -I/usr/include/libdrm -O2 -march=native -mfpmath=sse -fomit-frame-pointer -pipe -frecord-gcc-switches -Wimplicit-function-declaration -pthread -Wl,--hash-style=gnu -Wl,-O1 -Wl,-z -Wl,lazy -o Xorg sdksyms.o -Wl,--export-dynamic  -Wl,--as-needed ../../dix/.libs/libmain.a ../../dix/.libs/libdix.a loader/.libs/libloader.a common/.libs/libcommon.a -ludev os-support/.libs/libxorgos.a parser/.libs/libxf86config.a dixmods/.libs/libdixmods.a modes/.libs/libxf86modes.a ramdac/.libs/libramdac.a ddc/.libs/libddc.a i2c/.libs/libi2c.a ../../composite/.libs/libcomposite.a ../../xfixes/.libs/libxfixes.a ../../Xext/.libs/libXext.a ../../dbe/.libs/libdbe.a ../../record/.libs/librecord.a ../../randr/.libs/librandr.a ../../render/.libs/librender.a ../../damageext/.libs/libdamageext.a ../../present/.libs/libpresent.a ../../miext/damage/.libs/libdamage.a ../../Xi/.libs/libXi.a ../../xkb/.libs/libxkb.a dixmods/.libs/libxorgxkb.a dri/.libs/libdri.a dri2/.libs/libdri2.a ../../dri3/.libs/libdri3.a ../../miext/sync/.libs/libsync.a ../../mi/.libs/libmi.a ../../os/.libs/libos.a -lcrypto -ldl ../../Xext/.libs/libXvidmode.a -lpciaccess -ldrm -lpixman-1 -lXfont2 -lXau -lxshmfence -lXdmcp -lm -lbsd -pthread
common/.libs/libcommon.a(xf86Init.o): In function `ddxProcessArgument':
xf86Init.c:(.text+0xd60): undefined reference to `LoaderSetOptions'
common/.libs/libcommon.a(xf86Init.o): In function `xf86LoadModules':
xf86Init.c:(.text+0x1905): undefined reference to `LoadModule'
xf86Init.c:(.text+0x1920): undefined reference to `LoaderErrorMsg'
common/.libs/libcommon.a(xf86Init.o): In function `InitOutput':
xf86Init.c:(.text+0x2035): undefined reference to `LoaderInit'
xf86Init.c:(.text+0x2044): undefined reference to `LoaderSetPath'
xf86Init.c:(.text+0x2057): undefined reference to `LoaderSetOptions'
common/.libs/libcommon.a(xf86Helper.o): In function `xf86DeleteDriver':
xf86Helper.c:(.text+0x148): undefined reference to `UnloadModule'
common/.libs/libcommon.a(xf86Helper.o): In function `xf86DeleteInputDriver':
xf86Helper.c:(.text+0x287): undefined reference to `UnloadModule'
common/.libs/libcommon.a(xf86Helper.o): In function `xf86AllocateScreen':
xf86Helper.c:(.text+0x49b): undefined reference to `DuplicateModule'
common/.libs/libcommon.a(xf86Helper.o): In function `xf86DeleteScreen':
xf86Helper.c:(.text+0x5cd): undefined reference to `UnloadModule'
common/.libs/libcommon.a(xf86Helper.o): In function `xf86GetModuleVersion':
xf86Helper.c:(.text+0x2ce5): undefined reference to `LoaderGetModuleVersion'
common/.libs/libcommon.a(xf86Helper.o): In function `xf86LoadDrvSubModule':
xf86Helper.c:(.text+0x2d33): undefined reference to `LoadSubModule'
xf86Helper.c:(.text+0x2d6b): undefined reference to `LoaderErrorMsg'
common/.libs/libcommon.a(xf86Helper.o): In function `xf86LoadSubModule':
xf86Helper.c:(.text+0x2dca): undefined reference to `LoadSubModule'
xf86Helper.c:(.text+0x2e08): undefined reference to `LoaderErrorMsg'
common/.libs/libcommon.a(xf86Helper.o): In function `xf86LoadOneModule':
xf86Helper.c:(.text+0x2e5e): undefined reference to `LoadModule'
xf86Helper.c:(.text+0x2eac): undefined reference to `LoaderErrorMsg'
common/.libs/libcommon.a(xf86Helper.o): In function `xf86LoaderCheckSymbol':
xf86Helper.c:(.text+0x2ed5): undefined reference to `LoaderSymbol'
common/.libs/libcommon.a(xf86Helper.o): In function `xf86UnloadSubModule':
xf86Helper.c:(.text+0x2ec1): undefined reference to `UnloadSubModule'
common/.libs/libcommon.a(xf86Xinput.o): In function `xf86DeleteInput':
xf86Xinput.c:(.text+0x597): undefined reference to `UnloadModule'
common/.libs/libcommon.a(xf86Xinput.o): In function `xf86NewInputDevice':
xf86Xinput.c:(.text+0x6e9): undefined reference to `DuplicateModule'
common/.libs/libcommon.a(xf86platformBus.o): In function `xf86platformProbe':
xf86platformBus.c:(.text+0x9b5): undefined reference to `LoaderSetPath'
common/.libs/libcommon.a(xf86Configure.o): In function `GenerateDriverList':
xf86Configure.c:(.text+0xb0): undefined reference to `LoaderListDir'
common/.libs/libcommon.a(xf86Configure.o): In function `DoConfigure':
xf86Configure.c:(.text+0xb41): undefined reference to `LoaderListDir'
common/.libs/libcommon.a(xf86Configure.o): In function `DoShowOptions':
xf86Configure.c:(.text+0x1614): undefined reference to `LoaderSymbol'
modes/.libs/libxf86modes.a(xf86Crtc.o): In function `xf86_crtc_clip_video_helper':
xf86Crtc.c:(.text+0x4e66): undefined reference to `xf86XVClipVideoHelper'
xf86Crtc.c:(.text+0x4f16): undefined reference to `xf86XVClipVideoHelper'
../../miext/damage/.libs/libdamage.a(damage.o): In function `damageComposite':
damage.c:(.text+0x244c): undefined reference to `miCompositeSourceValidate'
damage.c:(.text+0x24a6): undefined reference to `miCompositeSourceValidate'
dri/.libs/libdri.a(dri.o): In function `DRICloseScreen':
dri.c:(.text+0x2898): undefined reference to `xf86RemoveSIGIOHandler'
dri/.libs/libdri.a(dri.o): In function `DRIScreenInit':
dri.c:(.text+0x3773): undefined reference to `xf86InstallSIGIOHandler'
dri/.libs/libdri.a(dri.o):(.data.rel+0x8): undefined reference to `xf86LoadKernelModule'
collect2: error: ld returned 1 exit status


This isn't reproducible on exactly the same system with xorg-server-git @ 386fbbe.

Please fix. This prevents upgrade to xorg-server revision where CVE-2017-2624 is fixed.
Comment 1 Coacher 2017-08-08 19:17:47 UTC
Fixed in master some time ago.

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.