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

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

From
Lou Picciano
Date:

[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_.  

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

From
Zdenek Kotala
Date:
Lou Picciano píše v ne 28. 03. 2010 v 20:58 +0000:

> 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.

You have to set also RPATH ... like -R/usr/local/ssl/lib linker have to
know where libraries are stored.

    Zdenek