Package: gyoto
Severity: minor
User: peter.fritzs...@gmx.de
Usertags: no-add-needed

Dear Maintainer, gyoto package fails to build from source with binutils-gold, 
see the log

g++ -o gyoto -Wl,-Bsymbolic-functions -Wl,-z,relro -lxerces-c  -lxerces-c  
-lstdc++ -lm -lxerces-c -lcfitsio gyoto.o -L../lib -lgyoto -ldl
gyoto.o: In function `sigint_handler(int)':
/build/buildd/gyoto-0.0.3/bin/gyoto.C:52: undefined reference to `ffppx'
/build/buildd/gyoto-0.0.3/bin/gyoto.C:53: undefined reference to `ffclos'
/build/buildd/gyoto-0.0.3/bin/gyoto.C:54: undefined reference to `ffrprt'
gyoto.o: In function `xercesc_3_1::XMLAttDefList::~XMLAttDefList()':
/usr/include/xercesc/framework/XMLAttDefList.hpp:158: undefined reference to 
`xercesc_3_1::XMemory::operator delete(void*)'
gyoto.o: In function `xercesc_3_1::DTDEntityDecl::~DTDEntityDecl()':
/usr/include/xercesc/validators/DTD/DTDEntityDecl.hpp:160: undefined reference 
to `xercesc_3_1::XMLEntityDecl::~XMLEntityDecl()'
gyoto.o: In function `~DTDEntityDecl':
/usr/include/xercesc/validators/DTD/DTDEntityDecl.hpp:160: undefined reference 
to `xercesc_3_1::XMLEntityDecl::~XMLEntityDecl()'
gyoto.o: In function `xercesc_3_1::DTDEntityDecl::~DTDEntityDecl()':
/usr/include/xercesc/validators/DTD/DTDEntityDecl.hpp:162: undefined reference 
to `xercesc_3_1::XMemory::operator delete(void*)'
gyoto.o: In function `main':
[...]

Patch attached!


-- System Information:
Debian Release: wheezy/sid
  APT prefers precise-updates
  APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500, 
'precise'), (100, 'precise-backports')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-27-generic (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Description: Reorder libs to fix FTBFS with binutils-gold
Author: Angel Abad <angela...@ubuntu.com>

--- a/bin/Makefile
+++ b/bin/Makefile
@@ -27,7 +27,7 @@
 	$(CXX) -o $@ $(CXXFLAGS) $(GYOTO_INC) $^  $(LIB_CXX_Gyoto)
 
 gyoto: gyoto.o ../lib/$(LIBGYOTO_FILE)
-	$(CXX) -o $@ $(LDFLAGS) $(LDLIBS) $< -L../lib -lgyoto -ldl
+	$(CXX) -o $@ -L../lib $(LDFLAGS) $< $(LDLIBS) -lgyoto -ldl
 
 dbgyoto: debugyoto.C ../lib/libgyoto.a
 	$(CXX) -o $@ $(CXXFLAGS) $(GYOTO_INC) $^ $(LIB_CXX_Gyoto) $(LIB_CXX) $(LIB_CFITSIO) $(LIB_LORENE) $(LIB_LAPACK) $(LIB_GSL) $(LIB_PGPLOT) -Wno-long-long

Reply via email to