Solaris 10 Compile Issue

John Jason Brzozowski john_brzozowski at cable.comcast.com
Tue Jun 19 04:08:57 UTC 2007


Folks,

I get the following compile errors when trying to build the dhcp-4.0.0a1
version of the software with DHVPv6 enabled on Solaris 10.  It seems that
the msghdr struct that is used in common/socket.c expects member variables
that are not defined.  I tried to build the software on two different
systems both failed.

Has anyone else seen this issue on Solaris 10?

#1)
if gcc -DHAVE_CONFIG_H -I. -I. -I../includes  -I..
-DLOCALSTATEDIR='"/usr/local/var"'   -g -O2 -MT socket.o -MD -MP -MF
".deps/socket.Tpo" -c -o socket.o socket.c; \
then mv -f ".deps/socket.Tpo" ".deps/socket.Po"; else rm -f
".deps/socket.Tpo"; exit 1; fi
socket.c: In function `send_packet6':
socket.c:469: error: structure has no member named `msg_control'
socket.c:470: error: structure has no member named `msg_controllen'
socket.c:471: warning: assignment makes pointer from integer without a cast
socket.c:478: error: structure has no member named `msg_controllen'
socket.c: In function `receive_packet6':
socket.c:565: error: structure has no member named `msg_control'
socket.c:566: error: structure has no member named `msg_controllen'
socket.c:580: warning: assignment makes pointer from integer without a cast
socket.c:588: warning: assignment makes pointer from integer without a cast
make[1]: *** [socket.o] Error 1
make[1]: Leaving directory `/opt/isc/dhcp400/dhcp-4.0.0a1/common'
make: *** [all-recursive] Error 1
sol10-v6-01k:/opt/isc/dhcp400/dhcp-4.0.0a1# gcc -v
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.6/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77
Thread model: posix
gcc version 3.4.6

#2)
if gcc -DHAVE_CONFIG_H -I. -I. -I../includes  -I..
-DLOCALSTATEDIR='"/usr/local/var"'   -g -O2 -MT socket.o -MD -MP -MF
".deps/socket.Tpo" -c -o socket.o socket.c; \
then mv -f ".deps/socket.Tpo" ".deps/socket.Po"; else rm -f
".deps/socket.Tpo"; exit 1; fi
socket.c: In function `send_packet6':
socket.c:469: error: structure has no member named `msg_control'
socket.c:470: error: structure has no member named `msg_controllen'
socket.c:471: warning: assignment makes pointer from integer without a cast
socket.c:478: error: structure has no member named `msg_controllen'
socket.c: In function `receive_packet6':
socket.c:565: error: structure has no member named `msg_control'
socket.c:566: error: structure has no member named `msg_controllen'
socket.c:580: warning: assignment makes pointer from integer without a cast
socket.c:588: warning: assignment makes pointer from integer without a cast
make[1]: *** [socket.o] Error 1
make[1]: Leaving directory `/opt/isc/dhcp-4.0.0a1/common'
make: *** [all-recursive] Error 1
sol10-v6-03k:/opt/isc/dhcp-4.0.0a1# gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with: 
/gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)

=========================================
John Jason Brzozowski (CISSP, RHCT)
Comcast Corporation
e) mailto:john_brzozowski at cable.comcast.com
m) 609-377-6594
p) 856-324-2671
=========================================



More information about the dhcp-users mailing list