LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   undefined reference to `dlopen' and others (https://www.linuxquestions.org/questions/linux-software-2/undefined-reference-to-%60dlopen-and-others-679867/)

versaulis 10-29-2008 06:30 PM

undefined reference to `dlopen' and others
 
Can't seem to get xorg-server-1.5.1 to compile. I got everything else in the 7.4 release to compile.

Code:

...
make  all-am
make[3]: Entering directory `/sources2/xc/xorg-server-1.5.1/hw/vfb'
gcc -DHAVE_CONFIG_H -I. -I../../include    -DHAVE_DIX_CONFIG_H -DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS  -DHAVE_DIX_CONFIG_H -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/include/freetype2 -I/usr/include/pixman-1    -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 -g -O2 -MT libfbcmap_a-fbcmap_mi.o -MD -MP -MF .deps/libfbcmap_a-fbcmap_mi.Tpo -c -o libfbcmap_a-fbcmap_mi.o `test -f '../../fb/fbcmap_mi.c' || echo './'`../../fb/fbcmap_mi.c
mv -f .deps/libfbcmap_a-fbcmap_mi.Tpo .deps/libfbcmap_a-fbcmap_mi.Po
rm -f libfbcmap.a
ar cru libfbcmap.a libfbcmap_a-fbcmap_mi.o
ranlib libfbcmap.a
gcc -DHAVE_CONFIG_H -I. -I../../include    -DHAVE_DIX_CONFIG_H -DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS  -DHAVE_DIX_CONFIG_H -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/include/freetype2 -I/usr/include/pixman-1    -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 -g -O2 -MT InitInput.o -MD -MP -MF .deps/InitInput.Tpo -c -o InitInput.o InitInput.c
InitInput.c: In function 'ProcessInputEvents':
InitInput.c:55: warning: 'miPointerUpdate' is deprecated (declared at ../../mi/mipointer.h:111)
mv -f .deps/InitInput.Tpo .deps/InitInput.Po
gcc -DHAVE_CONFIG_H -I. -I../../include    -DHAVE_DIX_CONFIG_H -DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS  -DHAVE_DIX_CONFIG_H -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/include/freetype2 -I/usr/include/pixman-1    -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 -g -O2 -MT InitOutput.o -MD -MP -MF .deps/InitOutput.Tpo -c -o InitOutput.o InitOutput.c
InitOutput.c:827: warning: 'miPointerWarpCursor' is deprecated (declared at ../../mi/mipointer.h:92)
mv -f .deps/InitOutput.Tpo .deps/InitOutput.Po
gcc -DHAVE_CONFIG_H -I. -I../../include    -DHAVE_DIX_CONFIG_H -DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS  -DHAVE_DIX_CONFIG_H -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/include/freetype2 -I/usr/include/pixman-1    -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 -g -O2 -MT dpmsstubs.o -MD -MP -MF .deps/dpmsstubs.Tpo -c -o dpmsstubs.o `test -f '../../Xext/dpmsstubs.c' || echo './'`../../Xext/dpmsstubs.c
mv -f .deps/dpmsstubs.Tpo .deps/dpmsstubs.Po
gcc -DHAVE_CONFIG_H -I. -I../../include    -DHAVE_DIX_CONFIG_H -DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS  -DHAVE_DIX_CONFIG_H -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/include/freetype2 -I/usr/include/pixman-1    -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 -g -O2 -MT stubs.o -MD -MP -MF .deps/stubs.Tpo -c -o stubs.o `test -f '../../Xi/stubs.c' || echo './'`../../Xi/stubs.c
mv -f .deps/stubs.Tpo .deps/stubs.Po
gcc -DHAVE_CONFIG_H -I. -I../../include    -DHAVE_DIX_CONFIG_H -DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS  -DHAVE_DIX_CONFIG_H -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/include/freetype2 -I/usr/include/pixman-1    -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 -g -O2 -MT miinitext.o -MD -MP -MF .deps/miinitext.Tpo -c -o miinitext.o `test -f '../../mi/miinitext.c' || echo './'`../../mi/miinitext.c
mv -f .deps/miinitext.Tpo .deps/miinitext.Po
/bin/sh ../../libtool --tag=CC  --mode=link gcc -DHAVE_DIX_CONFIG_H -DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS  -DHAVE_DIX_CONFIG_H -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/include/freetype2 -I/usr/include/pixman-1    -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 -g -O2 -rdynamic  -o Xvfb InitInput.o InitOutput.o dpmsstubs.o stubs.o miinitext.o ../../fb/libfb.la ../../xfixes/libxfixes.la ../../Xext/libXext.la ../../config/libconfig.a ../../dbe/libdbe.la  ../../glx/libglx.la ../../render/librender.la ../../randr/librandr.la ../../damageext/libdamageext.la ../../miext/damage/libdamage.la ../../miext/shadow/libshadow.la ../../Xi/libXi.la ../../xkb/libxkb.la ../../xkb/libxkbstubs.la ../../composite/libcomposite.la ../../dix/libxpstubs.la libfbcmap.a ../../dix/libdix.la ../../config/libconfig.a ../../mi/libmi.la ../../os/libos.la  -lXfont -lXau -lfontenc -lpixman-1 -lXdmcp    -lm  -lrt  -lcrypto -lm  -lrt
mkdir .libs
gcc -DHAVE_DIX_CONFIG_H -DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS -DHAVE_DIX_CONFIG_H -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/include/freetype2 -I/usr/include/pixman-1 -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 -g -O2 -rdynamic -o Xvfb InitInput.o InitOutput.o dpmsstubs.o stubs.o miinitext.o  ../../fb/.libs/libfb.a ../../xfixes/.libs/libxfixes.a ../../Xext/.libs/libXext.a ../../dbe/.libs/libdbe.a ../../glx/.libs/libglx.a ../../render/.libs/librender.a ../../randr/.libs/librandr.a ../../damageext/.libs/libdamageext.a ../../miext/damage/.libs/libdamage.a ../../miext/shadow/.libs/libshadow.a ../../Xi/.libs/libXi.a ../../xkb/.libs/libxkb.a ../../xkb/.libs/libxkbstubs.a ../../composite/.libs/libcomposite.a ../../dix/.libs/libxpstubs.a libfbcmap.a ../../dix/.libs/libdix.a ../../config/libconfig.a ../../mi/.libs/libmi.a ../../os/.libs/libos.a /usr/lib/libXfont.so /usr/lib/libfreetype.so /usr/lib/libXau.so /usr/lib/libfontenc.so -lz /usr/lib/libpixman-1.so /usr/lib/libXdmcp.so -lcrypto -lm -lrt 
../../glx/.libs/libglx.a(glxdriswrast.o): In function `__glXDRIscreenProbe':
/sources2/xc/xorg-server-1.5.1/glx/glxdriswrast.c:476: undefined reference to `dlopen'
/sources2/xc/xorg-server-1.5.1/glx/glxdriswrast.c:483: undefined reference to `dlsym'
/sources2/xc/xorg-server-1.5.1/glx/glxdriswrast.c:531: undefined reference to `dlclose'
/sources2/xc/xorg-server-1.5.1/glx/glxdriswrast.c:485: undefined reference to `dlerror'
/sources2/xc/xorg-server-1.5.1/glx/glxdriswrast.c:478: undefined reference to `dlerror'
../../glx/.libs/libglx.a(glxdriswrast.o): In function `__glXDRIscreenDestroy':
/sources2/xc/xorg-server-1.5.1/glx/glxdriswrast.c:255: undefined reference to `dlclose'
collect2: ld returned 1 exit status
make[3]: *** [Xvfb] Error 1
make[3]: Leaving directory `/sources2/xc/xorg-server-1.5.1/hw/vfb'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/sources2/xc/xorg-server-1.5.1/hw/vfb'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources2/xc/xorg-server-1.5.1/hw'
make: *** [all-recursive] Error 1


