Steve Singer steve at ssinger.info
Fri Mar 30 15:11:30 PDT 2012
On Thu, 29 Mar 2012, Wolf Schwurack wrote:

Apparently the actual error is that PQisthreadsafe isn't being found by the 
linker.

The end of the command from your pastebin is 
-R/opt/postgres/9.1-pgdg/lib/64/.

Try moving that before the -lpq and seeing if it will link.

If not can you send me your config.log
I am curious how/why ./configure worked.




------
gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT 
-pthreads -I../.. -I../../src/slon -o slon slon.o runtime_config.o 
local_listen.o remote_listen.o remote_worker.o sync_thread.o 
monitor_thread.o cleanup_thread.o scheduler.o dbutils.o conf-file.o 
confoptions.o misc.o ../parsestatements/scanner.o -D_REENTRANT -pthreads 
-L/opt/postgres/9.1-pgdg/lib/64/ -L/opt/postgres/9.1-pgdg/lib/64/ -lpq 
-lsocket -R/opt/postgres/9.1-pgdg/lib/64/
Undefined                       first referenced
  symbol                             in file
PQisthreadsafe                      slon.o
ld: fatal: symbol referencing errors. No output written to slon
collect2: ld returned 1 exit status
make[2]: *** [slon] Error 1




> I have been trying to compile slony1-2.1.1 on solaris 10 but fails.
> I got this error on make: "gcc: unrecognized option `-pthread'"  So I
> removed the -pthread from the configure file
> Now getting:
>
> misc.c: In function `slon_log':
> misc.c:183: warning: int format, pid_t arg )arg 3)
> misc.c: In function `slon_scanint64'
> misc.c 268 warning: integer constant is too large for "long" type
>
> OS = Solaris 10
> slony = slony1-2.1.1
> GCC = 3.4.6
> Postgres = 9.1.2
>
>      0___      Wolfgang Schwurack
>     c/  /'_    SA/DBA - UEN
>    (*)  \(*)   801-587-9444
>                wolf at uen.org
>
>
> _______________________________________________
> Slony1-general mailing list
> Slony1-general at lists.slony.info
> http://lists.slony.info/mailman/listinfo/slony1-general
>



More information about the Slony1-general mailing list