All,

With very much help and thanks to ALL of you that have helped me, I have
gotten IPFilter to compile on Solaris 8.  Although I was having so many
problems and was chasing my tail, this is really quite easy (I think).  I
still have to verify that it works properly, but here is what I have done:

Ultra 10 workstation with 512 MB memory.
Loaded Solaris 8 Full Distribution plus OEM support.  I did NOT install any
security or recommended patches to bring it up-to-date.
Downloaded from SunFreeware libiconv 1.8 and gcc 3.4.2 for Solaris 8
http://www.sunfreeware.com/indexsparc8.html
Downloaded IPFilter 3.4.35 source code
http://cheops.anu.edu.au/~avalon/ipfilter-status.html
cp -p libiconv-1.8-so.8-sparc-local.gz /var/spool/pkg
cp -p gcc-3.4.2-sol8-sparc-local.gz /var/spool/pkg
cd /var/spool/pkg
gzip -d libiconv-1.8-so.8-sparc-local.gz
gzip -d gcc-3.4.2-sol8-sparc-local.gz
pkgadd -d libiconv-1.8-so.8-sparc-local
reboot
login
cd /var/spool/pkg
pkgadd -d gcc-3.4.2-sol8-sparc-local
reboot
login
cp -p ip_fil3.4.35.tar.gz /root
cd /root
gzip -d ip_fil3.4.35.tar.gz
tar xvf gzip -d ip_fil3.4.35.tar
cd ip_fil3.4.35
make solaris
cd SunOS5
make package
cd spar-5.8
cp -p ipf.pkg /var/spool/pkg
cd /var/spool/pkg
pkgadd -d ipf.pkg
reboot

Lessons that I learned...

1)  The link of gcc to /usr/local/bin is EXTREMELY important.  Regardless if
gcc is in your path, the buildsunos script strips away your PATH variable
and implements its' own looking for gcc in /usr/ccs/bin.  If it is not
there, it won't work.

2)  I've seen instructions stating to use gcc from the Solaris 8 or 9
companion CD.  This is probably fine if you want to do 32-bit binaries, not
64-bit binaries as the gcc version is 2.9.5.  The gcc on the Solaris 10
companion CD is version 3.4.2, but is compiled using the GNU 'as' versus the
solaris 'as'.  This is an apparent issue although I have not confirmed.

3)  Some of my biggest help came from people saying that I needed to use
pfil 2.7.  I am not sure if I may have compiled my ipfilter correctly or
not, however, I did not have to use pfil in order for it to "appear" to
compile successfully.  Maybe that is something you have to use with the 4.x
series of ipfilter?

I am not a complete rock, but this was my first time ever compiling
software.  If anyone sees that I may have not completed all of the steps I
needed to have a properly working version of IPFilter, please respond to
this email.  For any other "rocks" out there that may be compiling software
for the first time, hope this helps.

Paul Fiengo


Reply via email to