[omniORB] Building under GCC2.95.1

Robert Simmons Jr. gnuish@uswest.net
Tue, 14 Sep 1999 20:18:35 -0600


Having installed the kernel headers and souce, I built GCC 2.95.1 wiht
no problems. When I tried to compile omiORB in the new environment, I
get the following error output. (note that it compiled fine with the
same options under ecgs 1.1.2)

make[5]: Entering directory
`/root/work/omniORB_280pre2/src/lib/omniORB2/orbcore/gatekeepers/alone'
/usr/local/bin/g++ -c -O2  -O3 -fexceptions -Wall -Wno-unused
-I../../..  -I../..  -D__OMNIORB2__ -I../../../../../../stub
-D_REENTRANT -I.  -I../../../../../../include -D__x86__ -D__linux__
-D__OSVERSION__=2 -o gatekeeper.o gatekeeper.cc
gatekeeper.cc: In function `static Boolean
gateKeeper::checkConnect(tcpSocketStrand *)':
gatekeeper.cc:124: passing `int *' as argument 3 of `getpeername(int,
sockaddr *, socklen_t *)' changes signedness
gatekeeper.cc:141: implicit declaration of function `int
gethostname(...)'
make[5]: *** [gatekeeper.o] Error 1
make[5]: Leaving directory
`/root/work/omniORB_280pre2/src/lib/omniORB2/orbcore/gatekeepers/alone'
make[4]: *** [export] Error 1
make[4]: Leaving directory
`/root/work/omniORB_280pre2/src/lib/omniORB2/orbcore/gatekeepers'
make[3]: *** [export] Error 1
make[3]: Leaving directory
`/root/work/omniORB_280pre2/src/lib/omniORB2/orbcore'make[2]: ***
[export] Error 1
make[2]: Leaving directory `/root/work/omniORB_280pre2/src/lib/omniORB2'

make[1]: *** [export] Error 1
make[1]: Leaving directory `/root/work/omniORB_280pre2/src/lib'
make: *** [export] Error 1

Any ideas whats going on here? Is GCC 2.95.1 bugged or use a diff
option.

Incidentally i compiled gcc 2.95.1 under the following config command.

$ cd objdir
$ /root/work/gcc-2.95.1/configure -enable-shared -enable-threads
-enable-languages=c++,f77,java,objc

Any ideas on what i can do to fix this ?

--rob