Hey Andy,

I was stuck with the same problem for days. There are two ways you could 
try.

1) force it  into 32 bit.  Instead of running ./config ...... run it with 
appropriate argument as ./Configure solaris64-x86_64-gcc  prefix 
=..................
You could get the appropriate argument for 32 bit by simply running the 
./Configure script in the source build directory

However for me .. the binaries did not work once i compiled in 32 bit 
mode. May be they work for you. 

2)  It is not able to build in 32 bit mode only 'coz of gcc . Openssl 
does'nt seem to be intelligent enough .. 
Try and build with gcc that came with the default OS. (Should be available 
at some default path on the system)

The bottom line is get a gcc that is explicitly build in 64 bit mode.

For me, on Sun Opteron 10  it worked with :

Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure 
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as 
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ 
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
# which gcc
/usr/bin/gcc
# ls -l /usr/bin/gcc
lrwxrwxrwx   1 root     root          16 Apr 20 05:12 /usr/bin/gcc -> 
/usr/sfw/bin/gcc





--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. NOTE: Regardless of content, this e-mail shall not operate to 
bind CSC to any order or other contract unless pursuant to explicit 
written agreement or government initiative expressly permitting the use of 
e-mail for such purpose.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------




"Andy Harrison" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
04/25/2007 07:38 PM
Please respond to
openssl-users@openssl.org


To
openssl-users@openssl.org
cc

Subject
solaris x86 32-bit compile problem






I'm trying to compile with the following options, but it's insisting
on using the 64 bit version and I can't seem to get around this.

# ./config --install_prefix=/usr/src/OPENSSL --prefix=/usr/local/ssl
--openssldir=/usr/local/ssl --shared solaris-x86-gcc
Operating system: i86pc-whatever-solaris2
Configuring for solaris64-x86_64-gcc
target already defined - solaris64-x86_64-gcc (offending arg: 
solaris-x86-gcc)

Any ideas how I can force it to 32-bit?

I'm compiling on a sun x4100 m2 machine, solaris 10 11/06:

# uname -mrsv
SunOS 5.10 Generic_125101-04 i86pc
# which gcc
/usr/local/bin/gcc
# gcc --version
gcc (GCC) 3.4.5

-- 
Andy Harrison
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to