roxen.lists.roxen.general

Subject Author Date
Re: errors compiling roxen-4.5.111-src/pike/src/modules/Gmp Henrik_Grubbström <grubba[at]roxen[dot]com> 01-12-2006
On Fri, 1 Dec 2006, Armin Arh wrote:

> On Fri, 1 Dec 2006 14:52:01 +0100 (CET)
> Henrik Grubbström <<grubba[at]roxen.com>> wrote:
>>
>> What does modules/Gmp/config.log say about it?
>
> configure:1448: checking working <gmp.h>
> configure:1531:
/home/armin/projects/roxen/roxen-4.5.111-src/build/freebsd-5.4-beta1-i386/pike
> /src/smartlink gcc -o conftest  -g -I/usr/local/include/pth -I
/usr/local/include -g -O2 -pipe
> -I/usr/local/include/pth -L/usr/local/lib/pth conftest.c -lm  -lpthread
-lcrypt -lgmp 1>&5
> /usr/bin/ld: cannot find -lgmp
>
>> /usr/local/include should be searched for automatically.
>
> Yes it does. The library path is missing.
> When setting "LDFLAGS='-L /usr/local/lib'" configure runs
> nicely in the gmp subdir. The toplevel Makefile
> is not interested in this variable, though...
> ...even writing it into the Makefile does not compile the
> stuff.

Strange; the top-level configure-script for Pike should add that as well. 
Anyway, try unsetting CFLAGS, CPPFLAGS and LDFLAGS, and use --with-cflags, 
--with-cppflags and --with-ldflags instead (if the top-level configure 
doesn't detect some needed option automatically).

BTW: What did the "Searching for library directories..." segment of the
      top-level configure run say about "/usr/local/lib"?

BTW2: Don't forget to zap the relevant parts of config.cache.

> thx.
> Armin

--
Henrik Grubbström					<grubba[at]roxen.com>
Roxen Internet Software AB