[SQU] Failed compiling on Solaris 8, DNS-includes problems?

From: Eric Wallace <Eric.Wallace@dont-contact.us>
Date: 08 Jan 2001 08:07:04 -0800

I'm trying to compile Squid 2.3S4 on a Solaris 8 server, but keep
running into problems with the DNS-related includes and libraries. The
build continues to fail on "dnsserver.c", using different configurations
and paths. First I tried using the BIND libraries which come with the OS
(in /usr/include and /usr/lib), and now I'm trying with the libs from a
new BIND 8.2.2p7 compilation (in /usr/bind/include and /usr/bind/lib)...
both give the same kinds of errors. The full error message is included
below.

Anyone have suggestions? Thanks!

        ~eric w. wallace
         national semiconductor
         south portland, me

# make
...
gcc -D__BIT_TYPES_DEFINED__ -I/usr/bind/include -D_REENTRANT -I. -I../include -I../include -c dnsserver.c -o dnsserver.o
In file included from dnsserver.c:133:
/usr/bind/include/arpa/nameser.h:118: parse error before `u_int16_t'
/usr/bind/include/arpa/nameser.h:118: warning: no semicolon at end of struct or union
/usr/bind/include/arpa/nameser.h:123: parse error before `}'
/usr/bind/include/arpa/nameser.h:123: warning: data definition has no type or storage class
/usr/bind/include/arpa/nameser.h:145: parse error before `u_int16_t'
/usr/bind/include/arpa/nameser.h:145: warning: no semicolon at end of struct or union
/usr/bind/include/arpa/nameser.h:146: warning: data definition has no type or storage class
/usr/bind/include/arpa/nameser.h:147: parse error before `ttl'
/usr/bind/include/arpa/nameser.h:147: warning: data definition has no type or storage class
/usr/bind/include/arpa/nameser.h:148: parse error before `rdlength'
/usr/bind/include/arpa/nameser.h:148: warning: data definition has no type or storage class
/usr/bind/include/arpa/nameser.h:150: parse error before `}'
/usr/bind/include/arpa/nameser.h:150: warning: data definition has no type or storage class
/usr/bind/include/arpa/nameser.h:510: parse error before `ns_msg'
/usr/bind/include/arpa/nameser.h:512: parse error before `*'
/usr/bind/include/arpa/nameser.h:513: parse error before `*'
/usr/bind/include/arpa/nameser.h:521: parse error before `__ns_datetosecs'
/usr/bind/include/arpa/nameser.h:521: warning: data definition has no type or storage class
In file included from dnsserver.c:136:
/usr/bind/include/resolv.h:166: parse error before `u_int32_t'
/usr/bind/include/resolv.h:166: warning: no semicolon at end of struct or union
/usr/bind/include/resolv.h:166: warning: no semicolon at end of struct or union
/usr/bind/include/resolv.h:167: warning: data definition has no type or storage class
/usr/bind/include/resolv.h:174: parse error before `}'
/usr/bind/include/resolv.h:347: parse error before `u_char'
/usr/bind/include/resolv.h:348: parse error before `u_char'
/usr/bind/include/resolv.h:350: warning: parameter names (without types) in function declaration
dnsserver.c: In function `main':
dnsserver.c:284: dereferencing pointer to incomplete type
dnsserver.c:287: dereferencing pointer to incomplete type
make[1]: *** [dnsserver.o] Error 1
make[1]: Leaving directory `/builds/squid-2.3.STABLE4/src'
make: *** [all] Error 1

--
To unsubscribe, see http://www.squid-cache.org/mailing-lists.html
Received on Mon Jan 08 2001 - 09:11:53 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:57:21 MST