[gps-devel] Another compile problem

David Holm david@realityrift.com
Mon, 4 Aug 2003 14:58:58 +0200


Hi,
I've been trying to build gps-1.2.2-academic but it always leads up to the following error:

Making all in parsers
Making all in cpp
Making all in cpplib
macro.c: In function `Strdup':
macro.c:1061: warning: return makes pointer from integer without a cast
../../dbutils/libdbutils.a(dbutils.o)(.text+0x5d): In function `Paf_tempnam':
: the use of `tempnam' is dangerous, better use `mkstemp'
Making all in db
dbdump.c: In function `main':
dbdump.c:212: warning: implicit declaration of function `getopt'
../dbutils/libdbutils.a(dbutils.o)(.text+0x5d): In function `Paf_tempnam':
: the use of `tempnam' is dangerous, better use `mkstemp'
dbimp.c: In function `main':
dbimp.c:458: warning: implicit declaration of function `getopt'
dbimp.c:441: warning: unused variable `db_prefix'
../dbutils/libdbutils.a(dbutils.o)(.text+0x5d): In function `Paf_tempnam':
: the use of `tempnam' is dangerous, better use `mkstemp'
gcc -c -g -O2 /pub/home/avatar/Code/gps-1.2.2/prj_editor/src/env.c -o
/pub/home/avatar/Code/gps-1.2.2/prj_editor/obj/env.o gcc -c -g -O2
/pub/home/avatar/Code/gps-1.2.2/prj_editor/pixmaps/prj_pixmaps.c -o
/pub/home/avatar/Code/gps-1.2.2/prj_editor/obj/prj_pixmaps.o creating archive file for
prj_editor gcc -c -g -O2 /pub/home/avatar/Code/gps-1.2.2/vcs/pixmaps/pixmaps_vcs.c -o
/pub/home/avatar/Code/gps-1.2.2/vcs/obj/pixmaps_vcs.o creating archive file for vcs
gcc -c -g -O2 /pub/home/avatar/Code/gps-1.2.2/codefix/src/codefix_pixmaps.c -o
/pub/home/avatar/Code/gps-1.2.2/codefix/obj/codefix_pixmaps.o creating archive file for codefix
gnatmake -Pgps gps.adb
Exception name: STORAGE_ERROR
Message: stack overflow (or erroneous memory access)

Exception STORAGE_ERROR raised, while processing project file
gnatmake: "gps" processing failed
make[1]: *** [internal-build] Error 4
make: *** [default] Error 2


Do you have any idea what could be causing this? If I run make again it will skip through a
couple of complete dirs and then generate the same error when reaching "Making all in db".

I'm using gnat-3.15p (built from sources with both static and dynamic runtime and native as
well as fsu-threads). I've tried with both GtkAda 2.2.0 and CVS from 20030804.

//David Holm