compiling GSL 1.3 under DJGPP problem

Bob Bailey bbailey@csie.ntnu.edu.tw
Thu Feb 13 03:14:00 GMT 2003


I'm trying to compile GSL 1.3 under DJGPP, gcc 3.2.1 under DOS/bash on Windows
98SE (Pentium 3).  I ran ./configure; ran OK.  Then I ran make.  Result is:

D:\gsl\gsl-1.3>bash
bash-2.04$ make
d:/djgpp/bin/make.exe  all-recursive
make.exe[1]: Entering directory `d:/gsl/gsl-1.3'
Making all in gsl
make.exe[2]: Entering directory `d:/gsl/gsl-1.3/gsl'
rm -f gsl*.h
HEADERLIST="../gsl*.h ../*/gsl*.h"; \
for h in $HEADERLIST; do \
  BASENAME=`basename $h`; \
  cp -p $h $BASENAME; \
done
make.exe[2]: Leaving directory `d:/gsl/gsl-1.3/gsl'
Making all in utils
make.exe[2]: Entering directory `d:/gsl/gsl-1.3/utils'
make.exe[2]: Nothing to be done for `all'.
make.exe[2]: Leaving directory `d:/gsl/gsl-1.3/utils'
Making all in sys
make.exe[2]: Entering directory `d:/gsl/gsl-1.3/sys'
make.exe[2]: Nothing to be done for `all'.
make.exe[2]: Leaving directory `d:/gsl/gsl-1.3/sys'
Making all in test
make.exe[2]: Entering directory `d:/gsl/gsl-1.3/test'
/dev/env/DJDIR/bin/bash.exe ../libtool --mode=compile gcc
-DHAVE_CONFIG_H -I. -I . -I..     -g -O2 -c results.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c results.c -o results.o
In file included from results.c:28:
d:/djgpp/lib/gcc-lib/djgpp/3.21/include/stdarg.h:110: conflicting types for
`va_list'
d:/djgpp/include/stdio.h:35: previous declaration of `va_list'
make.exe[2]: *** [results.lo] Error 1
make.exe[2]: Leaving directory `d:/gsl/gsl-1.3/test'
make.exe[1]: *** [all-recursive] Error 1
make.exe[1]: Leaving directory `d:/gsl/gsl-1.3'
make.exe: *** [all-recursive-am] Error 2
bash-2.04$

----------------------------------------------
stdarg.h:108:
/* The macro __va_list__ is used by BeOS.  */
#ifndef __va_list__
typedef __gnuc_va_list va_list;

stdio.h:35:
__DJ_va_list
#undef __DJ_va_list
#define __DJ_va_list
__DJ_size_t
#undef __DJ_size_t
#define __DJ_size_t

------------------------------------------------
This is too obfuscated for me to fathom the problem.
Next, I deleted the 'test' directory from the top level makefile and tried
making
again.  It ran for quite a while then stopped on the same problem in
cblas/xerbla.c

Seems like a problem with DJGPP rather than GSL.  Or, is it with gcc?
Anybody got a fix?

B Bailey
bbailey@csie.ntnu.edu.tw





More information about the Gsl-discuss mailing list