Your message dated Mon, 10 Jun 2013 18:48:28 +0000 with message-id <[email protected]> and subject line Bug#708056: fixed in ncurses 5.9+20130608-1 has caused the Debian Bug report #708056, regarding ncurses: FTBFS: test/hanoi.c:234: undefined reference to `pow' 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 [email protected] immediately.) -- 708056: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=708056 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Source: ncurses Version: 5.9+20130504-1 Severity: important Tags: patch Justification: fails to build from source (but built successfully in the past) Hi! […] m68k-linux-gnu-gcc -c -I. -I/tmp/buildd/ncurses-5.9+20130504/test -I../test -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/tmp/buildd/ncurses-5.9+20130504/obj-wide/include -I/usr/include/ncursesw -D_XPG5 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security /tmp/buildd/ncurses-5.9+20130504/test/hanoi.c m68k-linux-gnu-gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -o hanoi ../obj-test/hanoi.o -L/tmp/buildd/ncurses-5.9+20130504/obj-wide/lib -Wl,-z,relro -I. -I/tmp/buildd/ncurses-5.9+20130504/test -I../test -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/tmp/buildd/ncurses-5.9+20130504/obj-wide/include -I/usr/include/ncursesw -D_XPG5 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security `echo "-lformw -lmenuw -lpanelw -lncursesw -ltinfo " | sed -e 's/-lform.*-lpanel[^ ]*//'` .../obj-test/hanoi.o: In function `DisplayTiles': /tmp/buildd/ncurses-5.9+20130504/test/hanoi.c:234: undefined reference to `pow' collect2: ld returned 1 exit status make[1]: *** [hanoi] Error 1 make[1]: Leaving directory `/tmp/buildd/ncurses-5.9+20130504/obj-test' make: *** [build-test] Error 2 dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2 E: Failed autobuilding of package I think the problem is here: […] configure:13625: checking if -lm needed for math functions configure:13647: gcc -o conftest -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG -Wl,-z,relro conftest.c -ldl >&5 configure:13650: $? = 0 configure:13653: test -s conftest configure:13656: $? = 0 configure:13666: result: no […] Which comes from: […] echo "$as_me:13625: checking if -lm needed for math functions" >&5 […] main () { double x = rand(); printf("result = %g\n", sin(x)) ; return 0; } […] Which does not check “enough”. GCC will usually provide sin(3) as builtin, but not necessarily pow(3). Sadly, your packaging does not run autoreconf, but I *think* the attached patch might work. It’ll take another day, at least, for me to confirm this, as compiling on an Atari, even a VM, is really slow. (Not 100% sure on the autoconf magic, but I’m pretty certain that $2 must be []-escaped as it contains a comma now. Tom Cc’d, he will probably know, seeing as he forked autoconf several times.) -- System Information: Debian Release: 7.0 APT prefers unreleased APT policy: (500, 'unreleased'), (500, 'unstable') Architecture: m68k Kernel: Linux 3.2.0-4-atari Locale: LANG=C, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/mksh-staticdiff -Nru ncurses-5.9+20130504/debian/changelog ncurses-5.9+20130504/debian/changelog --- ncurses-5.9+20130504/debian/changelog 2013-05-11 11:00:56.000000000 +0000 +++ ncurses-5.9+20130504/debian/changelog 2013-05-12 19:34:05.000000000 +0000 @@ -1,3 +1,9 @@ +ncurses (5.9+20130504-1+m68k.1) unreleased; urgency=low + + * Check for pow() without -lm too, not just sin() + + -- Thorsten Glaser <[email protected]> Sun, 12 May 2013 19:32:39 +0000 + ncurses (5.9+20130504-1) unstable; urgency=low * New upstream patchlevel. diff -Nru ncurses-5.9+20130504/debian/patches/fix-libmath.diff ncurses-5.9+20130504/debian/patches/fix-libmath.diff --- ncurses-5.9+20130504/debian/patches/fix-libmath.diff 1970-01-01 00:00:00.000000000 +0000 +++ ncurses-5.9+20130504/debian/patches/fix-libmath.diff 2013-05-12 19:44:09.000000000 +0000 @@ -0,0 +1,24 @@ +# DP: one of the examples uses pow() so check for it as well + +--- a/configure ++++ b/configure +@@ -13638,7 +13638,7 @@ else + int + main () + { +-double x = rand(); printf("result = %g\n", sin(x)) ++double x = rand(); printf("result = %g\n", pow(sin(x),x)) + ; + return 0; + } +--- a/configure.in ++++ b/configure.in +@@ -1327,7 +1327,7 @@ AC_CHECK_LIB(bsd, gettimeofday, + ;; + esac + +-CF_MATH_LIB(MATH_LIB,sin(x)) ++CF_MATH_LIB(MATH_LIB,[pow(sin(x),x)]) + AC_SUBST(MATH_LIB) + + ### Checks for header files. diff -Nru ncurses-5.9+20130504/debian/patches/series ncurses-5.9+20130504/debian/patches/series --- ncurses-5.9+20130504/debian/patches/series 2013-05-06 18:05:06.000000000 +0000 +++ ncurses-5.9+20130504/debian/patches/series 2013-05-12 19:41:57.000000000 +0000 @@ -1,2 +1,3 @@ 02-debian-backspace.diff 03-debian-ncursesconfig-omit-L.diff +fix-libmath.diff
--- End Message ---
--- Begin Message ---Source: ncurses Source-Version: 5.9+20130608-1 We believe that the bug you reported is fixed in the latest version of ncurses, which is due to be installed in the Debian FTP archive. 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 [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Sven Joachim <[email protected]> (supplier of updated ncurses 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 [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Mon, 10 Jun 2013 20:18:59 +0200 Source: ncurses Binary: libtinfo5 libncurses5 libtinfo-dev libtinfo5-dbg libncurses5-dev libncurses5-dbg libncursesw5 libncursesw5-dev libncursesw5-dbg lib64ncurses5 lib64ncurses5-dev lib32ncurses5 lib32ncurses5-dev lib32ncursesw5 lib32ncursesw5-dev lib64tinfo5 lib32tinfo5 lib32tinfo-dev ncurses-bin ncurses-base ncurses-term ncurses-examples ncurses-doc Architecture: all source Version: 5.9+20130608-1 Distribution: unstable Urgency: low Maintainer: Craig Small <[email protected]> Changed-By: Sven Joachim <[email protected]> Closes: 708056 709325 711134 Description: lib32ncurses5 - shared libraries for terminal handling (32-bit) lib32ncurses5-dev - developer's libraries for ncurses (32-bit) lib32ncursesw5 - shared libraries for terminal handling (wide character support) ( lib32ncursesw5-dev - developer's libraries for ncursesw (32-bit) lib32tinfo-dev - developer's library for the low-level terminfo library (32-bit) lib32tinfo5 - shared low-level terminfo library for terminal handling (32-bit) lib64ncurses5 - shared libraries for terminal handling (64-bit) lib64ncurses5-dev - developer's libraries for ncurses (64-bit) lib64tinfo5 - shared low-level terminfo library for terminal handling (64-bit) libncurses5 - shared libraries for terminal handling libncurses5-dbg - debugging/profiling libraries for ncurses libncurses5-dev - developer's libraries for ncurses libncursesw5 - shared libraries for terminal handling (wide character support) libncursesw5-dbg - debugging/profiling libraries for ncursesw libncursesw5-dev - developer's libraries for ncursesw libtinfo-dev - developer's library for the low-level terminfo library libtinfo5 - shared low-level terminfo library for terminal handling libtinfo5-dbg - debugging/profiling library for the low-level terminfo library ncurses-base - basic terminal type definitions ncurses-bin - terminal-related programs and man pages ncurses-doc - developer's guide and documentation for ncurses ncurses-examples - test programs and examples for ncurses ncurses-term - additional terminal type definitions Changes: ncurses (5.9+20130608-1) unstable; urgency=low . * New upstream patchlevel. - Add pow() to configure-check for math library, needed for test/hanoi (Closes: #708056). - Fix regression in error-reporting in lib_setup.c (Closes: #711134). * Add Breaks against dialog (<< 1.2-20130523) to libtinfo5, since older dialog versions misbehave (Closes: #709325). * Move detached debugging symbols for libtinfo5 to libtinfo5-dbg. * Switch Vcs-* fields to anonscm.debian.org. * Upgrade Standards-Version to 3.9.4, no changes needed. Checksums-Sha1: 8da1140492593c9c1174ae6b3f82744f3293a650 216608 ncurses-base_5.9+20130608-1_all.deb d9c3a2598304dd5bdc3c5af39c57e5efba3ea41b 622508 ncurses-term_5.9+20130608-1_all.deb 8f59a4673dd5373f20c5b2d725b0d1582a46a16b 1043408 ncurses-doc_5.9+20130608-1_all.deb b31d9e1f9b394424863ceb4ef1184895e4be9076 3154 ncurses_5.9+20130608-1.dsc 86f645e8ff1170d81398dd5c31f9901cc62da751 2927426 ncurses_5.9+20130608.orig.tar.gz 28f35336d06b3ae0349ffdb03991f6889cd27004 61369 ncurses_5.9+20130608-1.debian.tar.gz Checksums-Sha256: 5dba89066e77e9912c2cb3b0379d9e62025ee99abd74005cbe45a9769f4a2713 216608 ncurses-base_5.9+20130608-1_all.deb 8329e269ef3f8fb305312338cda666c214b602dd6405be6fc48070ffc21c47b5 622508 ncurses-term_5.9+20130608-1_all.deb 321606bb5d9e04be0a6202b361730b81773c6155233c1123cc96c1c0bef8ce82 1043408 ncurses-doc_5.9+20130608-1_all.deb 5ad1e2fc1a81d8eeae8c73e740be7ea0f46806fcd7e542a8d587a268b969fe34 3154 ncurses_5.9+20130608-1.dsc 10c9dc1ec38116269bfe018f4763e539dec6cd23a00787a37fa60531b2afdd3f 2927426 ncurses_5.9+20130608.orig.tar.gz 0c6f55d0874fefdd528826c82ec00c5e4d80e5f69bb63f846c623ebac2bcd6e8 61369 ncurses_5.9+20130608-1.debian.tar.gz Files: 77b0b840e6b698ca266ecf2d0a7ad6c5 216608 misc required ncurses-base_5.9+20130608-1_all.deb e68267179365cdc3c5e6838a92caa82d 622508 misc standard ncurses-term_5.9+20130608-1_all.deb 15c23039e271449ddf9f8f541aa6f429 1043408 doc optional ncurses-doc_5.9+20130608-1_all.deb d311f4d871bdc24eeabd82e46d471281 3154 libs required ncurses_5.9+20130608-1.dsc 5ea4793446f08982f478009b71f7d717 2927426 libs required ncurses_5.9+20130608.orig.tar.gz 82e4b5e06616a7257a53d2ff388be0c2 61369 libs required ncurses_5.9+20130608-1.debian.tar.gz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBCgAGBQJRthuCAAoJEDsQbnGNazGsungQAN8h7zcHbim+1SfbMRJUp3Iz V1Hj/nK4Xp2O4GQ00nIVlGPsKL2xxgib2xbVg2FzTnhf0CLTk3xFXKjGRBnRa97e 56Yh7JiKjJAMMwNlMXXbZCo150+Id5OCU/0xmLU0hjH3ysrqi1gBmPnv39/jwfWo xJp9UptNtBUq5+6Xkm99C090msvFp/TjKELkdxYJrRdKIByGbDdFwj91S8t4p0sf ViHUVCSCtedvDzbyjZ4wx98OCz2G7hQaMdZXIkPRderFm8eZFKCSNZrStP0HVOAD j/mkBFh0rAYhcXA8H0TYagzp3zvNAOaZWpGrcjOv6610+hu4u6BUisOrDbPODh6X /K3Cac9PLwnBmLlNIVJfsNZzkPZ+MgVxIQESeu/GMsUpRp0ccHd5FKGb5X/XPcxw ZpcBBxtcZ7nB4Eeb1phIVBsFYZxDP7YT6v7mwt6eBHhsCL56Yt4ZOBq+oHES5Dxl Y4YZn7kK9DUnC6y8Wq5UXllH/CN8ixaMPAROo5ez73rPDfKFyK/lbu+1/604bxjG esTgQeQ2lwoGywl970icx+jma481NIU9vRHg7D1m2FgAIgmX4hkoVc+5jdux3SSa s7Dh0NGVUYItZ0Dyx5XsonAPquA1a4vtGJppmtYff4L0Be7iYd6Nnw4PBoQcEc6f e7ML3hvryI4wXZ52Yk2/ =V87i -----END PGP SIGNATURE-----
--- End Message ---

