>>>>> "Peter" == Peter Eisentraut <pete...@gmx.net> writes:

 > Andrew Gierth wrote:
 >> Has anyone ever managed to get uuid generation working on FreeBSD?
 >> There seems to be no way to build contrib/uuid-ossp successfully,
 >> and no apparent agreement anywhere as to whether this is problem
 >> with pg or with the misc/ossp-uuid port.

 Peter> So what's the problem?  Error messages etc.?

On my system (7.1-pre on amd64), it refuses to link (presumably due to
the misc/ossp-uuid port building the .a without -fPIC). The guy whose
report on IRC caused me to look into it had a very similar system, but
in his case the module did link, but segfaulted the backend if called.

I get a segfault too if I force misc/ossp-uuid to build with -fPIC:

test=# select uuid_generate_v1();
server closed the connection unexpectedly

(gdb) where
#0  0x000000087d404fb5 in uuid_export () from 
/usr/local/lib/postgresql/uuid-ossp.so
#1  0x000000087d40598a in uuid_make () from 
/usr/local/lib/postgresql/uuid-ossp.so
#2  0x000000087d4031d8 in uuid_nil () from 
/usr/local/lib/postgresql/uuid-ossp.so
#3  0x0000000000556cf9 in ExecMakeFunctionResult ()

I can try this on another box with a debug-enabled pg build later.

-- 
Andrew (irc:RhodiumToad)

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to