[Debian-med-packaging] Build error when trying to build latest version of seaview

Andreas Tille andreas at an3as.eu
Tue Jul 7 13:39:45 UTC 2015


Hi Manolo,

On Tue, Jul 07, 2015 at 08:59:35AM -0400, Manolo Gouy wrote:
> > ...
> > g++ -o seaview  -Wl,-z,relro -Wl,--as-needed seaview.o custom.o use_mase_files.o regions.o load_seq.o align.o xfmatpt.o comlines.o resource.o nexus.o viewasprots.o racnuc_fetch.o           concatenate.o statistics.o trees.o treedraw.o addbootstrap.o least_squares_brl.o pseudoterminal.o unrooted.o pdf_or_ps.o svg.o threads.o Fl_Native_File_Chooser_FLTK.o raa_acnuc.o parser.o  md5.o zsockr.o misc_acnuc.o dnapars.o protpars.o seq.o phylip.o lwl.o bionj.o phyml_util.o  `fltk-config --use-images --ldflags`
> > /usr/bin/ld: Fl_Native_File_Chooser_FLTK.o: undefined reference to symbol 'dlsym@@GLIBC_2.2.5'
> > //lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line
> > collect2: error: ld returned 1 exit status
> > ...
> > 
> > Google hits suggest to add -ldl which I did but there is no change. :-(
> > 
> > Any clue?
> 
> Hi Andreas,
> 
> I’am pretty sure adding -ldl to the end of the link command is the solution.
> Did you add it at the end of the link  command?

Ahhh, some more is needed:

--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,7 @@
 CONFIG ?= fltk-config
 PDF_PS_FLAGS ?= -DNO_PDF

-EXTRALIBS = `$(CONFIG) --use-images --ldflags`
+EXTRALIBS = `$(CONFIG) --use-images --ldflags` -lz -lpthread -ldl

 CC = gcc
 CXX = g++


I wonder how this could work at your side ...

Will be uploaded soon

        Andreas. 

-- 
http://fam-tille.de



More information about the Debian-med-packaging mailing list