9.0Alpha4: openSolaris x86 snv_134: errors linking to libs in /usr/local

From: Lou Picciano
Subject: 9.0Alpha4: openSolaris x86 snv_134: errors linking to libs in /usr/local
Date: ,
Msg-id: 1941231351.7086251269809937413.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net
(view: Whole thread, Raw)
Responses: Re: 9.0Alpha4: openSolaris x86 snv_134: errors linking to libs in /usr/local  (Zdenek Kotala)
List: pgsql-testers

[TEST REPORT]

[Release]: 9.0Alpha4

[Test Type]: Build - with OpenSSL libs in /usr/local

[Test]: Attempt to build with library packages installed in /usr/local; eg: /usr/local/ssl

[Platform]: openSolaris x86 snv_134 (current as of 2010 Mar 28), Intel Quad Core 64-bit

[Parameters]: 

Various SunFreeware packages are in /usr/local/...   eg: openssl-0.9.8n


# su root

# export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin


Invoking either of these configure statements:

# ./configure \

--with-libs=/usr/local/ssl/lib:/usr/local/lib \

--with-includes=/usr/local/ssl/include:/usr/local/ssl/include/openssl:/usr/local/include \

--with-openssl


- OR -


# ./configure \

LDFLAGS='-L/usr/local/ssl/lib -L/usr/local/lib' \

CPPFLAGS='-I/usr/local/ssl/include -I/usr/local/ssl/include/openssl -I/usr/local/include' \

--with-openssl


OUTPUT of configure:

... DOES find bison   ==================================================================================

checking for bison... /usr/local/bin/bison

configure: using bison (GNU Bison) 2.4.2

... but DOES NOT find /usr/local/bin/flex   ===================================================================

checking for flex... no

... (However, were able to set FLEX=/usr/local/bin/flex)    ========================================================

... and DOES find perl   ================================================================================

checking for perl... /usr/local/bin/perl

configure: using perl 5.8.8

... and DOES apprently set FLAGS   =======================================================================

configure: using CPPFLAGS=  -I/usr/local/ssl/include -I/usr/local/ssl/include/openssl -I/usr/local/include

configure: using LDFLAGS=  -L/usr/local/ssl/lib -L/usr/local/lib


[Failure]: Looks like a compile/build error.  Unable to link to specific libraries in /usr/local.

[Results]: 

# make

# ldd src/backend/postgres

libssl.so.0.9.8 =>  /lib/libssl.so.0.9.8

libcrypto.so.0.9.8 =>  /lib/libcrypto.so.0.9.8

[Comments]: Configure/Compile/Link seems to locate various utilities and libraries in /usr/local _variably_.  


pgsql-testers by date:

From: Lou Picciano
Date:
Subject: 9.0Alpha4: openSolaris x86 snv_134: errors linking to libs in /usr/local
From: Zdenek Kotala
Date:
Subject: Re: PostgreSQL 9.0alpha4: openSolaris 10 x86 snv_134: configure issues: C compiler cannot create executables