PreviousIndexNext

[bug-gsl] Re: cross-compiling bug (2008-07-23)

From: Brian Gough <bjg@gnu.org>
Subject: Re: cross-compiling bug
Date: Wed, 23 Jul 2008 07:50:17 +0100
To: "Tim Rambo" <tmr11@..........>
Cc: bug-gsl@gnu.org

At Fri, 18 Jul 2008 13:50:33 -0400,
Tim Rambo wrote:
>
> I am trying to install the library in cygwin for cross compiling. however after I configure it I get errors trying to make it.
>
> I configure with:
>
> ./configure CC=/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu-gcc CPP=/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu-cpp --exec-prefx=/opt/crosstool/gcc-3.3.4-glibc-2.3.2/arm-unknown-linux-gnu/ --disable-shared --build-=i686-pc-cygwin --host=arm-unknown-linux-gnu
> .....
>
> Is this a bug or am I just doing this wrong?

Thanks for the bug report. The configure script says

checking for strdup... no

This causes a replacement for strdup to be included, and it is the
compilation of that file which gives errors.

I imagine your system does have strdup() -- if you can figure out why
it is not being detected, and fix that problem, it will avoid any
attempt to compile the extra strdup.c file. (Perhaps it's a macro?)

Otherwise you'll need to edit the utils/Makefile to remove the
reference to strdup.c

--
Brian Gough

GNU Scientific Library -
http://www.gnu.org/software/gsl/