[prev in list] [next in list] [prev in thread] [next in thread]
List: ipfilter
Subject: attempting to build on solaris 9
From: "Malcolm Herbert" <mjch () mjch ! net>
Date: 2009-06-23 7:30:55
Message-ID: 22420_1245742960_4A40876F_22420_1814_1_1245742255.5964.1321706441 () webmail ! messagingengine ! com
[Download RAW message or body]
Using SunStudio 12 inside a Solaris 9 branded zone[1] trying to compile
ip_fil4.1.17 fails with:
# make solaris
if [ ! -f netinet/done ] ; then \
(cd netinet; ln -s ../*.h .; ln -s ../ip_*_pxy.c .;); \
(cd netinet; ln -s ../ipsend/tcpip.h tcpip.h); \
touch netinet/done; \
fi
(cd netinet; ln -s ../ip_rules.h ip_rules.h)
if [ ! -f net/done ] ; then \
(cd net; ln -s ../radix_ipf.h .; ); \
touch net/done; \
fi
MAKE="make" MAKEFLAGS="" BPFILTER= \
CC="/opt/ss12/SUNWspro/bin/cc" DEBUG="-g" ./buildsunos
Testing compiler /opt/ss12/SUNWspro/bin/cc for 64 bit object file
generation.
found 32/64 bit compiler
build 32 bit binaries.
make ok
(cd SunOS5/sparc-5.9; make build TOP=../.. "CC=/opt/ss12/SUNWspro/bin/cc
-Xa -xildoff" 'CFLAGS=-I$(TOP) -D_BSD_SOURCE -DSOLARIS2=9 '
"IPFLOG=-DIPFILTER_LOG" "LOGFAC=-DLOGFAC=LOG_LOCAL0"
"POLICY=-DIPF_DEFAULT_PASS=FR_PASS" "SOLARIS2=-DSOLARIS2=9" "DEBUG=-g"
"DCPU=" "LIBBPF=" "CPUDIR=sparc-5.9" "IPFBPF=" 'STATETOP_CFLAGS='
"BPFILTER=" 'STATETOP_INC=' 'STATETOP_LIB=' "BITS=32" "OBJ=sparcv7"
"LOOKUP=-DIPFILTER_LOOKUP -DIPFILTER_SCAN" "COMPIPF=" 'SYNC='
'ALLOPTS=-DIPFILTER_LOG -DIPFILTER_LOOKUP -DIPFILTER_SCAN
-DIPFILTER_SYNC -DIPFILTER_CKSUM' 'LIBBPF=' "IPFLKM=-DIPFILTER_LKM"
"SOLARIS2=-DSOLARIS2=9" "CPU=-Dsparc -D__sparc__"; cd ..)
>
>
>
/opt/ss12/SUNWspro/bin/cc -Xa -xildoff -I../.. -DIPFILTER_LKM
-I../../../pfil -D_KERNEL -DSUNDDI -DSOLARIS2=9 -DIPFILTER_LOG
-DIPFILTER_LOOKUP -DIPFILTER_SCAN -c ../../ip_fil_solaris.c -o
sparcv7/ip_fil.o
"../../ip_fil_solaris.c", line 997: warning: implicit function
declaration: qif_illrouteto
"../../ip_fil_solaris.c", line 997: warning: improper pointer/integer
combination: op "="
"../../ip_fil_solaris.c", line 1060: warning: argument #1 is
incompatible with prototype:
prototype: pointer to struct msgb {pointer to struct msgb {..}
b_next, pointer to struct msgb {..} b_prev, pointer to struct
msgb {..} b_cont, pointer to unsigned char b_rptr, pointer to
unsigned char b_wptr, pointer to struct datab {..} b_datap,
unsigned char b_band, unsigned char b_ftflag, unsigned short
b_flag, pointer to struct queue {..} b_queue} :
"../../../pfil/pfil.h", line 88
argument : pointer to struct qif {struct mutex {..} qf_lock,
struct qifplock {..} qf_ptl, pointer to struct qif {..} qf_next,
pointer to struct qif {..} qf_ipmp, pointer to void qf_ill,
pointer to struct queue {..} qf_q, pointer to struct queue {..}
qf_oq, unsigned long qf_nr, unsigned long qf_nw, unsigned long
qf_bad, unsigned long qf_copy, unsigned long qf_copyfail,
unsigned long qf_drop, unsigned long qf_notip, unsigned long
qf_nodata, unsigned long qf_notdata, unsigned long qf_qifsz,
unsigned long qf_hl, unsigned int qf_num, unsigned int qf_ppa,
int qf_sap, int qf_bound, int qf_flags, int qf_waitack, int
qf_max_frag, array[32] of char qf_name, pointer to char
qf_members}
"../../ip_fil_solaris.c", line 1060: prototype mismatch: 4 args passed,
1 expected
"../../ip_fil_solaris.c", line 1149: undefined symbol: qifpkt_t
"../../ip_fil_solaris.c", line 1149: undefined symbol: qp
"../../ip_fil_solaris.c", line 1151: cannot dereference non-pointer type
"../../ip_fil_solaris.c", line 1151: warning: improper pointer/integer
combination: op "="
"../../ip_fil_solaris.c", line 1157: undefined struct/union member:
qp_mb
"../../ip_fil_solaris.c", line 1157: left operand of "->" must be
pointer to struct/union
"../../ip_fil_solaris.c", line 1157: warning: improper pointer/integer
combination: op "="
"../../ip_fil_solaris.c", line 1159: undefined struct/union member:
qp_sap
"../../ip_fil_solaris.c", line 1159: left operand of "->" must be
pointer to struct/union
"../../ip_fil_solaris.c", line 1161: undefined struct/union member:
qp_sap
"../../ip_fil_solaris.c", line 1161: left operand of "->" must be
pointer to struct/union
"../../ip_fil_solaris.c", line 1162: undefined struct/union member:
qp_inout
"../../ip_fil_solaris.c", line 1162: left operand of "->" must be
pointer to struct/union
"../../ip_fil_solaris.c", line 1163: undefined struct/union member:
qp_ifname
"../../ip_fil_solaris.c", line 1163: left operand of "->" must be
pointer to struct/union
"../../ip_fil_solaris.c", line 1163: warning: improper pointer/integer
combination: arg #1
"../../ip_fil_solaris.c", line 1164: warning: implicit function
declaration: qif_addinject
cc: acomp failed for ../../ip_fil_solaris.c
*** Error code 2
make: Fatal error: Command failed for target `sparcv7/ip_fil.o'
Current working directory
/store/mjch/build/ip_fil4.1.17/SunOS5/sparc-5.9
*** Error code 1
make: Fatal error: Command failed for target `sunos5'
Current working directory /store/mjch/build/ip_fil4.1.17
*** Error code 1
make: Fatal error: Command failed for target `solaris'
# uname -a
SunOS victim-5.9 5.9 Generic_Virtual sun4u sparc SUNW,Sun-Fire-V440
# pwd
/store/mjch/build/ip_fil4.1.17
# env
_=/usr/xpg4/bin/env
SSH_TTY=/dev/pts/48
PATH=/opt/ss12/SUNWspro/bin:/usr/xpg4/bin:/usr/ccs/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr \
/local/bin:/usr/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
LOGNAME=root
HOST=victim-5.9
OSNAME=SunOS
USER=root
SUNWSPROBASE=/opt/ss12/SUNWspro/bin
CC=/opt/ss12/SUNWspro/bin/cc
CXX=/opt/ss12/SUNWspro/bin/CC
SHELL=/usr/xpg4/bin/sh
HOME=/
SSH_CLIENT=172.16.0.254 50590 22
TERM=vt100
PWD=/store/mjch/build/ip_fil4.1.17
TZ=Australia/Victoria
I receive the same error when compiling older versions (back to 4.1.12
at least) ...
Has anyone else seen something similar?
[1] I know ipfilter won't work in a zone, just building here
--
Malcolm Herbert This brain intentionally
mjch@mjch.net left blank
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic