Re: uuids on freebsd - Mailing list pgsql-hackers

From Andrew Gierth
Subject Re: uuids on freebsd
Date
Msg-id 87ocz95xxw.fsf@news-spur.riddles.org.uk
Whole thread Raw
In response to uuids on freebsd  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
List pgsql-hackers
>>>>> "Andrew" == Andrew Gierth <andrew@tao11.riddles.org.uk> writes:
Andrew> I get a segfault too if I force misc/ossp-uuid to build withAndrew> -fPIC:[...]Andrew> I can try this on
anotherbox with a debug-enabled pg buildAndrew> later.
 

The problem, unsurprisingly, is that the call to uuid_create in
contrib/uuid-ossp.c ends up resolving to the libc function rather than
to the ossp libuuid.a one. Since the functions do completely different
things, hilarity ensues.

It can apparently be made to work by jumping through enough flaming
hoops: you have to build misc/ossp-uuid with CFLAGS=-fPIC, and then
build contrib/uuid-ossp with LDFLAGS_SL=-Wl,-Bsymbolic (but I think
this would break again if misc/ossp-uuid ever installed a .so rather
than just the .a). So I don't think this is a realistic fix.

-- 
Andrew (irc:RhodiumToad)


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Preventing index scans for non-recoverable index AMs
Next
From: Simon Riggs
Date:
Subject: Re: Latest version of Hot Standby patch