🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52489

Re: GCC 2.2.2 & ISC 2.2.1 (HELP!)

#52489
From: Bernd Hentig
Date: Wed, 08 Jul 1992 09:03
57 lines
3047 bytes
In article <mt00.710416072@chough> mt00@eurotherm.co.uk (Martin Tomes) writes:
>umrose05@ccu.umanitoba.ca (Dave Rose) writes:
>
>>Hello, 
>>	I've been trying to compile gcc 2.2.2 on my ISC 2.2.1 machine for
>>quite a few days now. I have it configured like: i386-isc-sysv32
>
>>And here is how my compile goes....Any help or suggestions would be
>>appreciated.
>
>..... Loads of stuff deleted .....
>
>>	./gcc    -g -B./  enquire.o -o enquire
>>undefined			first referenced
>> symbol  			    in file
>>putc                                enquire.o
>>ld fatal: Symbol referencing errors. No output written to enquire
>>*** Error code 1
>>`all' not remade because of errors
>
>putc is a macro which is not defined in ANSI C. It is a function in
>POSIX and can be found in libcposix.a.  I don't know which solution to
>your problem you should choose, gcc2.2.2 compiles fine on version 3.0
>of ISC UNIX.  Either you want to be in traditional C to get the macro
>or posix mode to get the function.
>
gcc 2.[n] run for ISC Versions 1.2 and 1.3 (latest) 'out of the box'
as does libg++-2.2 (first release to do so), both work *VERY RELIABLE*.
GCC:
The trick for ISC is to say 'configure i386-isc' which will automagically
invoke -lcposix for binding, the i386-isc-sys* configuration does not
work (for me).
If you try to compile your POSIX programmes later on with gcc, donot
forget to say '-posix' as POSIX secure signal handling and other things will
not work as expected if you don't (this flag invokes /lib/crtp0.o which
defines the OS - Environment in a static variable).

LIBG++:
2.2 is the first release that works for me under ISC.
However, configuration for me is 'configure i386-isc-sysv32' in the
libg++-2.2 main directory with the following changes to the config/mh-sysv
(I know I should change this to mh-isc and add another entry in configure.in,
but it's just for me):
CC = gcc -Wall
INSTALL = cp
RANLIB = echo.

Do not use gcc -posix during compilation of libg++ and do not define
_POSIX_SOURCE globally, this will cause many trouble due to different
function prototypes of POSIX and g++-include; however, I did not 
figure out how to enable ANSI/POSIX and libg++ to work together
without great hacking 
(might cause problems if the return value of a function under POSIX
is unsigned short and the g++-definition is int ...)

Hope this helps you
Bernd
Technical Details
Message-ID: <2140@inasys.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!unido!inasys!behe
References: <1992Jul4.030534.14181@ccu.umanitoba.ca> <mt00.710416072@chough>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,2f1a0bbdd924a197
X-Google-Attributes: gid11318c,public
X-Google-Thread: 1048e3,2f1a0bbdd924a197
X-Google-Attributes: gid1048e3,public
X-Google-ArrivalTime: 1992-07-08 00:48:28 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!unido!inasys!behe
From: behe@inasys.UUCP (Bernd Hentig)
Newsgroups: gnu.gcc.help,comp.unix.sysv386
Subject: Re: GCC 2.2.2 & ISC 2.2.1 (HELP!)
Message-ID: <2140@inasys.UUCP>
Date: 8 Jul 92 09:03:10 GMT
References: <1992Jul4.030534.14181@ccu.umanitoba.ca> <mt00.710416072@chough>
Organization: inasys GmbH, Bonn, Germany
Lines: 57