64-bit Compile Failure on Solaris 10 with OpenSSL

From: "Randal T(dot) Rioux" <randy(at)procyonlabs(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: 64-bit Compile Failure on Solaris 10 with OpenSSL
Date: 2008-09-06 22:39:26
Message-ID: 3012c6b7e4d3a76c0b414189717e15d1.squirrel@192.168.3.2
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I've battled this for a while. I'm finally breaking down and asking for help.

If you're answer to this is "why 64-bit" then don't answer. You wouldn't
understand. Same if you say "why don't you use packages."

Here is my scenerio:

- Sun 420R x450Mhz UltraSPARC-II / 4GB RAM
- Solaris 10 05/08
- OpenSSL 0.9.8h
- PostgreSQL 8.3.3
- GCC 3.4.6
- GNU Make 3.81

OpenSSL configure line (compiles clean and works perfectly):

./Configure shared solaris64-sparcv9-gcc -R/usr/sfw/lib/sparcv9
-R/usr/local/ssl/lib

PostgreSQL configure line:

./configure --with-openssl --without-readline CFLAGS="-m64
-mcpu=ultrasparc" CPPFLAGS="-I/usr/local/ssl/include"
LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib -R/usr/sfw/lib/sparcv9"

If I don't include OpenSSL support, all is fine. This is the error I get
during configure using the above flags:

checking checking blah blah <snipped>....
checking test program... failed
configure: error:
Could not execute a simple test program. This may be a problem
related to locating shared libraries. Check the file 'config.log'
for the exact reason.

The most glaring error in config.log shows this:

configure:5635: gcc -o conftest -m64 -mcpu=ultrasparc -Wall
-Wmissing-prototypes -Wpointer-arith -Winline
-Wdeclaration-after-statement -Wendif-labe
ls -fno-strict-aliasing -fwrapv -I/usr/local/ssl/include
-L/usr/local/ssl/lib -R/usr/local/ssl/lib -R/usr/sfw/lib/sparcv9
conftest.c -lutil -lm
>&5
ld: fatal: library -lutil: not found
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:5641: $? = 1
configure: failed program was:
| /* confdefs.h. */

Now, if I recall correctly, lutil is part of GLIBC - a Linux-only dev
package. Why would it be using this on Solaris? Am I missing the real
error or does this have something to do with the overall failure to
configure (thus, compile)?

Thanks everyone!
Randy

PS I put the entire config.log here for analysis:

http://www.procyonlabs.com/temp/config.log

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-09-06 23:05:08 Re: 64-bit Compile Failure on Solaris 10 with OpenSSL
Previous Message Tom Lane 2008-09-06 20:54:24 Re: recover in single-user backend fails