From owner-bug-octave at bevo dot che dot wisc dot edu Wed Dec 18 15:41:13 1996 Subject: warnings in compilation of 2.0 From: "John W. Eaton" To: Francesco Potorti` cc: bug-octave at bevo dot che dot wisc dot edu Date: Wed, 18 Dec 1996 15:40:40 -0600 On 18-Dec-1996, Francesco Potorti` wrote: : While compiling octave on Alpha with gcc 2.7.2 I get these warnings: : getopt.c: In function `_getopt_internal': : getopt.c:497: warning: type mismatch in implicit declaration for built-in function `strlen' : : gcc -I. -I. -I.. -I./.. -O2 -c getopt.c : getopt.c: In function `_getopt_internal': : getopt.c:486: warning: type mismatch in implicit declaration for built-in function `strlen' I suspect that this is harmless. It is also really a bug in the GNU getopt function and I don't know the right fix (look at the comments just above the #include line in getopt.c). : ar: Warning:ignoring second definition of d1mach_ defined in archive I believe the following patch fixes this problem: Index: Makefile.in =================================================================== RCS file: /home/jwe/src/master/octave/libcruft/misc/Makefile.in,v retrieving revision 1.17 retrieving revision 1.18 diff -c -r1.17 -r1.18 *** Makefile.in 1996/11/20 23:08:48 1.17 --- Makefile.in 1996/12/11 18:34:57 1.18 *************** *** 15,22 **** SPECIAL := machar.c d1mach-tst.for dostop.c f77-extern.cc \ f77-fcn.c f77-fcn.h lo-error.c lo-error.h ! SPECIAL_DEPEND := d1mach.o machar.o dostop.o f77-extern.o \ ! f77-fcn.o lo-error.o EXTERNAL_DISTFILES = $(DISTFILES) --- 15,21 ---- SPECIAL := machar.c d1mach-tst.for dostop.c f77-extern.cc \ f77-fcn.c f77-fcn.h lo-error.c lo-error.h ! SPECIAL_DEPEND := machar.o dostop.o f77-extern.o f77-fcn.o lo-error.o EXTERNAL_DISTFILES = $(DISTFILES) jwe