Steve Singer ssinger at ca.afilias.info
Wed Jun 23 09:55:23 PDT 2010
Steve Singer wrote:
> Aleksey Tsalolikhin wrote:
> 
> Find the exact error your getting in config.log
> 
> If I Download the EDB installer on and try to build slony against it I 
> get the following:
> 
> configure:5192: gcc -o conftest -g -O2   -L/opt/PostgreSQL/8.4/lib/ 
> conftest.c -lpq   >&5
> /usr/bin/ld: warning: libssl.so.4, needed by 
> /opt/PostgreSQL/8.4/lib//libpq.so, not found (try using -rpath or 
> -rpath-link)
> /usr/bin/ld: warning: libcrypto.so.4, needed by 
> /opt/PostgreSQL/8.4/lib//libpq.so, not found (try using -rpath or 
> -rpath-link)
> /opt/PostgreSQL/8.4/lib//libpq.so: undefined reference to `TLSv1_method'
> /opt/PostgreSQL/8.4/lib//libpq.so: undefined reference to `SSL_set_ex_data'
> /opt/PostgreSQL/8.4/lib//libpq.so: undefined reference to `SSL_connect'
> 
> which is probably what you are getting.  It looks like EDB libpq was 
> built against libssl which we are not linking to?
> 

Aleksey,

If this is the error that you are getting then to compile slony you should

1) Make sure that the ssl development package is installed on debian 
based systems it is named 'libssl-dev' I'm not sure what it is named on 
RedHat based systems (maybe the same?)

2) do  add "LIBS=-lssl" to your environment before calling configure. 
It should then link in the ssl library.





> 
> 
>> P.S.  Chris, you wrote:  It's probably that it couldn't find libpq to
>> link against, or some
>> such thing.
>>
>> I did run the configure under strace and I see it opens libpq.so.
>>
>> Just to double check, I tried setting gcc's LIBRARY_PATH variable:
>>
>> LIBRARY_PATH=/opt/PostgreSQL/8.4/lib  ./configure
>> --with-pgconfigdir=/opt/PostgreSQL/8.4/bin/
>> --prefix=/opt/slony1-1.2.21
>> ...
>> checking for PQunescapeBytea in -lpq... no
>> configure: error: Your version of libpq doesn't have PQunescapeBytea
>>      this means that your version of PostgreSQL is lower than 7.3
>>      and thus not supported by Slony-I.
>>
>> Best,
>> -at
>> _______________________________________________
>> Slony1-general mailing list
>> Slony1-general at lists.slony.info
>> http://lists.slony.info/mailman/listinfo/slony1-general
> 
> 


-- 
Steve Singer
Afilias Canada
Data Services Developer
416-673-1142


More information about the Slony1-general mailing list