Roderick,

my email to you bounced so I am sending this to the list, maybe someone
else will have an idea too...

---------- Forwarded message ----------
Date: Fri, 14 Mar 2003 14:00:58 -0600 (CST)
From: "Duzlevski, Ognen" <[EMAIL PROTECTED]>
To: G. Roderick Singleton <[EMAIL PROTECTED]>
Subject: Re: problem compiling ipfilter on tru64

> It would be interesting to know what the permissions are on that file. I
> would also be interesting to know if this is in the copy process of the
> make where these files are placed in the system-wide include heirarchy.
> e.g. /usr/include.

Here is what I am getting on a 5.1 box:

cc -std1 -msg_disable expandeddefined -g -I..      -DTRU64=732
-DIPFILTER_LKM -DIPFILTER_LOG -D`uname -m` -D__`uname -m`__ -DINET
-DKERNEL -D_KERNEL -I/usr/include -I`dirname
/usr/sys/GSKC01/mach_assert.h` -I/usr/sys/include -DLANGUAGE_C -DUERF
-DOSF -DMACH -DRT_SEM -DKERNEL -D_KERNEL -D_BSD -D_USE_KERNEL_PROTOS
-compress -MD -no_excpt -nointrinsics -Wg,-unroll,1 -Wb,-static
-Wco,-nofloat -msg_enable
cvtdiftypes,warnimplfunc,macroredef,lvaluecast,uselesstyped -msg_inform
cvtdiftypes,warnimplfunc,macroredef,lvaluecast,uselesstyped -msg_enable
uninit1,falloffend,intrinsicint,outtoomany,outtoofew,questcompare,storclsdcl,tentredef
-msg_warn
uninit1,falloffend,intrinsicint,outtoomany,outtoofew,questcompare,storclsdcl,tentredef
-msg_enable othermember -msg_error othermember -Umips -UMIPS -U__intel__
-D__alpha -D__digital__ -D__arch64__ -DUNIX_LOCKS=1   -DIPFILTER_LOOKUP
-DIPSTATE_SIZE=127 -c ../ip_state.c -o ip_state.o
../ip_nat.h ../ip_fil.h
make: execvp: ../ip_nat.h: Permission denied
make: *** [ip_proxy.o] Error 127
*** Exit 2
Stop.

ogd gskc01 /home/ogd/ipf40a30>cc -V
Compaq C V6.4-214 (dtk) on Compaq Tru64 UNIX V5.1 (Rev. 732)
Compiler Driver V6.4-014 (dtk) cc Driver

ogd gskc01 /home/ogd/ipf40a30>ls -l ip_nat.h
-rw-------   1 ogd      ogd        12050 Jan 10 23:57 ip_nat.h
ogd gskc01 /home/ogd/ipf40a30>

If I change all the permissions to a+r or a+rx or a+rwx, this is what
happens:

