clang and postgresql90

Dimitry Andric dim at FreeBSD.org
Sun Apr 3 22:47:16 UTC 2011


On 2011-04-03 20:15, Christer Solskogen wrote:
> I'm just wondering if anyone else has trouble compiling postgresql90
> with clang. I get this (and I cant seem to find anything online that
> somebody else had that same problem):
...
> libpq/auth.o: In function `ClientAuthentication':
> auth.c:(.text+0x51e): undefined reference to `gss_accept_sec_context'
> auth.c:(.text+0x5c7): undefined reference to `gss_release_buffer'
...

This error is not related to clang, but a problem with postgresql's
configure script, in combination with the updated binutils in the base
system.  You will get the same error if you use gcc.

Patch:
http://www.andric.com/freebsd/binutils/bu217-databases-postgresql90-server-1.diff

Similar one for postgres 8.4:
http://www.andric.com/freebsd/binutils/bu217-databases-postgresql84-server-1.diff


More information about the freebsd-ports mailing list