From: | Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: uuids on freebsd |
Date: | 2008-12-18 12:59:18 |
Message-ID: | 877i5x7i6x.fsf@news-spur.riddles.org.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
>>>>> "Peter" == Peter Eisentraut <peter_e(at)gmx(dot)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)
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2008-12-18 13:13:55 | Re: Latest version of Hot Standby patch |
Previous Message | Heikki Linnakangas | 2008-12-18 12:51:42 | Re: Preventing index scans for non-recoverable index AMs |