This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with DJGPP and GSL


On Thursday 07 August 2003 21:04, Brian Gough wrote:
> Diego Andres Alvarez Marin. writes:
>  > I am running DJGPP (gcc v3.2) in a Pentium III with Windows98
>  > ./configure ran OK
>  > but when I run
>  > make
>  > I get the following message
>  > gsl-randist.o: In function `main':
>  > c:/djgpp/gsl-1.3/gsl-randist.c:98: undefined reference to
>  > `_gsl_rng_env_setup'
>
> See the INSTALL file for suggestions if you encounter problems
> building the library -- particularly the part at the beginning about
> some platforms that do not support shared libraries.

I haven't tested GSL-1.3 for DJGPP, but newly released 1.4
builds for DJGPP "out of box". To run testsuite one should
add $(EXEEXT) where it's missing in Makefile.am files:

for x in `find gsl-1.4 -name 'Makefile.am'`; do
    mv $x $x.orig
    sed -e '/^TESTS\ =\ /s/test$/test$(EXEEXT)/' \
        -e '/^TESTS\ =\ /s/test\ /test$(EXEEXT)\ /' \
        -e '/^TESTS\ =\ /s/test_static$/test_static$(EXEEXT)/' \
    <$x.orig >$x
done
    	 
(and of course rerun automake and configure after that)

If this is done, also all tests passes without problems.
Of course, LFN support is required, but it's OK under Win98.

Andris




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]