[omniORB] omniORB 3.0.4 / Solaris 8 / gcc 3.1 build problem

Jeremy Gwinnup jgwinnup@mbvlab.wpafb.af.mil
Wed May 29 16:41:01 2002


Hello, 

I'm having issues building omniorb - specifically, it bombs out while
building orbcore , being unable to cast an int* to a socklen_t*

I'm on a Solaris 8 host, with gcc-3.1, and am trying to build omniORB
3.0.4

I've sucessfully build the package using gcc-2.95.x on solaris 2.6 and
8, but I'm trying to standardize on a (newer) compiler.

Thanks for your help
-Jeremy

Here's what I get:

g++ -c  -fhandle-exceptions -Wall -Wno-unused  -DUsePthread
-D_REENTRANT  -I. -I./.. -I./../.. -DUSE_omniORB_logStream
-D_OMNIORB_LIBRARY -DUnixArchitecture
-DCONFIG_DEFAULT_LOCATION='"/etc/omniORB.cfg"' -I. 
-I../../../../include -D__sparc__ -D__sunos__ -D__OSVERSION__=5 -o
tcpSocketMTfactory.o tcpSocketMTfactory.cc 
cc1plus: warning: -fhandle-exceptions has been renamed to -fexceptions
(and is 
   now on by default) 
tcpSocketMTfactory.cc:334: declaration of C function `int
gethostname(char*, 
   int)' conflicts with 
/usr/include/unistd.h:274: previous declaration `int gethostname(char*, 
   unsigned int)' here 
tcpSocketMTfactory.cc: In constructor 
  
`tcpSocketIncomingRope::tcpSocketIncomingRope(tcpSocketMTincomingFactory*, 
   unsigned int, tcpSocketEndpoint*, bool)': 
tcpSocketMTfactory.cc:663: invalid conversion from `int*' to
`socklen_t*' 
tcpSocketMTfactory.cc: In member function `virtual void* 
   tcpSocketRendezvouser::run_undetached(void*)': 
tcpSocketMTfactory.cc:1420: invalid conversion from `int*' to
`socklen_t*' 
tcpSocketMTfactory.cc:1577: invalid conversion from `int*' to
`socklen_t*' 
make[3]: *** [tcpSocketMTfactory.o] Error 1 
make[3]: Leaving directory
`/scratch/jgwinnup/build/omni/src/lib/omniORB2/orbcore' 
make[2]: *** [export] Error 2 
make[2]: Leaving directory
`/scratch/jgwinnup/build/omni/src/lib/omniORB2' 
make[1]: *** [export] Error 2 
make[1]: Leaving directory `/scratch/jgwinnup/build/omni/src/lib' 
make: *** [export] Error 2 

-- 
Jeremy Gwinnup
Software/Systems Engineer
Veridian Engineering
phone: (937) 904-9023
fax:   (937) 656-7425
email: jgwinnup@mbvlab.wpafb.af.mil