Hi,
I'm trying to compile version 4.1.29 on a Solaris 9 12/03 build. (Yes, I
know its old, yes I know I should be using the Sun CC, but this box
doesn't have it.)

Anyway, I've compiled and installed pfil=2.1.13 successfully, but keep
getting the "gcc cannot create 32 bit executables." error.

AppDev-Man01:/var/tmp/ipf/ip_fil4.1.29# make solaris
mkdir -p net netinet
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)
ln: cannot create ip_rules.h: File exists
*** Error code 2 (ignored)
if [ ! -f net/done ] ; then \
        (cd net; ln -s ../radix_ipf.h .; ); \
        touch net/done; \
fi
MAKE="make" MAKEFLAGS="" BPFILTER= \
        CC="gcc" DEBUG="-g" ./buildsunos
Testing compiler gcc for 64 bit object file generation.
gcc cannot create 32 bit executables.
*** Error code 1
make: Fatal error: Command failed for target `solaris'
AppDev-Man01:/var/tmp/ipf/ip_fil4.1.29#

AppDev-Man01:/var/tmp/ipf/ip_fil4.1.29# uname -a
SunOS AppDev-Man01 5.9 Generic_118558-02 sun4u sparc SUNW,Sun-Fire-280R
AppDev-Man01:/var/tmp/ipf/ip_fil4.1.29# cat /etc/release
                       Solaris 9 12/03 s9s_u5wos_08b SPARC
           Copyright 2003 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                           Assembled 21 November 2003
AppDev-Man01:/var/tmp/ipf/ip_fil4.1.29# gcc --version
gcc (GCC) 3.4.6
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.


Any idea what I need to link/fix/find or change?  I'm tired of beating
my head against the compiler now =).

Bill

Reply via email to