compiling gnats-3.113

Barry Reddy <[email protected]> Tue, 10 Apr 2007 15:02:12 -0400
Newsgroups gmane.comp.bug-tracking.gnats.general
Message-ID <[email protected]>
I'm attempting to compile gnats-3.113 on a Fedora Core 4 linux
server, in order to migrate an existing heavily used gnats db
running on an older Sparc5, onto a newer system.

On the FC4 box, 'make' fails consistently with the following
error:

strerror.c:460: error: static declaration of =E2 follows non-static declarat=
ion
/usr/include/bits/sys_errlist.h:27: error: previous declaration of =E2 was h=
ere
strerror.c:461: error: conflicting types for =E2
/usr/include/bits/sys_errlist.h:28: error: previous declaration of =E2 was h=
ere
make[1]: *** [strerror.o] Error 1
make[1]: Leaving directory `/root/gnats-3.113/libiberty'
make: *** [all-libiberty] Error 2

I'm not sure I'm up to trying to modify and correct the files
where errors are being reported, if its possible to use more
explicit configuration options to correct these compile errors
I would appreciate some input.

We have some existing gnats-4.0 DB's in use, but I'd first like
to move this GnatsDB in its entirety to a newer system, before
upgrading the gnats version.

Some minor customizations have been made for the db config, and
gnatsweb.pl being used for these earlier Gnats-3.113 DB's which
are currently in use.

Those customizations need to be addressed before upgrading, and
the more urgent requirement at this point is to get those early
gnats-3.113 db's moved before upgrading, since they contain a few
years worth of bug tracking.

More detailed output of the configuration and make results are
included below.

Regards,

Barry Reddy
System Administrator
SWI

[root@localhost ~/gnats-3.113]# uname -a
Linux localhost.localdomain 2.6.11-1.1369_FC4 #1 Thu Jun 2 22:55:56 =20
EDT 2005 i686 i686 i386 GNU/Linux

[root@localhost ~/gnats-3.113]#
./configure --nfp --with-full-gnats
Configuring for a i686-pc-linux-gnu host.
Created "Makefile" in /root/gnats-3.113

[root@localhost ~/gnats-3.113]# make all info
make[1]: Entering directory `/root/gnats-3.113/libiberty'
if [ -n "" ] && [ ! -d pic ]; then \
   mkdir pic; \
else true; fi
touch stamp-picdir
echo "# !Automatically generated from ./functions.def"\
   "- DO NOT EDIT!" >needed2.awk
grep '^DEFVAR(' < ./functions.def \
  | sed -e '/DEFVAR/s|DEFVAR.\([^,]*\).*|/\1/ { printf "#ifndef =20
NEED_\1\\n#define NEED_\1\\n#endif\\n" }|' \
  >>needed2.awk
grep '^DEFFUNC(' < ./functions.def \
  | sed -e '/DEFFUNC/s|DEFFUNC.\([^,]*\).*|/\1/ { printf "#ifndef =20
NEED_\1\\n#define NEED_\1\\n#endif\\n" }|' \
  >>needed2.awk
gcc -c -g -I. -I./../include  ./dummy.c 2>/dev/null
(gcc -o dummy -g   dummy.o  ) >errors 2>&1 || true
echo "/* !Automatically generated from ./functions.def"\
   "- DO NOT EDIT! */" >lconfig.h
awk -f needed2.awk <errors >>lconfig.h
cp lconfig.h config.tmp
/bin/sh ./../move-if-change config.tmp config.h
touch stamp-config
test -z "" || \
   gcc -c -g -I. -I./../include   argv.c -o pic/argv.o
gcc -c -g -I. -I./../include  argv.c
test -z "" || \
   gcc -c -g -I. -I./../include   basename.c -o pic/basename.o
gcc -c -g -I. -I./../include  basename.c
test -z "" || \
   gcc -c -g -I. -I./../include   choose-temp.c -o pic/choose-temp.o
gcc -c -g -I. -I./../include  choose-temp.c
choose-temp.c: In function =E2:
choose-temp.c:127: warning: incompatible implicit declaration of =20
built-in function =E2
choose-temp.c:130: warning: incompatible implicit declaration of =20
built-in function =E2
choose-temp.c:145: warning: incompatible implicit declaration of =20
built-in function =E2
test -z "" || \
   gcc -c -g -I. -I./../include   concat.c -o pic/concat.o
gcc -c -g -I. -I./../include  concat.c
test -z "" || \
   gcc -c -g -I. -I./../include   cplus-dem.c -o pic/cplus-dem.o
gcc -c -g -I. -I./../include  cplus-dem.c
cplus-dem.c: In function =E2:
cplus-dem.c:956: warning: incompatible implicit declaration of =20
built-in function =E2
test -z "" || \
   gcc -c -g -I. -I./../include   fdmatch.c -o pic/fdmatch.o
gcc -c -g -I. -I./../include  fdmatch.c
test -z "" || \
   gcc -c -g -I. -I./../include   fnmatch.c -o pic/fnmatch.o
gcc -c -g -I. -I./../include  fnmatch.c
test -z "" || \
   gcc -c -g -I. -I./../include   getopt.c -o pic/getopt.o
gcc -c -g -I. -I./../include  getopt.c
test -z "" || \
   gcc -c -g -I. -I./../include   getopt1.c -o pic/getopt1.o
gcc -c -g -I. -I./../include  getopt1.c
test -z "" || \
   gcc -c -g -I. -I./../include   getruntime.c -o pic/getruntime.o
gcc -c -g -I. -I./../include  getruntime.c
test -z "" || \
   gcc -c -g -I. -I./../include   hex.c -o pic/hex.o
gcc -c -g -I. -I./../include  hex.c
test -z "" || \
   gcc -c -g -I. -I./../include   floatformat.c -o pic/floatformat.o
gcc -c -g -I. -I./../include  floatformat.c
test -z "" || \
   gcc -c -g -I. -I./../include   objalloc.c -o pic/objalloc.o
gcc -c -g -I. -I./../include  objalloc.c
objalloc.c: In function =E2:
objalloc.c:214: warning: incompatible implicit declaration of built-in =20
function =E2
test -z "" || \
   gcc -c -g -I. -I./../include   obstack.c -o pic/obstack.o
gcc -c -g -I. -I./../include  obstack.c
test -z "" || \
   gcc -c -g -I. -I./../include   pexecute.c -o pic/pexecute.o
gcc -c -g -I. -I./../include  pexecute.c
pexecute.c: In function =E2:
pexecute.c:547: warning: incompatible implicit declaration of built-in =20
function =E2
test -z "" || \
   gcc -c -g -I. -I./../include   spaces.c -o pic/spaces.o
gcc -c -g -I. -I./../include  spaces.c
test -z "" || \
   gcc -c -g -I. -I./../include   strerror.c -o pic/strerror.o
gcc -c -g -I. -I./../include  strerror.c
strerror.c:460: error: static declaration of =E2 follows non-static declarat=
ion
/usr/include/bits/sys_errlist.h:27: error: previous declaration of =E2 was h=
ere
strerror.c:461: error: conflicting types for =E2
/usr/include/bits/sys_errlist.h:28: error: previous declaration of =E2 was h=
ere
make[1]: *** [strerror.o] Error 1
make[1]: Leaving directory `/root/gnats-3.113/libiberty'
make: *** [all-libiberty] Error 2



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.