Hello,
Thanks a lot for your reply,
As per your advice i downloaded and installed sun studio 11.
Now iam compiling ipf on solaris 10 / i386, with sun studio 11.
Now i am able to proceed further, but i still have some problems
when i execute "make solaris" i get the following error.
cc -Xa -xildoff -I../.. -DIPFILTER_LKM -I../../../pfil -D_KERNEL
-DSUNDDI -DSOLARIS2=10 -DIPFILTER_LOG -DIPFILTER_LOOKUP
-DIPFILTER_SCAN -c ../../ip_fil_solaris.c -o i86/ip_fil.o
"../../ip_fil_solaris.c", line 859: warning: improper pointer/integer
combination: arg #8
"../../ip_fil_solaris.c", line 859: prototype mismatch: 8 args passed, 9
expected
cc: acomp failed for ../../ip_fil_solaris.c
*** Error code 2
make: Fatal error: Command failed for target `i86/ip_fil.o'
Current working directory /root/ipf_gal/ip_fil4.1.16/SunOS5/i386-5.10
*** Error code 1
make: Fatal error: Command failed for target `sunos5'
Current working directory /root/ipf_gal/ip_fil4.1.16
*** Error code 1
make: Fatal error: Command failed for target `solaris'
In addition to this i have few more question as well.
1. Do we need the source of pfil also be present when we compile the
ipf package. becuase i tried with out the pfil sources, and the compilation
gets aborted.
2. Is it ok to run "make solaris". Or should i execute something else.
Best Regards,
Ananth
a b wrote:
> Hello ,
> I tried compiling the sources of IPF 4.1.16 on solaris 10/ x86 machines.
> But while doing "make solaris", it searches for a 64 bit compiler and
> fails.
> I have installed gcc 3.4.6 in my machine.
You shouldn't be using GCC to compile IPF on Solaris. Use Sun Studio 12,
or at least Sun Studio 11.
> MAKE="make" MAKEFLAGS="" BPFILTER= \
> CC="cc" DEBUG="-g" ./buildsunos
> ./buildsunos: cc: not found
"CC=cc" specifies `cc`, which is Sun's native / Sun Studio compiler.
Is Sun Studio (/opt/SUNWspro/*) installed on this system?
If Sun Studio is installed on this system,
are /opt/SUNWspro/bin:/opt/SUNWspro/prod/bin prepended to the value
of the PATH variable?
You were specifying `cc` as the compiler, and it cannot be found, either
because the PATH isn't configured correctly, or because Sun Studio isn't
installed.
* * *
Darren: which optimizations can be safely turned on
(-xO4 -xprefetch=auto -xipo=2 -xlinkopt=2 and so on) when using Sun Studio?