Menu

#16 Build fails on Solaris 9

open
nobody
None
5
2006-01-06
2006-01-06
Mark Round
No

A standard ./configure and "gmake" run fails on Solaris 9.

I get the following :

In file included from ../include/dnet.h:15,
from fw-ipf.c:39:
../include/dnet/ip.h:14:1: warning: "IP_ADDR_LEN" redefined
In file included from /usr/include/netinet/ip_compat.h:146,
from fw-ipf.c:24:
/usr/include/inet/ip.h:62:1: warning: this is the
location of the previous definition
In file included from ../include/dnet.h:15,
from fw-ipf.c:39:
../include/dnet/ip.h:84:1: warning: "IP_MF" redefined
In file included from fw-ipf.c:24:
/usr/include/netinet/ip_compat.h:836:1: warning: this
is the location of the previous definition
In file included from ../include/dnet.h:15,
from fw-ipf.c:39:
../include/dnet/ip.h:414: error: conflicting types for
`ip_open'
/usr/include/inet/ip.h:1953: error: previous
declaration of `ip_open'
../include/dnet/ip.h:416: error: conflicting types for
`ip_close'
/usr/include/inet/ip.h:1944: error: previous
declaration of `ip_close'
In file included from ../include/dnet.h:16,
from fw-ipf.c:39:
../include/dnet/ip6.h:35: error: redefinition of
`struct ip6_hdr'
In file included from ../include/dnet.h:19,
from fw-ipf.c:39:
../include/dnet/icmp.h:91:1: warning:
"ICMP_PHOTURIS_UNKNOWN_INDEX" redefined
In file included from fw-ipf.c:24:
/usr/include/netinet/ip_compat.h:812:1: warning: this
is the location of the previous definition
In file included from ../include/dnet.h:19,
from fw-ipf.c:39:
../include/dnet/icmp.h:92:1: warning:
"ICMP_PHOTURIS_AUTH_FAILED" redefined
In file included from fw-ipf.c:24:
/usr/include/netinet/ip_compat.h:815:1: warning: this
is the location of the previous definition
gmake[1]: *** [fw-ipf.lo] Error 1
gmake[1]: Leaving directory
`/export/home/mround/build/libdnet-1.10/src'
gmake: *** [all-recursive] Error 1

I think this is because IP_ADDR_LEN etc. is already
defined in /usr/include/inet/ip.h, but when I try to
#ifndef things out, I get a whole host of other
breakages (sorry, only very rudimentary C knowledge!)

FWIW, this build works as expected on Solaris 8.

Discussion

  • Dug Song

    Dug Song - 2006-01-09

    Logged In: YES
    user_id=18578

    hrm, looks like Solaris 9 with IP filter installed? what
    version of IP filter is it, so i can try to reproduce it
    (that is, unless you can give me temporary access to fix it)...

     
  • Mark Round

    Mark Round - 2006-01-10

    Logged In: YES
    user_id=1420887

    ipf: IP Filter: v3.4.32 (496)
    Kernel: IP Filter: v3.4.32

     

Log in to post a comment.