Bug#632521: syrthes: FTBFS with ld --as-needed

Ilya Barygin barygin at gmail.com
Sun Jul 3 07:14:00 UTC 2011


Package: syrthes
Version: 3.4.3-dfsg1-3
Severity: normal
Tags: patch
User: debian-gcc at lists.debian.org
Usertags: ld-as-needed

The package fails to build when --as-needed linker option is enabled,
because of incorrect order of parameters passed to ld. Here's a log of
failed build in Ubuntu:
https://launchpadlibrarian.net/70923173/buildlog_ubuntu-oneiric-i386.syrthes_3.4.3-dfsg1-3_FAILEDTOBUILD.txt.gz

See also
http://wiki.debian.org/ToolChain/DSOLinking#Only_link_with_needed_libraries

The attached patch was used in Ubuntu to fix the problem.
https://launchpad.net/ubuntu/+source/syrthes/3.4.3-dfsg1-3ubuntu1

-- System Information:
Debian Release: wheezy/sid
  APT prefers oneiric
  APT policy: (500, 'oneiric')
Architecture: i386 (i686)

Kernel: Linux 2.6.38-10-generic (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
Description: Correct order of arguments, allowing to link with --as-needed
 option.
Author: Ilya Barygin <barygin at gmail.com>
Bug-Ubuntu: https://launchpad.net/bugs/803201
--- syrthes-3.4.3-dfsg1.orig/src/util/convert2syrthes/Makefile
+++ syrthes-3.4.3-dfsg1/src/util/convert2syrthes/Makefile
@@ -17,5 +17,5 @@ endif
 
 exe :
 	@echo $(MESS)
-	cc  -o convert2syrthes $(CFLAGS) $(INCLUDE) $(LIBS) $(SOURCES) 
+	cc  -o convert2syrthes $(CFLAGS) $(INCLUDE) $(SOURCES) $(LIBS) 
 


More information about the debian-science-maintainers mailing list