Обсуждение: HEAD doesn't cope with libraries in non-default locations

Поиск
Список
Период
Сортировка

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

От
Tom Lane
Дата:
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.ofe-lobj.o fe-protocol2.o fe-protocol3.o pqexpbuffer.o pqsignal.o fe-secure.o md5.o ip.o wchar.o encnames.o
noblock.opgstrcasecmp.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


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

От
Oliver Jowett
Дата:
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-hackers/2005-07/msg00085.php

-O


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

От
"Jim C. Nasby"
Дата:
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-hackers/2005-07/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?"


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

От
Andrew Dunstan
Дата:

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-hackers/2005-07/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