plpl303 10-29-2008 08:10 PM

I think the functions in question are in libdl.so -- so the program should have

-ldl

added to the compile command to link in the dynamic linking library code. It's strange that it's not there automatically, however. Can you manually add -ldl to the LDFLAGS in the Makefile?

versaulis 10-30-2008 09:17 AM

Well, I appreciate the help. I really thought that was going to work, based on some of my other searches, but it did not. I got the same error.

Code:

--- Makefile.old        2008-10-30 10:02:55.000000000 -0400
+++ Makefile        2008-10-30 10:03:22.000000000 -0400
@@ -181,7 +181,7 @@
 KDRIVE_PURE_INCS =
 KDRIVE_PURE_LIBS =
 LAUNCHD = no
-LDFLAGS =
+LDFLAGS = -ldl
 LD_EXPORT_SYMBOLS_FLAG = -rdynamic
 LEX = flex
 LEXLIB = -lfl

More of the output:
Code:

make[5]: Leaving directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86/utils/ioport'
Making all in kbd_mode
make[5]: Entering directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86/utils/kbd_mode'
make  all-am
make[6]: Entering directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86/utils/kbd_mode'
make[6]: Nothing to be done for `all-am'.
make[6]: Leaving directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86/utils/kbd_mode'
make[5]: Leaving directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86/utils/kbd_mode'
Making all in xorgcfg
make[5]: Entering directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86/utils/xorgcfg'
make  all-am
make[6]: Entering directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86/utils/xorgcfg'
make[6]: Nothing to be done for `all-am'.
make[6]: Leaving directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86/utils/xorgcfg'
make[5]: Leaving directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86/utils/xorgcfg'
Making all in xorgconfig
make[5]: Entering directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86/utils/xorgconfig'
/usr/bin/cpp -undef -traditional -D__vendorversion__="\"xorg-server 1.5.1\" \"X Version 11\"" -D__xorgversion__="\"xorg-server 1.5.1\" \"X Version 11\"" -D__appmansuffix__=1 -D__filemansuffix__=5 -D__libmansuffix__=3 -D__miscmansuffix__=7 -D__drivermansuffix__=4 -D__adminmansuffix__=8 -D__mandir__=/usr/share/man -D__projectroot__=/usr -D__xconfigfile__=xorg.conf -D__xconfigdir__= -D__xlogfile__= -D__xservername__=Xorg  -D__XCONFIGFILE__=xorg.conf -D__XSERVERNAME__=Xorg < xorgconfig.man.pre | sed -e '/^#  *[0-9][0-9]*  *.*$/d' -e '/^#line  *[0-9][0-9]*  *.*$/d' -e '/^[        ]*XCOMM$/s/XCOMM/#/' -e '/^[        ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/' -e '/^[        ]*XHASH/s/XHASH/#/' -e '/\@\@$/s/\@\@$/\\/' > xorgconfig.man
make  all-am
make[6]: Entering directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86/utils/xorgconfig'
gcc -DHAVE_CONFIG_H -I. -I../../../../include    -DCARD_DATABASE_FILE='"/usr/lib/X11/Cards"' -DPROJECTROOT='"/usr"' -DFILEMANSUFFIX='"5"' -DXVERSIONSTRING='"xorg-server 1.5.1"' -g -O2 -MT xorgconfig-cards.o -MD -MP -MF .deps/xorgconfig-cards.Tpo -c -o xorgconfig-cards.o `test -f 'cards.c' || echo './'`cards.c
mv -f .deps/xorgconfig-cards.Tpo .deps/xorgconfig-cards.Po
gcc -DHAVE_CONFIG_H -I. -I../../../../include    -DCARD_DATABASE_FILE='"/usr/lib/X11/Cards"' -DPROJECTROOT='"/usr"' -DFILEMANSUFFIX='"5"' -DXVERSIONSTRING='"xorg-server 1.5.1"' -g -O2 -MT xorgconfig-xorgconfig.o -MD -MP -MF .deps/xorgconfig-xorgconfig.Tpo -c -o xorgconfig-xorgconfig.o `test -f 'xorgconfig.c' || echo './'`xorgconfig.c
mv -f .deps/xorgconfig-xorgconfig.Tpo .deps/xorgconfig-xorgconfig.Po
/bin/sh ../../../../libtool --tag=CC  --mode=link gcc -DCARD_DATABASE_FILE='"/usr/lib/X11/Cards"' -DPROJECTROOT='"/usr"' -DFILEMANSUFFIX='"5"' -DXVERSIONSTRING='"xorg-server 1.5.1"' -g -O2  -o xorgconfig xorgconfig-cards.o xorgconfig-xorgconfig.o -lxkbfile -lX11  -lm  -lrt
mkdir .libs
gcc -DCARD_DATABASE_FILE=\"/usr/lib/X11/Cards\" -DPROJECTROOT=\"/usr\" -DFILEMANSUFFIX=\"5\" "-DXVERSIONSTRING=\"xorg-server 1.5.1\"" -g -O2 -o xorgconfig xorgconfig-cards.o xorgconfig-xorgconfig.o  /usr/lib/libxkbfile.so /usr/lib/libX11.so /usr/lib/libxcb-xlib.so /usr/lib/libxcb.so /usr/lib/libXau.so /usr/lib/libXdmcp.so -ldl -lm -lrt
rm -f xorgconfig.1
ln -s xorgconfig.man xorgconfig.1
make[6]: Leaving directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86/utils/xorgconfig'
make[5]: Leaving directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86/utils/xorgconfig'
make[5]: Entering directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86/utils'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86/utils'
make[4]: Leaving directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86/utils'
Making all in doc
make[4]: Entering directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86/doc'
Making all in man
make[5]: Entering directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86/doc/man'
/usr/bin/cpp -undef -traditional -D__vendorversion__="\"xorg-server 1.5.1\" \"X Version 11\"" -D__xorgversion__="\"xorg-server 1.5.1\" \"X Version 11\"" -D__appmansuffix__=1 -D__filemansuffix__=5 -D__libmansuffix__=3 -D__miscmansuffix__=7 -D__drivermansuffix__=4 -D__adminmansuffix__=8 -D__mandir__=/usr/share/man -D__projectroot__=/usr -D__xconfigfile__=xorg.conf -D__xconfigdir__= -D__xlogfile__= -D__xservername__=Xorg  -D__logdir__=/var/log < Xorg.man.pre | sed -e '/^#  *[0-9][0-9]*  *.*$/d' -e '/^#line  *[0-9][0-9]*  *.*$/d' -e '/^[  ]*XCOMM$/s/XCOMM/#/' -e '/^[        ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/' -e '/^[        ]*XHASH/s/XHASH/#/' -e '/\@\@$/s/\@\@$/\\/' > Xorg.man
rm -f Xorg.1
ln -s Xorg.man Xorg.1
/usr/bin/cpp -undef -traditional -D__vendorversion__="\"xorg-server 1.5.1\" \"X Version 11\"" -D__xorgversion__="\"xorg-server 1.5.1\" \"X Version 11\"" -D__appmansuffix__=1 -D__filemansuffix__=5 -D__libmansuffix__=3 -D__miscmansuffix__=7 -D__drivermansuffix__=4 -D__adminmansuffix__=8 -D__mandir__=/usr/share/man -D__projectroot__=/usr -D__xconfigfile__=xorg.conf -D__xconfigdir__= -D__xlogfile__= -D__xservername__=Xorg  -D__logdir__=/var/log < xorg.conf.man.pre | sed -e '/^#  *[0-9][0-9]*  *.*$/d' -e '/^#line  *[0-9][0-9]*  *.*$/d' -e '/^[        ]*XCOMM$/s/XCOMM/#/' -e '/^[        ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/' -e '/^[        ]*XHASH/s/XHASH/#/' -e '/\@\@$/s/\@\@$/\\/' > xorg.conf.man
rm -f xorg.conf.5
ln -s xorg.conf.man xorg.conf.5
make[5]: Leaving directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86/doc/man'make[5]: Entering directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86/doc'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86/doc'
make[4]: Leaving directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86/doc'
make[4]: Entering directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86'
/bin/sh ../../libtool --tag=CC  --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../include -I../../hw/xfree86 -I../../hw/xfree86/include -I../../hw/xfree86/common -I../../hw/xfree86/os-support -I../../hw/xfree86/os-support/bus -I../../os    -DHAVE_DIX_CONFIG_H -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/include/freetype2 -I/usr/include/pixman-1    -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  -DHAVE_XORG_CONFIG_H  -DXF86PM  -g -O2 -MT osandcommon.lo -MD -MP -MF .deps/osandcommon.Tpo -c -o osandcommon.lo osandcommon.c
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I../../include -I../../hw/xfree86 -I../../hw/xfree86/include -I../../hw/xfree86/common -I../../hw/xfree86/os-support -I../../hw/xfree86/os-support/bus -I../../os -DHAVE_DIX_CONFIG_H -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/include/freetype2 -I/usr/include/pixman-1 -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 -DHAVE_XORG_CONFIG_H -DXF86PM -g -O2 -MT osandcommon.lo -MD -MP -MF .deps/osandcommon.Tpo -c osandcommon.c  -fPIC -DPIC -o .libs/osandcommon.o
mv -f .deps/osandcommon.Tpo .deps/osandcommon.Plo
/bin/sh ../../libtool --tag=CC  --mode=link gcc -DHAVE_DIX_CONFIG_H -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/include/freetype2 -I/usr/include/pixman-1    -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  -DHAVE_XORG_CONFIG_H  -DXF86PM  -g -O2  -o libosandcommon.la  osandcommon.lo os-support/libxorgos.la common/libcommon.la -lm  -lrt
rm -fr .libs/libosandcommon.lax
mkdir .libs/libosandcommon.lax
rm -fr .libs/libosandcommon.lax/libxorgos.a
mkdir .libs/libosandcommon.lax/libxorgos.a
(cd .libs/libosandcommon.lax/libxorgos.a && ar x /sources2/xc/xorg-server-1.5.1/hw/xfree86/os-support/.libs/libxorgos.a)
rm -fr .libs/libosandcommon.lax/libcommon.a
mkdir .libs/libosandcommon.lax/libcommon.a
(cd .libs/libosandcommon.lax/libcommon.a && ar x /sources2/xc/xorg-server-1.5.1/hw/xfree86/common/.libs/libcommon.a)
ar cru .libs/libosandcommon.a .libs/osandcommon.o  .libs/libosandcommon.lax/libxorgos.a/xorgos.o .libs/libosandcommon.lax/libxorgos.a/lnx_init.o .libs/libosandcommon.lax/libxorgos.a/lnx_video.o .libs/libosandcommon.lax/libxorgos.a/lnx_mouse.o .libs/libosandcommon.lax/libxorgos.a/lnx_pci.o .libs/libosandcommon.lax/libxorgos.a/lnx_agp.o .libs/libosandcommon.lax/libxorgos.a/lnx_kmod.o .libs/libosandcommon.lax/libxorgos.a/lnx_bell.o .libs/libosandcommon.lax/libxorgos.a/bios_mmap.o .libs/libosandcommon.lax/libxorgos.a/VTsw_usl.o .libs/libosandcommon.lax/libxorgos.a/posix_tty.o .libs/libosandcommon.lax/libxorgos.a/vidmem.o .libs/libosandcommon.lax/libxorgos.a/sigio.o .libs/libosandcommon.lax/libxorgos.a/stdResource.o .libs/libosandcommon.lax/libxorgos.a/lnx_acpi.o .libs/libosandcommon.lax/libxorgos.a/lnx_apm.o .libs/libosandcommon.lax/libxorgos.a/lt1-lnx_apm.o .libs/libosandcommon.lax/libxorgos.a/Pci.o .libs/libosandcommon.lax/libxorgos.a/linuxPci.o .libs/libosandcommon.lax/libxorgos.a/xf86_Util.o .libs/libosandcommon.lax/libxorgos.a/Delay.o .libs/libosandcommon.lax/libxorgos.a/BUSmemcpy.o .libs/libosandcommon.lax/libxorgos.a/IODelay.o .libs/libosandcommon.lax/libxorgos.a/SlowBcopy.o  .libs/libosandcommon.lax/libcommon.a/xf86Configure.o .libs/libosandcommon.lax/libcommon.a/xf86Bus.o .libs/libosandcommon.lax/libcommon.a/xf86Config.o .libs/libosandcommon.lax/libcommon.a/xf86Cursor.o .libs/libosandcommon.lax/libcommon.a/xf86DGA.o .libs/libosandcommon.lax/libcommon.a/xf86DPMS.o .libs/libosandcommon.lax/libcommon.a/xf86DoProbe.o .libs/libosandcommon.lax/libcommon.a/xf86Events.o .libs/libosandcommon.lax/libcommon.a/xf86Globals.o .libs/libosandcommon.lax/libcommon.a/xf86AutoConfig.o .libs/libosandcommon.lax/libcommon.a/xf86MiscExt.o .libs/libosandcommon.lax/libcommon.a/xf86Option.o .libs/libosandcommon.lax/libcommon.a/xf86VidMode.o .libs/libosandcommon.lax/libcommon.a/xf86fbman.o .libs/libosandcommon.lax/libcommon.a/xf86cmap.o .libs/libosandcommon.lax/libcommon.a/xf86Helper.o .libs/libosandcommon.lax/libcommon.a/xf86PM.o .libs/libosandcommon.lax/libcommon.a/xf86Mode.o .libs/libosandcommon.lax/libcommon.a/xorgHelper.o .libs/libosandcommon.lax/libcommon.a/xf86Versions.o .libs/libosandcommon.lax/libcommon.a/xf86xv.o .libs/libosandcommon.lax/libcommon.a/xf86xvmc.o .libs/libosandcommon.lax/libcommon.a/xf86isaBus.o .libs/libosandcommon.lax/libcommon.a/xf86pciBus.o .libs/libosandcommon.lax/libcommon.a/xf86fbBus.o .libs/libosandcommon.lax/libcommon.a/xf86noBus.o .libs/libosandcommon.lax/libcommon.a/xf86XKB.o .libs/libosandcommon.lax/libcommon.a/xf86Xinput.o .libs/libosandcommon.lax/libcommon.a/xisb.o .libs/libosandcommon.lax/libcommon.a/xf86RandR.o .libs/libosandcommon.lax/libcommon.a/xf86DefModeSet.o
ranlib .libs/libosandcommon.a
rm -fr .libs/libosandcommon.lax
creating libosandcommon.la
(cd .libs && rm -f libosandcommon.la && ln -s ../libosandcommon.la libosandcommon.la)
gcc -DHAVE_CONFIG_H -I. -I../../include -I../../hw/xfree86 -I../../hw/xfree86/include -I../../hw/xfree86/common -I../../hw/xfree86/os-support -I../../hw/xfree86/os-support/bus -I../../os    -DHAVE_DIX_CONFIG_H -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/include/freetype2 -I/usr/include/pixman-1    -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  -DHAVE_XORG_CONFIG_H  -DXF86PM  -g -O2 -MT xorg.o -MD -MP -MF .deps/xorg.Tpo -c -o xorg.o xorg.c
mv -f .deps/xorg.Tpo .deps/xorg.Po
/bin/sh ../../libtool --tag=CC  --mode=link gcc -DHAVE_DIX_CONFIG_H -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/include/freetype2 -I/usr/include/pixman-1    -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  -DHAVE_XORG_CONFIG_H  -DXF86PM  -g -O2 -rdynamic  -o Xorg xorg.o ../../dix/libdix.la ../../config/libconfig.a ../../mi/libmi.la ../../os/libos.la common/libinit.a loader/libloader.a libosandcommon.la rac/librac.a parser/libxf86config.a dixmods/libdixmods.la modes/libxf86modes.a ramdac/libramdac.a ddc/libddc.a i2c/libi2c.a dixmods/libxorgxkb.la ../../mi/libmi.la ../../os/libos.la ../../composite/libcomposite.la ../../xfixes/libxfixes.la ../../Xext/libXextbuiltin.la ../../glx/libglx.la ../../render/librender.la ../../randr/librandr.la ../../damageext/libdamageext.la ../../miext/damage/libdamage.la ../../miext/shadow/libshadow.la ../../Xi/libXi.la ../../xkb/libxkb.la ../../dix/libxpstubs.la dixmods/libxorgxkb.la -lpciaccess  -ldl  -ldl  -lXfont -lXau -lfontenc -lpixman-1 -lXdmcp    -lm  -lrt  -lcrypto -lm  -lrt
gcc -DHAVE_DIX_CONFIG_H -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/include/freetype2 -I/usr/include/pixman-1 -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 -DHAVE_XORG_CONFIG_H -DXF86PM -g -O2 -rdynamic -o Xorg xorg.o  ../../dix/.libs/libdix.a ../../config/libconfig.a common/libinit.a loader/libloader.a ./.libs/libosandcommon.a rac/librac.a parser/libxf86config.a dixmods/.libs/libdixmods.a modes/libxf86modes.a ramdac/libramdac.a ddc/libddc.a i2c/libi2c.a ../../mi/.libs/libmi.a ../../os/.libs/libos.a ../../composite/.libs/libcomposite.a ../../xfixes/.libs/libxfixes.a ../../Xext/.libs/libXextbuiltin.a ../../glx/.libs/libglx.a ../../render/.libs/librender.a ../../randr/.libs/librandr.a ../../damageext/.libs/libdamageext.a ../../miext/damage/.libs/libdamage.a ../../miext/shadow/.libs/libshadow.a ../../Xi/.libs/libXi.a ../../xkb/.libs/libxkb.a ../../dix/.libs/libxpstubs.a dixmods/.libs/libxorgxkb.a /usr/lib/libpciaccess.so -ldl /usr/lib/libXfont.so /usr/lib/libfreetype.so /usr/lib/libXau.so /usr/lib/libfontenc.so -lz /usr/lib/libpixman-1.so /usr/lib/libXdmcp.so -lcrypto -lm -lrt
make[4]: Leaving directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86'
make[3]: Leaving directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86'
make[2]: Leaving directory `/sources2/xc/xorg-server-1.5.1/hw/xfree86'
Making all in vfb
make[2]: Entering directory `/sources2/xc/xorg-server-1.5.1/hw/vfb'
/usr/bin/cpp -undef -traditional -D__vendorversion__="\"xorg-server 1.5.1\" \"X Version 11\"" -D__xorgversion__="\"xorg-server 1.5.1\" \"X Version 11\"" -D__appmansuffix__=1 -D__filemansuffix__=5 -D__libmansuffix__=3 -D__miscmansuffix__=7 -D__drivermansuffix__=4 -D__adminmansuffix__=8 -D__mandir__=/usr/share/man -D__projectroot__=/usr -D__xconfigfile__=xorg.conf -D__xconfigdir__= -D__xlogfile__= -D__xservername__=Xorg  < Xvfb.man.pre | sed -e '/^#  *[0-9][0-9]* *.*$/d' -e '/^#line  *[0-9][0-9]*  *.*$/d' -e '/^[        ]*XCOMM$/s/XCOMM/#/' -e '/^[        ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/' -e '/^[        ]*XHASH/s/XHASH/#/' -e '/\@\@$/s/\@\@$/\\/' > Xvfb.man
make  all-am
make[3]: Entering directory `/sources2/xc/xorg-server-1.5.1/hw/vfb'
gcc -DHAVE_CONFIG_H -I. -I../../include    -DHAVE_DIX_CONFIG_H -DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS  -DHAVE_DIX_CONFIG_H -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/include/freetype2 -I/usr/include/pixman-1    -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 -g -O2 -MT libfbcmap_a-fbcmap_mi.o -MD -MP -MF .deps/libfbcmap_a-fbcmap_mi.Tpo -c -o libfbcmap_a-fbcmap_mi.o `test -f '../../fb/fbcmap_mi.c' || echo './'`../../fb/fbcmap_mi.c
mv -f .deps/libfbcmap_a-fbcmap_mi.Tpo .deps/libfbcmap_a-fbcmap_mi.Po
rm -f libfbcmap.a
ar cru libfbcmap.a libfbcmap_a-fbcmap_mi.o
ranlib libfbcmap.a
gcc -DHAVE_CONFIG_H -I. -I../../include    -DHAVE_DIX_CONFIG_H -DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS  -DHAVE_DIX_CONFIG_H -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/include/freetype2 -I/usr/include/pixman-1    -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 -g -O2 -MT InitInput.o -MD -MP -MF .deps/InitInput.Tpo -c -o InitInput.o InitInput.c
InitInput.c: In function 'ProcessInputEvents':
InitInput.c:55: warning: 'miPointerUpdate' is deprecated (declared at ../../mi/mipointer.h:111)
mv -f .deps/InitInput.Tpo .deps/InitInput.Po
gcc -DHAVE_CONFIG_H -I. -I../../include    -DHAVE_DIX_CONFIG_H -DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS  -DHAVE_DIX_CONFIG_H -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/include/freetype2 -I/usr/include/pixman-1    -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 -g -O2 -MT InitOutput.o -MD -MP -MF .deps/InitOutput.Tpo -c -o InitOutput.o InitOutput.c
InitOutput.c:827: warning: 'miPointerWarpCursor' is deprecated (declared at ../../mi/mipointer.h:92)
mv -f .deps/InitOutput.Tpo .deps/InitOutput.Po
gcc -DHAVE_CONFIG_H -I. -I../../include    -DHAVE_DIX_CONFIG_H -DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS  -DHAVE_DIX_CONFIG_H -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/include/freetype2 -I/usr/include/pixman-1    -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 -g -O2 -MT dpmsstubs.o -MD -MP -MF .deps/dpmsstubs.Tpo -c -o dpmsstubs.o `test -f '../../Xext/dpmsstubs.c' || echo './'`../../Xext/dpmsstubs.c
mv -f .deps/dpmsstubs.Tpo .deps/dpmsstubs.Po
gcc -DHAVE_CONFIG_H -I. -I../../include    -DHAVE_DIX_CONFIG_H -DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS  -DHAVE_DIX_CONFIG_H -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/include/freetype2 -I/usr/include/pixman-1    -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 -g -O2 -MT stubs.o -MD -MP -MF .deps/stubs.Tpo -c -o stubs.o `test -f '../../Xi/stubs.c' || echo './'`../../Xi/stubs.c
mv -f .deps/stubs.Tpo .deps/stubs.Po
gcc -DHAVE_CONFIG_H -I. -I../../include    -DHAVE_DIX_CONFIG_H -DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS  -DHAVE_DIX_CONFIG_H -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/include/freetype2 -I/usr/include/pixman-1    -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 -g -O2 -MT miinitext.o -MD -MP -MF .deps/miinitext.Tpo -c -o miinitext.o `test -f '../../mi/miinitext.c' || echo './'`../../mi/miinitext.c
mv -f .deps/miinitext.Tpo .deps/miinitext.Po
/bin/sh ../../libtool --tag=CC  --mode=link gcc -DHAVE_DIX_CONFIG_H -DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS  -DHAVE_DIX_CONFIG_H -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/include/freetype2 -I/usr/include/pixman-1    -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 -g -O2 -rdynamic  -o Xvfb InitInput.o InitOutput.o dpmsstubs.o stubs.o miinitext.o ../../fb/libfb.la ../../xfixes/libxfixes.la ../../Xext/libXext.la ../../config/libconfig.a ../../dbe/libdbe.la  ../../glx/libglx.la ../../render/librender.la ../../randr/librandr.la ../../damageext/libdamageext.la ../../miext/damage/libdamage.la ../../miext/shadow/libshadow.la ../../Xi/libXi.la ../../xkb/libxkb.la ../../xkb/libxkbstubs.la ../../composite/libcomposite.la ../../dix/libxpstubs.la libfbcmap.a ../../dix/libdix.la ../../config/libconfig.a ../../mi/libmi.la ../../os/libos.la  -lXfont -lXau -lfontenc -lpixman-1 -lXdmcp  -lm  -lrt  -lcrypto -lm  -lrt
mkdir .libs
gcc -DHAVE_DIX_CONFIG_H -DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS -DHAVE_DIX_CONFIG_H -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/include/freetype2 -I/usr/include/pixman-1 -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 -g -O2 -rdynamic -o Xvfb InitInput.o InitOutput.o dpmsstubs.o stubs.o miinitext.o  ../../fb/.libs/libfb.a ../../xfixes/.libs/libxfixes.a ../../Xext/.libs/libXext.a ../../dbe/.libs/libdbe.a ../../glx/.libs/libglx.a ../../render/.libs/librender.a ../../randr/.libs/librandr.a ../../damageext/.libs/libdamageext.a ../../miext/damage/.libs/libdamage.a ../../miext/shadow/.libs/libshadow.a ../../Xi/.libs/libXi.a ../../xkb/.libs/libxkb.a ../../xkb/.libs/libxkbstubs.a ../../composite/.libs/libcomposite.a ../../dix/.libs/libxpstubs.a libfbcmap.a ../../dix/.libs/libdix.a ../../config/libconfig.a ../../mi/.libs/libmi.a ../../os/.libs/libos.a /usr/lib/libXfont.so /usr/lib/libfreetype.so /usr/lib/libXau.so /usr/lib/libfontenc.so -lz /usr/lib/libpixman-1.so /usr/lib/libXdmcp.so -lcrypto -lm -lrt
../../glx/.libs/libglx.a(glxdriswrast.o): In function `__glXDRIscreenProbe':
/sources2/xc/xorg-server-1.5.1/glx/glxdriswrast.c:476: undefined reference to `dlopen'
/sources2/xc/xorg-server-1.5.1/glx/glxdriswrast.c:483: undefined reference to `dlsym'
/sources2/xc/xorg-server-1.5.1/glx/glxdriswrast.c:531: undefined reference to `dlclose'
/sources2/xc/xorg-server-1.5.1/glx/glxdriswrast.c:485: undefined reference to `dlerror'
/sources2/xc/xorg-server-1.5.1/glx/glxdriswrast.c:478: undefined reference to `dlerror'
../../glx/.libs/libglx.a(glxdriswrast.o): In function `__glXDRIscreenDestroy':/sources2/xc/xorg-server-1.5.1/glx/glxdriswrast.c:255: undefined reference to `dlclose'
collect2: ld returned 1 exit status
make[3]: *** [Xvfb] Error 1
make[3]: Leaving directory `/sources2/xc/xorg-server-1.5.1/hw/vfb'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/sources2/xc/xorg-server-1.5.1/hw/vfb'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources2/xc/xorg-server-1.5.1/hw'
make: *** [all-recursive] Error 1


plpl303 10-30-2008 10:10 PM

But interestingly enough, the line that fails does NOT seem to have -ldl in it (though others in the dump do).

Perhaps the LDFLAGS in

/sources2/xc/xorg-server-1.5.1/hw/vfb/Makefile

need to have -ldl added as well?

giftlftr_23 10-30-2008 10:48 PM

try to run the configure script this way

export LIBS=-ldl && ./configure

versaulis 10-31-2008 09:31 AM

Quote:

Originally Posted by giftlftr_23 (Post 3326844)
try to run the configure script this way

export LIBS=-ldl && ./configure

That worked really well, thanks!

western1 08-10-2009 01:17 PM

Thanks for help on xorg-server!!!
 
Tried adding the export LIBS=-ldl and it worked.
Excellent!


All times are GMT -5. The time now is 01:16 AM.