Re: configure fails on solaris

From: "Stergios Zissakis" <szis(at)intranet(dot)gr>
To: "Edwin New" <edwin_new(at)toll(dot)com(dot)au>, <pgsql-ports(at)postgresql(dot)org>
Subject: Re: configure fails on solaris
Date: 2004-06-24 08:00:32
Message-ID: NGBBJHBHDKPNOODGDMMAMEHBCIAA.szis@intranet.gr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

configure fails on solarisConfigrure fails to run a test problem. When I
came across this it was the LD_LIBRARY_PATH that was wrong.
Keep in mind that configure is a script which fork execs a new shell. If the
LD_LIBRARY_PATH is not pointing to the right places (libz, readline, etc)
configure will fail.

Modify your .profile or the file your ENV variable points to, to include the
right path LD_LIBRARY_PATH.

Hope this helps.

Regards,
Sterge
-----Original Message-----
From: pgsql-ports-owner(at)postgresql(dot)org
[mailto:pgsql-ports-owner(at)postgresql(dot)org]On Behalf Of Edwin New
Sent: Thursday, June 24, 2004 10:48 AM
To: pgsql-ports(at)postgresql(dot)org
Subject: [PORTS] configure fails on solaris

I'm trying to run configure on Solaris. At line 13509, conftest fails. I
hope someone can suggest what the problem is.

I'm not running it as root, but as the user teprpg01 in a group that has
write permissions to the directory tree.

Here's an excerpt from config.log with the error at the end (I snipped the
middle):

--------------------------------------------------------------
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by PostgreSQL configure 7.4.2, which was
generated by GNU Autoconf 2.53. Invocation command line was

$
./configure --with-java --with-pgport=6100 --prefix=/usr/local/teprpg01

## --------- ##
## Platform. ##
## --------- ##

hostname = webm-qa
uname -m = sun4u
uname -r = 5.9
uname -s = SunOS
uname -v = Generic_117171-01

/usr/bin/uname -p = sparc
/bin/uname -X = System = SunOS
Node = webm-qa
Release = 5.9
KernelID = Generic_117171-01
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 1

[snip]

configure:13492: checking test program
configure:13504: gcc -o conftest -O2 -fno-strict-aliasing
conftest.c -lz -lreadline -ltermcap -lrt -lresolv -lgen -l

socket -lnsl -ldl -lm >&5
configure:13507: $? = 0
configure:13509: ./conftest
ld.so.1: ./conftest: fatal: libreadline.so.4: open failed: No such file or
directory
./configure: line 1: 26938 Killed ./conftest$ac_exeext
configure:13512: $? = 137
configure: program exited with status 137
configure: failed program was:
#line 13498 "configure"
#include "confdefs.h"
int main() { return 0; }
configure:13521: result: failed
configure:13526: 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.

In response to

Responses

Browse pgsql-ports by date

  From Date Subject
Next Message Tom Lane 2004-06-24 13:57:32 Re: configure fails on solaris
Previous Message Edwin New 2004-06-24 07:48:08 configure fails on solaris