Re: [GENERAL] Explicit LOAD and dynamic library loading

2013-06-13 Thread Tom Lane
Stephen Scheck writes: > One thing that's still a bit confusing, though ... I build the extensions > in my own home dir, which results in the rpath getting set like > this: -Wl,-rpath,'/vol/data/home/sscheck/sandbox/postgresql-9.2.4-build/lib' Hm, it should be .../lib under whatever you configure

Re: [GENERAL] Explicit LOAD and dynamic library loading

2013-06-13 Thread Stephen Scheck
I modified the Makefile a bit and it all works now: MODULES = foo MODULE_big = bar OBJS = bar.o foo.so EXTENSION = foo bar One thing that's still a bit confusing, though ... I build the extensions in my own home dir, which results in the rpath getting set like this: -Wl,-rpath,'/vol/data/home/ssc

Re: [GENERAL] Explicit LOAD and dynamic library loading

2013-06-13 Thread Tom Lane
Stephen Scheck writes: > [postgres@dev1 lib]$ ldd bar.so > linux-vdso.so.1 => (0x7fff1c7ff000) > libc.so.6 => /lib64/libc.so.6 (0x7fa4c96ac000) > /lib64/ld-linux-x86-64.so.2 (0x7fa4c9c5d000) So you're missing any reference to foo.so; not surprising it fails. Y

Re: [GENERAL] Explicit LOAD and dynamic library loading

2013-06-12 Thread Stephen Scheck
Tom, Not sure what you mean by "oid" system: [postgres@dev1 lib]$ uname -a Linux dev1 2.6.35.14-106.fc14.x86_64 #1 SMP Wed Nov 23 13:07:52 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux [postgres@dev1 lib]$ ldd bar.so linux-vdso.so.1 => (0x7fff1c7ff000) libc.so.6 => /lib64/libc.so.

Re: [GENERAL] Explicit LOAD and dynamic library loading

2013-06-12 Thread Tom Lane
Stephen Scheck writes: > However, whenever I run one of the UDTs defined in bar, I get this error > message: > dev=# SELECT * FROM test1 WHERE (info(bar_dat)).some_prop = 10; > ERROR: could not load library > "/vol/data/home/postgres/pg-builds/9.2.4/lib/bar.so": > /vol/data/home/postgres/pg-buil