Your message dated Tue, 31 Jan 2012 16:03:16 +0000
with message-id <e1rsgau-00051c...@franck.debian.org>
and subject line Bug#656751: fixed in osmium 0.0~20111213-g7f3500a-1
has caused the Debian Bug report #656751,
regarding osmium: ftbs with ld --as-needed
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
656751: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=656751
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: osmium
Version: 0.0~20111114-ga147fb1-1
Severity: wishlist
User: debian-...@lists.debian.org
Usertags: ld-as-needed
Tags: patch

osmium fails to build with ld --as-needed.
This is caused by wrong placement of libraries on the commandline.
Libraries must be placed behind the objects needing their symbols when
building with --as-needed
See the buildlog in ubuntu:
https://launchpadlibrarian.net/89413757/buildlog_ubuntu-precise-i386.osmium_0.0~20111114-ga147fb1-1_FAILEDTOBUILD.txt.gz

attached a patch that fixes the issue.
Description: fix build with ld --as-needed
 libraries must be placed after objects needing their symbols
Author: Julian Taylor <jtay...@ubuntu.com>

--- a/test/run_tests.sh
+++ b/test/run_tests.sh
@@ -13,7 +13,8 @@
 
 CXX="g++"
 CXXFLAGS="-g -Wall -Wextra -Wredundant-decls -Wdisabled-optimization -pedantic -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo"
-COMPILE="$CXX -I../include -I. $CXXFLAGS -lboost_unit_test_framework -o tests test_utils.cpp"
+LIBADD="-lboost_unit_test_framework"
+COMPILE="$CXX -I../include -I. $CXXFLAGS -o tests test_utils.cpp"
 
 if [ "x$1" = "x-v" ]; then
     VALGRIND="valgrind --leak-check=full --show-reachable=yes"
@@ -30,8 +31,8 @@
         echo "\nTesting group $GROUP...\n"
         . $DIR/setup.sh
         FILES="test_main.cpp $DIR/*/test_*.cpp"
-        echo $COMPILE $FLAGS $FILES
-        $COMPILE $FLAGS $FILES
+        echo $COMPILE $FLAGS $FILES $LIBS $LIBADD
+        $COMPILE $FLAGS $FILES $LIBS $LIBADD
         $VALGRIND ./tests
     done
 else
@@ -41,14 +42,14 @@
     if [ "x$2" = "x" ]; then
         echo "\nTesting group $GROUP...\n"
         FILES="test_main.cpp $DIR/*/test_*.cpp"
-        echo $COMPILE $FLAGS $FILES
-        $COMPILE $FLAGS $FILES
+        echo $COMPILE $FLAGS $FILES $LIBS $LIBADD
+        $COMPILE $FLAGS $FILES $LIBS $LIBADD
         $VALGRIND ./tests
     else
         echo "\nTesting file $2 in group $GROUP...\n"
         FILES="-DSTAND_ALONE $DIR/$2"
-        echo $COMPILE $FLAGS $FILES
-        $COMPILE $FLAGS $FILES
+        echo $COMPILE $FLAGS $FILES $LIBS $LIBADD
+        $COMPILE $FLAGS $FILES $LIBS $LIBADD
         $VALGRIND ./tests
     fi
 fi
--- a/test/testgroup_geos/setup.sh
+++ b/test/testgroup_geos/setup.sh
@@ -1 +1,2 @@
 FLAGS="-DOSMIUM_WITH_GEOS `geos-config --cflags` `geos-config --libs`"
+LIBS="-DOSMIUM_WITH_GEOS `geos-config --libs`"
--- a/test/testgroup_ogr/setup.sh
+++ b/test/testgroup_ogr/setup.sh
@@ -1 +1,2 @@
-FLAGS="-DOSMIUM_WITH_OGR `gdal-config --cflags` `gdal-config --libs`"
+FLAGS="-DOSMIUM_WITH_OGR `gdal-config --cflags`"
+LIBS="-DOSMIUM_WITH_OGR `gdal-config --libs`"
--- a/test/testgroup_plain/setup.sh
+++ b/test/testgroup_plain/setup.sh
@@ -1 +1 @@
-FLAGS=""
+FLAGS="`gdal-config --cflags`"

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: osmium
Source-Version: 0.0~20111213-g7f3500a-1

We believe that the bug you reported is fixed in the latest version of
osmium, which is due to be installed in the Debian FTP archive:

libosmium-dev_0.0~20111213-g7f3500a-1_i386.deb
  to main/o/osmium/libosmium-dev_0.0~20111213-g7f3500a-1_i386.deb
osmium-doc_0.0~20111213-g7f3500a-1_all.deb
  to main/o/osmium/osmium-doc_0.0~20111213-g7f3500a-1_all.deb
osmium_0.0~20111213-g7f3500a-1.debian.tar.gz
  to main/o/osmium/osmium_0.0~20111213-g7f3500a-1.debian.tar.gz
