Unix Technical Forum

HEAD doesn't cope with libraries in non-default locations

This is a discussion on HEAD doesn't cope with libraries in non-default locations within the pgsql Hackers forums, part of the PostgreSQL category; --> CVS tip fails with ./configure --with-openssl \ --with-includes=/usr/local/ssl/include --with-libs=/usr/local/ssl/lib .... make[3]: Entering directory `/home/postgres/pgsql/src/interfaces/libpq' .... /usr/ccs/bin/ld +h libpq.sl.4 -b ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 05:44 AM
Tom Lane
 
Posts: n/a
Default HEAD doesn't cope with libraries in non-default locations

CVS tip fails with
./configure --with-openssl \
--with-includes=/usr/local/ssl/include --with-libs=/usr/local/ssl/lib

....
make[3]: Entering directory `/home/postgres/pgsql/src/interfaces/libpq'
....
/usr/ccs/bin/ld +h libpq.sl.4 -b +b /home/postgres/testversion/lib fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o fe-protocol2.o fe-protocol3.o pqexpbuffer.o pqsignal.o fe-secure.o md5.o ip.o wchar.o encnames.o noblock.o pgstrcasecmp.o thread.o getaddrinfo.o -lssl -lcrypto `gcc -L../../../src/port -L/usr/local/ssl/lib -Wl,-z -Wl,+b -Wl,/home/postgres/testversion/lib -print-libgcc-file-name` -L../../../src/port -L/usr/local/ssl/lib -o libpq.sl.4
/usr/ccs/bin/ld: Can't find library for -lssl
make[3]: *** [libpq.sl.4] Error 1

It appears that somebody has changed things so that the -L switches
appear after the -l switches (ie, too late). I'm too tired to
investigate now, but my money is on Autoconf 2.59 being the problem ...

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 05:44 AM
Oliver Jowett
 
Posts: n/a
Default Re: HEAD doesn't cope with libraries in non-default locations

Tom Lane wrote:

> It appears that somebody has changed things so that the -L switches
> appear after the -l switches (ie, too late). I'm too tired to
> investigate now, but my money is on Autoconf 2.59 being the problem ...


Perhaps this:
http://archives.postgresql.org/pgsql...7/msg00085.php

-O

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-11-2008, 05:44 AM
Jim C. Nasby
 
Posts: n/a
Default Re: HEAD doesn't cope with libraries in non-default locations

On Mon, Jul 04, 2005 at 04:14:51PM +1200, Oliver Jowett wrote:
> Tom Lane wrote:
>
> >It appears that somebody has changed things so that the -L switches
> >appear after the -l switches (ie, too late). I'm too tired to
> >investigate now, but my money is on Autoconf 2.59 being the problem ...

>
> Perhaps this:
> http://archives.postgresql.org/pgsql...7/msg00085.php


Would be my guess as well...

So should includes/linking for PostgreSQL-built libs be handled
seperately? The original problem was that if --with-libraries was
specified then libpq etc would be linked from the system locations
instead of from within the build.
--
Jim C. Nasby, Database Consultant decibel@decibel.org
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-11-2008, 05:44 AM
Andrew Dunstan
 
Posts: n/a
Default Re: HEAD doesn't cope with libraries in non-default locations



Jim C. Nasby wrote:

>On Mon, Jul 04, 2005 at 04:14:51PM +1200, Oliver Jowett wrote:
>
>
>>Tom Lane wrote:
>>
>>
>>
>>>It appears that somebody has changed things so that the -L switches
>>>appear after the -l switches (ie, too late). I'm too tired to
>>>investigate now, but my money is on Autoconf 2.59 being the problem ...
>>>
>>>

>>Perhaps this:
>>http://archives.postgresql.org/pgsql...7/msg00085.php
>>
>>

>
>Would be my guess as well...
>
>So should includes/linking for PostgreSQL-built libs be handled
>seperately? The original problem was that if --with-libraries was
>specified then libpq etc would be linked from the system locations
>instead of from within the build.
>
>


Yes, I think so. Peter Eisentraut's analysis strikes me as being correct.

cheers

andrew

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:41 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com