There is a typo in the buildsunos file.

On line 64:-

        XARCH64="-m64 -mcmodel=medlow"

Should read:-

        XARCH64_sparc="-m64 -mcmodel=medlow"

This only applies if using GCC of course.

Adam

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Friday, 19 August 2005 7:06 AM
To: [email protected]
Subject: building ipfilter 4.1.8 / 4.1.9 on Solaris 8 (SPARC)

I've checked the archives, and I've not seen a solution for this problem,
tho
it's been mentioned in the past (as resently as a few days ago).

I'm trying to build ipfilters 4.1.9 on Solaris 8.  I've got both the sun
workshop compilers (6.1) and a few flavors of gcc (3.2.1, 3.4.2) available. 
I'm getting the "No 64 bit capable compiler was found" error.

I've built a simple c program to test the 64 bit capability of my
compilers..

x.c:

  #include <stdio.h>
  int main () {}

[EMAIL PROTECTED]:; gcc -m64 x.c
[EMAIL PROTECTED]:; file a.out
a.out:          ELF 64-bit MSB executable SPARCV9 Version 1, dynamically
linked,
not stripped
[EMAIL PROTECTED]:; rm a.out
[EMAIL PROTECTED]:; /usr/local/SUNWspro/bin/cc -xtarget=ultra -xarch=v9 x.c
[EMAIL PROTECTED]:; file a.out
a.out:          ELF 64-bit MSB executable SPARCV9 Version 1, dynamically
linked,
not stripped


So, I appear to have 64bit capable compilers.  But, when I try "make
solaris"
with sun workshop cc / gcc, I get:

[EMAIL PROTECTED]:; 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="/usr/local/SUNWspro/bin/cc" DEBUG="-g" ./buildsunos
Testing compiler /usr/local/SUNWspro/bin/cc for 64 bit object file
generation.
No 64 bit capable compiler was found
*** Error code 1
make: Fatal error: Command failed for target `solaris'

I'm using /usr/ccs/bin/make.

Any suggestions?

Liam


Reply via email to