#15 Linking issues on Debian/Ubuntu

open
nobody
None
5
2010-03-04
2010-03-03
No

I'm encountering a linking error whilst trying to build 1.5.2 in an Ubuntu Lucid environment:

g++ -DLOCALEDIR=\"/usr/share/locale\" -g -O2 -g -Wall -O2 -Wl,-Bsymbolic-functions -L/usr/lib -o fgrun wizard.o wizard_funcs.o advanced.o advanced_funcs.o AirportBrowser.o AirportTable.o Fl_Table.o Fl_Table_Row.o Fl_OSG.o Fl_Heading_Dial.o main.o io.o fgfsrc.o logwin.o parkingloader.o settings.o util.o run_posix.o fgrun_pty.o -lsgmodel -lsgscreen -lsgprops -lsgxml -lsgdebug -lsgbvh -lsgmaterial -lsgmodel -lsgutil -lsgstructure -lsgprops -lsgtgdb -lsgmath -lsgmisc -lsgbvh -lsgio -lsgbucket -lsgmodel -lsgutil -lplibsg -lplibul -lplibnet -losgParticle -losgSim -losgViewer -losgGA -losgText -losgDB -losgUtil -losg -lOpenThreads -lfltk_gl -lpthread -lfltk -lGL -lXt -lSM -lICE -lXext -lX11 -lm -lz -lutil -losgFX
/usr/bin/ld: cannot find -lsgbvh

However, removing -lsgbvh from the command creates no linker error, suggesting it is not needed. Note that this is blocking me from packaging fgrun for Ubuntu (https://bugs.launchpad.net/debian/+bug/399851). Please find attached the complete package builder (pbuilder) log, which includes details of all installed libraries and the configuration/build process.

Discussion

  • Simrun Basuita

    Simrun Basuita - 2010-03-03

    Log of the build failure

     
  • Simrun Basuita

    Simrun Basuita - 2010-03-04
    • summary: Build failure on Debian/Ubuntu due to needless link --> Linking issues on Debian/Ubuntu
     
  • Simrun Basuita

    Simrun Basuita - 2010-03-04

    In addition to the linking problem in the description, fgrun is linked to a multitude of libraries without using their symbols, creating lots of unnecessary dependencies which would inhibit its inclusion in Ubuntu. Here is a list:

    libXt
    libX11
    libosgFX
    libsgbucket
    libsgmaterial
    libXext
    libosgSim
    libosgText
    libICE
    libsgio
    libsgmath
    libosgUtil
    libsgtgdb
    libsgutil
    libSM
    libsgscreen
    libosgParticle
    libGL

    Fixing this with patches in the package would be really ugly, so I hope you guys can edit the autotools source files (ie. Makefile.am and configure.ac) and regenerate the Makefile.in and configure scripts for a bugfix release?

     

Log in to post a comment.