Ive tried again using gcc 2.95.3 and gpc20010623 and get the following error:
gcc -c -DIN_GCC -DGPC -g -O2 `case "gcc" in *gcc*) echo -Wall;; esac` -I. -I.. -I. -I./.. -I./../config -I./../../include gpc-common.c In file included from gpc-common.c:29: gbe.h:152: conflicting types for `xmalloc' ../../include/libiberty.h:129: previous declaration of `xmalloc' In file included from gpc-common.c:35: util.h:196: conflicting types for `concat' ../../include/libiberty.h:48: previous declaration of `concat' gmake[2]: *** [gpc-common.o] Error 1 gmake[2]: Leaving directory `/usr/local/src/gcc-2.95.3/gcc/p' gmake[1]: *** [gpc1] Error 2 gmake[1]: Leaving directory `/usr/local/src/gcc-2.95.3/gcc' gmake: *** [all-gcc] Error 2
In include/libiberty.h: extern char *concat PARAMS ((const char *, ...)); extern PTR xmalloc PARAMS ((size_t));
In gcc/p/util.h: extern char *concat PARAMS ((char *, ...));
In gcc/p/gbe.h: extern char *xmalloc PARAMS ((size_t));
Can anyone help me please. I am mainly a pascal programmer and new to all this stuff.
Theo Carr-Brion
On Fri, 31 Aug 2001, Theo Carr-Brion wrote:
Ive tried again using gcc 2.95.3 and gpc20010623 and get the following error:
gcc -c -DIN_GCC -DGPC -g -O2 `case "gcc" in *gcc*) echo -Wall;; esac` -I. -I.. -I. -I./.. -I./../config -I./../../include gpc-common.c In file included from gpc-common.c:29: gbe.h:152: conflicting types for `xmalloc' ../../include/libiberty.h:129: previous declaration of `xmalloc' In file included from gpc-common.c:35: util.h:196: conflicting types for `concat' ../../include/libiberty.h:48: previous declaration of `concat' gmake[2]: *** [gpc-common.o] Error 1 gmake[2]: Leaving directory `/usr/local/src/gcc-2.95.3/gcc/p' gmake[1]: *** [gpc1] Error 2 gmake[1]: Leaving directory `/usr/local/src/gcc-2.95.3/gcc' gmake: *** [all-gcc] Error 2
In include/libiberty.h: extern char *concat PARAMS ((const char *, ...)); extern PTR xmalloc PARAMS ((size_t));
In gcc/p/util.h: extern char *concat PARAMS ((char *, ...));
In gcc/p/gbe.h: extern char *xmalloc PARAMS ((size_t));
Can anyone help me please. I am mainly a pascal programmer and new to all this stuff.
Theo Carr-Brion
Hello, I am also 'new to all this stuff' but tried to write a script which installs GPC automatically from scratch. The script works up to now for various SuSE Linux versions and SUN Solaris 2.7. On SUN (and other systems) I observed the same type of abnormal end of gmake you describe. Following a hint of Frank Heckenbach and Adam Naumowicz I built into the script a patch which helped on SUN, but not on the other systems ;-( . It's unclear to me whether it works on your UnixWare-System. You may simply download
http://www.desy.de/~bohnen/gpc/install/install.gpc
and execute install.gpc. Applying switch -h gives some info. Some more info is available in the header part of the script. The most weak point is the prerequisits and the different behavior of some programs though labeled with the same name. Let me know what happened.
Ernst-Ludwig
PS: Please note that I can not help analyzing internal error output of configure, gmake etc., for that we need more right experts.