Package: sinfo
Version: 0.0.42-1
Severity: normal
Tags: upstream patch
User: debian-...@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/76113262/buildlog_ubuntu-oneiric-i386.sinfo_0.0.42-1_FAILEDTOBUILD.txt.gz

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

The following patch was used in Ubuntu to fix the problem.
https://launchpad.net/ubuntu/+source/sinfo/0.0.42-1ubuntu1

only in patch2:
unchanged:
--- sinfo-0.0.42.orig/sinfod/Makefile.am
+++ sinfo-0.0.42/sinfod/Makefile.am
@@ -31,13 +31,13 @@
                $(BUILT_SOURCES)
 
 sinfod_LDADD = \
+       ../librpc/librpc.la     \
        ../libsinfotypes/libsinfotypes.la               \
        ../libsinfometer/libsinfometer.la               \
        ../libmessage/libmessage.la     \
        ../libmessageparser/libmessageparser.la \
        ../libmessageiobase/libmessageiobase.la \
        ../libmessageio/libmessageio.la \
-       ../librpc/librpc.la     \
        -lpthread -lboost_signals-mt
 
 MAINTAINERCLEANFILES = \
only in patch2:
unchanged:
--- sinfo-0.0.42.orig/sinfod/Makefile.in
+++ sinfo-0.0.42/sinfod/Makefile.in
@@ -266,13 +266,13 @@
                $(BUILT_SOURCES)
 
 sinfod_LDADD = \
+       ../librpc/librpc.la     \
        ../libsinfotypes/libsinfotypes.la               \
        ../libsinfometer/libsinfometer.la               \
        ../libmessage/libmessage.la     \
        ../libmessageparser/libmessageparser.la \
        ../libmessageiobase/libmessageiobase.la \
        ../libmessageio/libmessageio.la \
-       ../librpc/librpc.la     \
        -lpthread -lboost_signals-mt
 
 MAINTAINERCLEANFILES = \

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

Kernel: Linux 2.6.38-11-generic (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to