Problem compiling 4.1.1b2 with Sun Studio 12

John Center john.center at villanova.edu
Wed Sep 2 21:30:39 UTC 2009


Hi,

I'm trying to compile 4.1.1b2 with Sun Studio 12.1 on Solaris 10 
(SPARC), & I'm having problems right out of the shoot:

gmake[2]: Entering directory `/opt/ws/dists/Services/dhcp-4.1.1b2/common'
source='alloc.c' object='alloc.o' libtool=no \
DEPDIR=.deps depmode=none /bin/bash ../depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I../includes  -I..
-DLOCALSTATEDIR='"/opt/isc/bind/var"' -
I/opt/gnu/include -I/opt/local/include -I/usr/sfw/include
-I/opt/openssl/include  -g -xs -fast -xtarget=ultraT1 -xarch=sparcvis2
-m64 -mt -xipo -xcode=pic32 -xpagesize=default -xregs=no%appl
-D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__  -c alloc.c
"../includes/arpa/nameser.h", line 113: warning: no explicit type given
"../includes/arpa/nameser.h", line 113: warning: syntax requires ";"
after last struct
/union member
"../includes/arpa/nameser.h", line 113: syntax error before or at: *
"../includes/arpa/nameser.h", line 115: warning: no explicit type given
"../includes/arpa/nameser.h", line 115: warning: syntax requires ";"
after last struct
/union member
"../includes/arpa/nameser.h", line 118: warning: no explicit type given
"../includes/arpa/nameser.h", line 118: warning: syntax requires ";"
after last struct
/union member
"../includes/arpa/nameser.h", line 118: syntax error before or at: *
"../includes/arpa/nameser.h", line 122: warning: unnamed struct member
"../includes/arpa/nameser.h", line 123: syntax error before or at: extern
"../includes/arpa/nameser.h", line 139: syntax error before or at: typedef
"../includes/arpa/nameser.h", line 141: syntax error before or at: u_int16_t
"../includes/arpa/nameser.h", line 145: warning: no explicit type given
"../includes/arpa/nameser.h", line 145: warning: syntax requires ";"
after last struct
/union member
"../includes/arpa/nameser.h", line 178: syntax error before or at: typedef
"../includes/arpa/nameser.h", line 191: syntax error before or at: typedef
"../includes/arpa/nameser.h", line 212: syntax error before or at: typedef
"../includes/arpa/nameser.h", line 221: warning: unnamed struct member
"../includes/arpa/nameser.h", line 226: syntax error before or at: typedef
"../includes/arpa/nameser.h", line 231: warning: unnamed struct member
"../includes/arpa/nameser.h", line 238: syntax error before or at: typedef
"../includes/arpa/nameser.h", line 251: syntax error before or at: typedef
"../includes/arpa/nameser.h", line 318: syntax error before or at: typedef
"../includes/arpa/nameser.h", line 332: syntax error before or at: typedef
"../includes/arpa/nameser.h", line 339: syntax error before or at: typedef
"../includes/arpa/nameser_compat.h", line 48: syntax error before or at:
typedef

This is just a sample of the errors I received.  It appears to be a gcc
vs SS12 issue, but I don't know how to resolve it.  DHCP 3.1.2p1
compiled w/o a problem.  Any help would be greatly appreciated.

Thanks.

	-John




More information about the dhcp-workers mailing list