Bug#708056: ncurses: FTBFS: test/hanoi.c:234: undefined reference to `pow'

2013-05-13 Thread Thorsten Glaser
Nope, didn’t help: […] 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 -DTRACE -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG -DTRACE

Bug#708056: ncurses: FTBFS: test/hanoi.c:234: undefined reference to `pow'

2013-05-13 Thread Sven Joachim
Am 12.05.2013 um 21:54 schrieb Thorsten Glaser: 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

Bug#708056: ncurses: FTBFS: test/hanoi.c:234: undefined reference to `pow'

2013-05-13 Thread Sven Joachim
On 2013-05-13 10:38 +0200, Sven Joachim wrote: Am 12.05.2013 um 21:54 schrieb Thorsten Glaser: Which does not check “enough”. GCC will usually provide sin(3) as builtin, but not necessarily pow(3). Foe some value of usually which is apparently different on m68k than on other architectures.

Bug#708056: ncurses: FTBFS: test/hanoi.c:234: undefined reference to `pow'

2013-05-13 Thread Thomas Dickey
On Mon, May 13, 2013 at 11:26:26AM +0200, Sven Joachim wrote: I wonder whether it wouldn't be best to do away with the CF_MATH_LIB test and always link with -lm. It would be simpler, but people tend to complain about unneeded libraries -- Thomas E. Dickey dic...@invisible-island.net

Bug#708056: ncurses: FTBFS: test/hanoi.c:234: undefined reference to `pow'

2013-05-13 Thread Thorsten Glaser
Sven Joachim dixit: Apparently the builtin sin() is always used on m68k with -O2 then, while on other arches GCC calls the library function. Seems it had been different one year ago when ncurses was last built, or maybe the builtin pow() was also used back then - sadly there aren't any build

Bug#708056: ncurses: FTBFS: test/hanoi.c:234: undefined reference to `pow'

2013-05-13 Thread Thorsten Glaser
Sven Joachim dixit: if you use sin() -- at least on all other Debian architectures than m68k the result of the test above is yes. Do you have an idea why this is different on your pet architecture? Hrm. It’s not “my” pet architecture, I just jumped in… it didn’t complete the eglibc transition

Bug#708056: ncurses: FTBFS: test/hanoi.c:234: undefined reference to `pow'

2013-05-13 Thread Sven Joachim
On 2013-05-13 11:26 +0200, Sven Joachim wrote: Apparently the builtin sin() is always used on m68k with -O2 then, while on other arches GCC calls the library function. Seems it had been different one year ago when ncurses was last built, or maybe the builtin pow() was also used back then -

Bug#708056: ncurses: FTBFS: test/hanoi.c:234: undefined reference to `pow'

2013-05-12 Thread Thorsten Glaser
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