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 -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).

According to the GCC online documentation[1], both sin() and pow() are
builtins.  However, this does not spare you from having to link with -lm
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?

> Sadly, your packaging does not run autoreconf, but I *think*
> the attached patch might work.

The test programs have their own configure script which is run instead
of the one in the main directory[2], so you need to patch
test/configure.in.  Then it will probably work.

Cheers,
       Sven


1. http://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html
2. See http://bugs.debian.org/34182 for details.


--
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