osmium_0.0~20111213-g7f3500a-1.dsc
  to main/o/osmium/osmium_0.0~20111213-g7f3500a-1.dsc
osmium_0.0~20111213-g7f3500a.orig.tar.gz
  to main/o/osmium/osmium_0.0~20111213-g7f3500a.orig.tar.gz
osmjs_0.0~20111213-g7f3500a-1_i386.deb
  to main/o/osmium/osmjs_0.0~20111213-g7f3500a-1_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 656...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
David Paleino <da...@debian.org> (supplier of updated osmium package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Tue, 31 Jan 2012 16:42:07 +0100
Source: osmium
Binary: libosmium-dev osmium-doc osmjs
Architecture: source i386 all
Version: 0.0~20111213-g7f3500a-1
Distribution: unstable
Urgency: low
Maintainer: Debian OpenStreetMap Team <pkg-osm-maint@lists.alioth.debian.org>
Changed-By: David Paleino <da...@debian.org>
Description: 
 libosmium-dev - C++ framework for working with OSM data files
 osmium-doc - C++ framework for working with OSM data files - docs
 osmjs      - osmium-based Javascript framework for handling OSM data
Closes: 656751
Changes: 
 osmium (0.0~20111213-g7f3500a-1) unstable; urgency=low
 .
   * New git snapshot
   * Fix FTBFS with ld --as-needed, thanks to Julian Taylor
     (Closes: #656751)
Checksums-Sha1: 
 d03134ccdc16962364cc68a1b4a695bf81d7d270 1698 
osmium_0.0~20111213-g7f3500a-1.dsc
 ad6e84d7ed8112cc4d63a5526c5d45ffa37f9431 136079 
osmium_0.0~20111213-g7f3500a.orig.tar.gz
 6968b4b5b3f426e64fccb42cc9b11fc39af6a5b6 6919 
osmium_0.0~20111213-g7f3500a-1.debian.tar.gz
 2a6426b4ae67ae02f01898629e9a2235aee3c619 93426 
libosmium-dev_0.0~20111213-g7f3500a-1_i386.deb
 31ab90ab01728c37fc8fa2e1199dbb347eb65556 8577098 
osmium-doc_0.0~20111213-g7f3500a-1_all.deb
 18536fb8d06a30fd220bbfc3eacfe249392a314d 188446 
osmjs_0.0~20111213-g7f3500a-1_i386.deb
Checksums-Sha256: 
 5448838ec6528576458c70bd561b23ee46a356a316351c70b4f269b138d2ca4f 1698 
osmium_0.0~20111213-g7f3500a-1.dsc
 327194562b0db064a4f5e995149b8ab79531872e0a493cbce431997ce5a9776e 136079 
osmium_0.0~20111213-g7f3500a.orig.tar.gz
 3779e3451287a97f585029dff230fe967f706fc3ade90a9b5fefe9d92dd0f88d 6919 
osmium_0.0~20111213-g7f3500a-1.debian.tar.gz
 b2c0bdc78e22b731898bfc79cb5a6653c78655ff21645cec0f5d97dc073f7acb 93426 
libosmium-dev_0.0~20111213-g7f3500a-1_i386.deb
 71b421924c8ba28e42004a10b9dccfaf3c5646faf9095272f246a7162bab129c 8577098 
osmium-doc_0.0~20111213-g7f3500a-1_all.deb
 832194c66a6b8fb9827d2f102ce94df46fd417c4b8ede3bf93d86f911a9f334f 188446 
osmjs_0.0~20111213-g7f3500a-1_i386.deb
Files: 
 986c40f51f13a793beda3fef9353cac7 1698 utils extra 
osmium_0.0~20111213-g7f3500a-1.dsc
 4ecb52d0887832ba052967463e79acae 136079 utils extra 
osmium_0.0~20111213-g7f3500a.orig.tar.gz
 3f7789e874fcecfdcfc860a7ad5f8166 6919 utils extra 
osmium_0.0~20111213-g7f3500a-1.debian.tar.gz
 15e25397d74b8b3ecd0606514ecf2981 93426 libdevel extra 
libosmium-dev_0.0~20111213-g7f3500a-1_i386.deb
 3e5cab4bc0d3491ea042fe31227d4030 8577098 doc extra 
osmium-doc_0.0~20111213-g7f3500a-1_all.deb
 5fc5bdefaa2d994736a1cd143434eb2f 188446 utils extra 
osmjs_0.0~20111213-g7f3500a-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk8oDhQACgkQ5qqQFxOSsXRg1QCdF9h0ZbOe2JbFOo3KfldNbPbK
8gMAnAovrGNelwk+4OY0+EtnelhbIHIj
=SZiY
-----END PGP SIGNATURE-----



--- End Message ---
_______________________________________________
Pkg-osm-maint mailing list
Pkg-osm-maint@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-osm-maint

Reply via email to