ogd gskc01 /home/ogd/ipf40a30>chmod a+rwx ip_nat.h
ogd gskc01 /home/ogd/ipf40a30>/sbin/make tru64
Multiple rules lines for `tests'
make ok
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 OSF; make build TRU64=`uname -v` TOP=.. "DEBUG=-g" 'CFLAGS=-I$(TOP)
' "IPFLOG=-DIPFILTER_LOG" "LOGFAC=-DLOGFAC=LOG_LOCAL0"
"POLICY=-DIPF_DEFAULT_PASS=FR_PASS"  "SOLARIS2=" "DEBUG=-g" "DCPU=`uname
-m`"  "LIBBPF=" "CPUDIR=`uname -s|sed -e 's@/@@g'`-`uname -r`-`uname -m`"
"IPFBPF="  'STATETOP_CFLAGS=' "BPFILTER="  'STATETOP_INC=' 'STATETOP_LIB='
"BITS=" "OBJ=." "LOOKUP=-DIPFILTER_LOOKUP" "COMPIPF="
"IPFLKM=-DIPFILTER_LKM" "MACHASSERT=`find /usr/sys -name mach_assert.h
-print`" ; cd ..)
../ip_nat.h ../ip_fil.h
../ip_nat.h: /FMG_LOCAL_PARAM_LIBRARY.KNL: cannot execute
../ip_nat.h[2]: syntax error at line 2 : `(' unexpected
make: *** [ip_proxy.o] Error 126
*** Exit 2
Stop.

Below is what happens on a Tru64 5.1b box when doing the compile with
a+rwx set on ip_nat.h:

cc -std1 -msg_disable expandeddefined -g -I..      -DTRU64=2650
-DIPFILTER_LKM -DIPFILTER_LOG -D`uname -m` -D__`uname -m`__ -DINET
-DKERNEL -D_KERNEL -I/usr/include -I`dirname /usr/sys/BETA/mach_assert.h`
-I/usr/sys/include -DLANGUAGE_C -DUERF -DOSF -DMACH -DRT_SEM -DKERNEL
-D_KERNEL -D_BSD -D_USE_KERNEL_PROTOS -compress -MD -no_excpt
-nointrinsics -Wg,-unroll,1 -Wb,-static -Wco,-nofloat -msg_enable
cvtdiftypes,warnimplfunc,macroredef,lvaluecast,uselesstyped -msg_inform
cvtdiftypes,warnimplfunc,macroredef,lvaluecast,uselesstyped -msg_enable
uninit1,falloffend,intrinsicint,outtoomany,outtoofew,questcompare,storclsdcl,tentredef
-msg_warn
uninit1,falloffend,intrinsicint,outtoomany,outtoofew,questcompare,storclsdcl,tentredef
-msg_enable othermember -msg_error othermember -Umips -UMIPS -U__intel__
-D__alpha -D__digital__ -D__arch64__ -DUNIX_LOCKS=1   -DIPFILTER_LOOKUP -c
../ip_frag.c -o ip_frag.o
cc -std1 -msg_disable expandeddefined -g -I..      -DTRU64=2650
-DIPFILTER_LKM -DIPFILTER_LOG -D`uname -m` -D__`uname -m`__ -DINET
-DKERNEL -D_KERNEL -I/usr/include -I`dirname /usr/sys/BETA/mach_assert.h`
-I/usr/sys/include -DLANGUAGE_C -DUERF -DOSF -DMACH -DRT_SEM -DKERNEL
-D_KERNEL -D_BSD -D_USE_KERNEL_PROTOS -compress -MD -no_excpt
-nointrinsics -Wg,-unroll,1 -Wb,-static -Wco,-nofloat -msg_enable
cvtdiftypes,warnimplfunc,macroredef,lvaluecast,uselesstyped -msg_inform
cvtdiftypes,warnimplfunc,macroredef,lvaluecast,uselesstyped -msg_enable
uninit1,falloffend,intrinsicint,outtoomany,outtoofew,questcompare,storclsdcl,tentredef
-msg_warn
uninit1,falloffend,intrinsicint,outtoomany,outtoofew,questcompare,storclsdcl,tentredef
-msg_enable othermember -msg_error othermember -Umips -UMIPS -U__intel__
-D__alpha -D__digital__ -D__arch64__ -DUNIX_LOCKS=1   -DIPFILTER_LOOKUP
-DIPSTATE_SIZE=127 -c ../ip_state.c -o ip_state.o
../ip_nat.h ../ip_fil.h
../ip_nat.h: /GENERIC: cannot execute
../ip_nat.h[2]: syntax error at line 2 : `(' unexpected
*** Exit 2
Stop.
*** Exit 1
Stop.

Without the a+rwx set on ip_nat.h I get the same error as on 5.1.

bash-2.04# cc -V
Compaq C V6.5-011 on Compaq Tru64 UNIX V5.1B (Rev. 2650)
Compiler Driver V6.5-003 (sys) cc Driver

Cheers,
Ognen

Reply via email to