#271 Compile errors on Ubuntu

unexpected behavior
closed-invalid
Sean Morrison
5
2010-07-30
2010-07-30
Richard Uschold
No

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/libtclcad.la ../../src/libdm/libdm.la ../../src/other/blt/libBLT24.la ../../src/other/incrTcl/libitk.la ../../src/other/incrTcl/libitcl.la -L../../src/other/tk/unix -ltk8.5 -L../../src/other/tcl/unix -ltcl8.5 -ldl -lm ../../src/libtermio/libtermio.la
../../src/libdm/.libs/libdm.so: undefined reference to `XFreeDeviceList'
../../src/libdm/.libs/libdm.so: undefined reference to `XOpenDevice'
../../src/libdm/.libs/libdm.so: undefined reference to `XSelectExtensionEvent'
../../src/libdm/.libs/libdm.so: 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

Richard

Discussion

  • 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 autogen.sh and configure.

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

    Cheers!
    Sean

     
  • Sean Morrison
    Sean Morrison
    2010-07-30

    • milestone: --> unexpected behavior
    • assigned_to: nobody --> brlcad
    • status: open --> closed-invalid