SourceForge has been redesigned. Learn more.

#271 Compile errors on Ubuntu

unexpected behavior

I'm Trying to compile brlcad 7.12..2 on Ubuntu 8.4. The make command gives the following error:
(I have included the last two lines just before the error. There are hundreds before, that I did not include here)

gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I/usr/local/include -DBRLCADBUILD=1 -I../../include -I../../src/other/openNURBS -I../../src/other/libz -I../../src/other/incrTcl/itcl/generic -I../../src/other/tcl/generic -I../../src/other/tcl/unix -pipe -fno-strict-aliasing -fno-common -fexceptions -g -O3 -c -o btclsh-tcl.o `test -f 'tcl.c' || echo './'`tcl.c
/bin/bash ../../libtool --silent --mode=link gcc -pipe -fno-strict-aliasing -fno-common -fexceptions -g -O3 -L/usr/local/lib -pipe -fno-strict-aliasing -fno-common -fexceptions -g -O3 -o btclsh btclsh-cmd.o btclsh-input.o btclsh-main.o btclsh-tcl.o ../../src/libtclcad/ ../../src/libdm/ ../../src/other/blt/ ../../src/other/incrTcl/ ../../src/other/incrTcl/ -L../../src/other/tk/unix -ltk8.5 -L../../src/other/tcl/unix -ltcl8.5 -ldl -lm ../../src/libtermio/
../../src/libdm/.libs/ undefined reference to `XFreeDeviceList'
../../src/libdm/.libs/ undefined reference to `XOpenDevice'
../../src/libdm/.libs/ undefined reference to `XSelectExtensionEvent'
../../src/libdm/.libs/ undefined reference to `XListInputDevices'
collect2: ld returned 1 exit status
make[2]: *** [btclsh] Error 1
make[2]: Leaving directory `/home/A/cdroms/mytars/brlcad-7.12.2/src/bwish'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/A/cdroms/mytars/brlcad-7.12.2/src'
make: *** [all-recursive] Error 1



  • Sean Morrison

    Sean Morrison - 2010-07-30

    The build is failing to link against the X11 library. This should have been detected during configure so you either do not have development headers installed ( sudo apt-get install xorg-dev ) or you ran configure before installing them and got a cached result. In case of the latter, delete your cache files ( rm -rf autom4te* *cache*) and rerun and configure.

    Feel free to follow up with any remaining issues with a support request as this is not a bug.


  • Sean Morrison

    Sean Morrison - 2010-07-30
    • milestone: --> unexpected behavior
    • assigned_to: nobody --> brlcad
    • status: open --> closed-invalid

Log in to post a comment.