Message-ID: <001901c21e89$af508dc0$0100a8c0@p4> From: "Andrew Cottrell" To: Subject: Groff 1.16 & GCC 3.1 query Date: Fri, 28 Jun 2002 19:53:04 +1000 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0014_01C21EDD.6AC3FCB0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Reply-To: djgpp-workers AT delorie DOT com This is a multi-part message in MIME format. ------=_NextPart_000_0014_01C21EDD.6AC3FCB0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I must have missed this the other week, but I cannot build Groff 1.16 = with GCC 3.1. The process I use is as follows (snippit from my build = batch file):- cd %DJGPP_ROOT%\GNU\groff-1.16 set CXX=3Dgpp make clean call djgpp\config.bat sh configure make clean make make install set CXX=3D Note: I use DJGPP_ROOT so that I can potentially move it arround, works = 90% of the time. The output just before the error is:- ar r libbib.a common.o index.o linear.o search.o map.o ranlib libbib.a make.exe[2]: Leaving directory `c:/dj204/gnu/groff-1.16/src/libs/libbib' make.exe[2]: Entering directory `c:/dj204/gnu/groff-1.16/src/roff/groff' gcc -I. -I/dev/c/dj204/gnu/groff-1.16/src/roff/groff = -I/dev/c/dj204/gnu/groff-1.16/src/include = -I/dev/c/dj204/gnu/groff-1.16/src/include -DHAVE_UNISTD_H=3D1 = -DHAVE_DIRENT_H=3D1 -DHAVE_LIMITS_H=3D1 -DHAVE_SYS_DIR_H=3D1 = -DHAVE_STDLIB_H=3D1 -DHAVE_STRINGS_H=3D1 = -DSTDLIB_H_DECLARES_PUTENV=3D1 -DSTDIO_H_DECLARES_POPEN=3D1 = -DSTDIO_H_DECLARES_PCLOSE=3D1 -DHAVE_SYS_NERR=3D1 = -DHAVE_SYS_ERRLIST=3D1 -DHAVE_CC_LIMITS_H=3D1 -DRETSIGTYPE=3Dvoid = -DHAVE_STRUCT_EXCEPTION=3D1 -DHAVE_UNISTD_H=3D1 -DHAVE_GETPAGESIZE=3D1 = -DHAVE_FMOD=3D1 -DHAVE_STRTOL=3D1 -DHAVE_GETCWD=3D1 = -DHAVE_STRERROR=3D1 -DHAVE_PUTENV=3D1 -DHAVE_RENAME=3D1 = -DHAVE_MKSTEMP=3D1 -DHAVE_STRCASECMP=3D1 -DHAVE_STRSEP=3D1 = -DHAVE_STRDUP=3D1 -DSYS_SIGLIST_DECLARED=3D1 -g -O2 -c groff.cc gcc -I. -I/dev/c/dj204/gnu/groff-1.16/src/roff/groff = -I/dev/c/dj204/gnu/groff-1.16/src/include = -I/dev/c/dj204/gnu/groff-1.16/src/include -DHAVE_UNISTD_H=3D1 = -DHAVE_DIRENT_H=3D1 -DHAVE_LIMITS_H=3D1 -DHAVE_SYS_DIR_H=3D1 = -DHAVE_STDLIB_H=3D1 -DHAVE_STRINGS_H=3D1 = -DSTDLIB_H_DECLARES_PUTENV=3D1 -DSTDIO_H_DECLARES_POPEN=3D1 = -DSTDIO_H_DECLARES_PCLOSE=3D1 -DHAVE_SYS_NERR=3D1 = -DHAVE_SYS_ERRLIST=3D1 -DHAVE_CC_LIMITS_H=3D1 -DRETSIGTYPE=3Dvoid = -DHAVE_STRUCT_EXCEPTION=3D1 -DHAVE_UNISTD_H=3D1 -DHAVE_GETPAGESIZE=3D1 = -DHAVE_FMOD=3D1 -DHAVE_STRTOL=3D1 -DHAVE_GETCWD=3D1 = -DHAVE_STRERROR=3D1 -DHAVE_PUTENV=3D1 -DHAVE_RENAME=3D1 = -DHAVE_MKSTEMP=3D1 -DHAVE_STRCASECMP=3D1 -DHAVE_STRSEP=3D1 = -DHAVE_STRDUP=3D1 -DSYS_SIGLIST_DECLARED=3D1 -g -O2 -c pipeline.c gcc -g -O2 -o groff groff.o pipeline.o = /dev/c/dj204/gnu/groff-1.16/src/libs/libgroff/libgroff.a -lm groff.o: In function `possible_command::~possible_command = [not-in-charge]()': groff.cc:424: undefined reference to `operator delete[](void*)' groff.cc(.text+0x1319): undefined reference to `operator = delete[](void*)' groff.o: In function `possible_command::~possible_command = [in-charge]()': groff.cc:424: undefined reference to `operator delete[](void*)' groff.cc(.text+0x1369): undefined reference to `operator = delete[](void*)' groff.o: In function `possible_command::set_name(char const*)': groff.cc:430: undefined reference to `operator delete[](void*)' groff.o: In function `possible_command::set_name(char const*, char = const*)': groff.cc:435: undefined reference to `operator new[](unsigned long)' groff.cc:437: undefined reference to `operator delete[](void*)' groff.o: In function `possible_command::build_argv()': groff.cc:481: undefined reference to `operator new[](unsigned long)' groff.o(.eh_frame+0x12):groff.cc: undefined reference to = `___gxx_personality_v0' /dev/c/dj204/gnu/groff-1.16/src/libs/libgroff/libgroff.a(string.o): In = function `sfree_alloc(char*, int, int, int*)': string.cc:51: undefined reference to `operator delete[](void*)' /dev/c/dj204/gnu/groff-1.16/src/libs/libgroff/libgroff.a(string.o): In = function `srealloc(char*, int, int, int, int*)': string.cc:67: undefined reference to `operator delete[](void*)' string.cc:72: undefined reference to `operator new[](unsigned long)' string.cc:75: undefined reference to `operator delete[](void*)' /dev/c/dj204/gnu/groff-1.16/src/libs/libgroff/libgroff.a(string.o): In = function `string::extract() const': string.cc:288: undefined reference to `operator new[](unsigned long)' /dev/c/dj204/gnu/groff-1.16/src/libs/libgroff/libgroff.a(string.o): In = function `salloc(int, int*)': Anyone got any ideas on this? Thanks, Andrew ------=_NextPart_000_0014_01C21EDD.6AC3FCB0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I must have missed this the other week, = but I=20 cannot build Groff 1.16 with GCC 3.1. The process I use is as follows = (snippit=20 from my build batch file):-
 
    cd=20 %DJGPP_ROOT%\GNU\groff-1.16
    set=20 CXX=3Dgpp
    make clean
    call=20 djgpp\config.bat
    sh = configure
    make=20 clean
    make
    make=20 install
    set CXX=3D
 
Note: I use DJGPP_ROOT so that I = can=20 potentially move it arround, works 90% of the time.
 
The output just before the error = is:-
 
ar r libbib.a common.o index.o linear.o = search.o=20 map.o
ranlib libbib.a
make.exe[2]: Leaving directory=20 `c:/dj204/gnu/groff-1.16/src/libs/libbib'
make.exe[2]: Entering = directory=20 `c:/dj204/gnu/groff-1.16/src/roff/groff'
gcc -I.=20 -I/dev/c/dj204/gnu/groff-1.16/src/roff/groff=20 -I/dev/c/dj204/gnu/groff-1.16/src/include=20 -I/dev/c/dj204/gnu/groff-1.16/src/include -DHAVE_UNISTD_H=3D1 =20 -DHAVE_DIRENT_H=3D1  -DHAVE_LIMITS_H=3D1  = -DHAVE_SYS_DIR_H=3D1 =20 -DHAVE_STDLIB_H=3D1  -DHAVE_STRINGS_H=3D1 =20 -DSTDLIB_H_DECLARES_PUTENV=3D1  -DSTDIO_H_DECLARES_POPEN=3D1 =20 -DSTDIO_H_DECLARES_PCLOSE=3D1  -DHAVE_SYS_NERR=3D1 =20 -DHAVE_SYS_ERRLIST=3D1  -DHAVE_CC_LIMITS_H=3D1  = -DRETSIGTYPE=3Dvoid =20 -DHAVE_STRUCT_EXCEPTION=3D1  -DHAVE_UNISTD_H=3D1 =20 -DHAVE_GETPAGESIZE=3D1  -DHAVE_FMOD=3D1  = -DHAVE_STRTOL=3D1 =20 -DHAVE_GETCWD=3D1  -DHAVE_STRERROR=3D1  = -DHAVE_PUTENV=3D1 =20 -DHAVE_RENAME=3D1  -DHAVE_MKSTEMP=3D1  = -DHAVE_STRCASECMP=3D1 =20 -DHAVE_STRSEP=3D1  -DHAVE_STRDUP=3D1  = -DSYS_SIGLIST_DECLARED=3D1  =20 -g -O2  -c groff.cc
gcc -I. = -I/dev/c/dj204/gnu/groff-1.16/src/roff/groff=20 -I/dev/c/dj204/gnu/groff-1.16/src/include=20 -I/dev/c/dj204/gnu/groff-1.16/src/include -DHAVE_UNISTD_H=3D1 =20 -DHAVE_DIRENT_H=3D1  -DHAVE_LIMITS_H=3D1  = -DHAVE_SYS_DIR_H=3D1 =20 -DHAVE_STDLIB_H=3D1  -DHAVE_STRINGS_H=3D1 =20 -DSTDLIB_H_DECLARES_PUTENV=3D1  -DSTDIO_H_DECLARES_POPEN=3D1 =20 -DSTDIO_H_DECLARES_PCLOSE=3D1  -DHAVE_SYS_NERR=3D1 =20 -DHAVE_SYS_ERRLIST=3D1  -DHAVE_CC_LIMITS_H=3D1  = -DRETSIGTYPE=3Dvoid =20 -DHAVE_STRUCT_EXCEPTION=3D1  -DHAVE_UNISTD_H=3D1 =20 -DHAVE_GETPAGESIZE=3D1  -DHAVE_FMOD=3D1  = -DHAVE_STRTOL=3D1 =20 -DHAVE_GETCWD=3D1  -DHAVE_STRERROR=3D1  = -DHAVE_PUTENV=3D1 =20 -DHAVE_RENAME=3D1  -DHAVE_MKSTEMP=3D1  = -DHAVE_STRCASECMP=3D1 =20 -DHAVE_STRSEP=3D1  -DHAVE_STRDUP=3D1  = -DSYS_SIGLIST_DECLARED=3D1  =20 -g -O2   -c pipeline.c
gcc -g -O2  -o groff groff.o = pipeline.o=20 /dev/c/dj204/gnu/groff-1.16/src/libs/libgroff/libgroff.a  = -lm
groff.o:=20 In function `possible_command::~possible_command=20 [not-in-charge]()':
groff.cc:424: undefined reference to `operator=20 delete[](void*)'
groff.cc(.text+0x1319): undefined reference to = `operator=20 delete[](void*)'
groff.o: In function = `possible_command::~possible_command=20 [in-charge]()':
groff.cc:424: undefined reference to `operator=20 delete[](void*)'
groff.cc(.text+0x1369): undefined reference to = `operator=20 delete[](void*)'
groff.o: In function = `possible_command::set_name(char=20 const*)':
groff.cc:430: undefined reference to `operator=20 delete[](void*)'
groff.o: In function = `possible_command::set_name(char=20 const*, char const*)':
groff.cc:435: undefined reference to `operator = new[](unsigned long)'
groff.cc:437: undefined reference to `operator=20 delete[](void*)'
groff.o: In function=20 `possible_command::build_argv()':
groff.cc:481: undefined reference = to=20 `operator new[](unsigned long)'
groff.o(.eh_frame+0x12):groff.cc: = undefined=20 reference to=20 `___gxx_personality_v0'
/dev/c/dj204/gnu/groff-1.16/src/libs/libgroff/= libgroff.a(string.o):=20 In function `sfree_alloc(char*, int, int, int*)':
string.cc:51: = undefined=20 reference to `operator=20 delete[](void*)'
/dev/c/dj204/gnu/groff-1.16/src/libs/libgroff/libgrof= f.a(string.o):=20 In function `srealloc(char*, int, int, int, int*)':
string.cc:67: = undefined=20 reference to `operator delete[](void*)'
string.cc:72: undefined = reference to=20 `operator new[](unsigned long)'
string.cc:75: undefined reference to=20 `operator=20 delete[](void*)'
/dev/c/dj204/gnu/groff-1.16/src/libs/libgroff/libgrof= f.a(string.o):=20 In function `string::extract() const':
string.cc:288: undefined = reference to=20 `operator new[](unsigned=20 long)'
/dev/c/dj204/gnu/groff-1.16/src/libs/libgroff/libgroff.a(string= .o): In=20 function `salloc(int, int*)':
Anyone got any ideas on this?
 
Thanks,
Andrew
------=_NextPart_000_0014_01C21EDD.6AC3FCB0--