On 2011-03-01 Andreas Metzler <ametz...@downhill.at.eu.org> wrote:
> On 2011-02-28 Matthias Klose <d...@debian.org> wrote:
> > Package: enblend-enfuse
[...]
> > The package fails to build in a test rebuild on at least amd64 with
> > ld --no-add-needed.  For details, please see:
> > http://lists.debian.org/debian-devel-announce/2011/02/msg00011.html
> > http://wiki.debian.org/ToolChain/DSOLinking

> Actually it even fails with the new Debian default
> --no-copy-dt-needed-entries
[...]
> Afaict this one is basically identical to 602959. enblend uses
> boost_filesystem which includes inline references to boost_system in
> its *headers*.

> There are a couple of workaround available:
> * --with-boost-filesystem=no
> * LDFLAGS+=--copy-dt-needed-entries
> * Patch the autoconfo suite to also link to libboost_system

Hello,

find attached a hotfix patch produced by:
a) running autoreconf, save configure
b) apply the upstream fix to ./configure.in
c) run autoreconf again
d) diff the configure from a) with c)

Sebastian, since I feel a little bit bad about having an simple
serious bug like this one still open I intend to make an upload
including this patch on the weekend. However If ypu would prefer
that I don't upload or do something different just tell me.

cu andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'
--- enblend-enfuse-4.0+dfsg.orig/configure
+++ enblend-enfuse-4.0+dfsg/configure
@@ -7975,7 +7975,7 @@
 
 $as_echo "#define HAVE_BOOST_FILESYSTEM 1" >>confdefs.h
 
-              EXTRA_LIBS="-lboost_filesystem ${EXTRA_LIBS}"
+              EXTRA_LIBS="-lboost_filesystem -lboost_system ${EXTRA_LIBS}"
 else
   ac_fn_cxx_check_header_mongrel "$LINENO" "boost/filesystem.hpp" "ac_cv_header_boost_filesystem_hpp" "$ac_includes_default"
 if test "x$ac_cv_header_boost_filesystem_hpp" = x""yes; then :
@@ -7999,7 +7999,8 @@
                   fi
                   LIBS_ORIG=$LIBS
                   for x in $candidates; do
-                      LIBS="$LIBS_ORIG $x"
+                      y=`echo $x | sed s/boost_filesystem/boost_system/g`
+                      LIBS="$LIBS_ORIG $x $y"
                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -8022,7 +8023,7 @@
 }
 _ACEOF
 if ac_fn_cxx_try_link "$LINENO"; then :
-  EXTRA_LIBS="$x ${EXTRA_LIBS}"
+  EXTRA_LIBS="$x $y ${EXTRA_LIBS}"
                                       found_boost_filesystem_lib=yes
                                       { $as_echo "$as_me:${as_lineno-$LINENO}: compiling with Boost's generic filename parsing support." >&5
 $as_echo "$as_me: compiling with Boost's generic filename parsing support." >&6;}

Reply via email to