Bug 88098 - Unable to build postgresql-contrib when postgresql-server built with kerb5
Summary: Unable to build postgresql-contrib when postgresql-server built with kerb5
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Palle Girgensohn
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-27 22:30 UTC by darcy
Modified: 2005-11-15 00:13 UTC (History)
0 users

See Also:


Attachments
file.diff (529 bytes, patch)
2005-10-27 22:30 UTC, darcy
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description darcy 2005-10-27 22:30:21 UTC
cc -O -pipe -march=k8 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wold-style-definition -Wendif-labels -fno-strict-aliasing dbf.o dbf2pg.o endian.o -L../../src/port -lpgport -L../../src/interfaces/libpq -lpq -L../../src/port -rpath=/usr/lib:/usr/local/lib -L/usr/local/lib  -L/usr/local/lib -Wl,-R/usr/local/lib -lpgport -lssl -lcrypto -lz -lreadline -lcrypt -lcompat -lm -lutil  -o dbf2pg
/usr/lib/libkrb5.so.7: undefined reference to `length_PA_ENC_TS_ENC'
/usr/lib/libkrb5.so.7: undefined reference to `length_KDC_REQ_BODY'
/usr/lib/libkrb5.so.7: undefined reference to `free_Principal'
/usr/lib/libkrb5.so.7: undefined reference to `bswap16'
/usr/lib/libkrb5.so.7: undefined reference to `length_EncKrbCredPart'
/usr/lib/libkrb5.so.7: undefined reference to `copy_Realm'
/usr/lib/libkrb5.so.7: undefined reference to `strlwr'
/usr/lib/libkrb5.so.7: undefined reference to `length_TGS_REQ'
..........

How-To-Repeat: Build postgresql 8 server with kerb5, then try to install postgresql-contrib, you will get undefined refrences to kerb5
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2005-10-27 22:56:49 UTC
Responsible Changed
From-To: freebsd-ports-bugs->girgen

Over to maintainer
Comment 2 Palle Girgensohn freebsd_committer freebsd_triage 2005-11-15 00:02:29 UTC
State Changed
From-To: open->closed

While the suggested fix solves the problem for linking  
postgresql-contrib with postgresql, many other ports still fail 
to link when libpq.so is linked with the base heimdal installation. 
I've fixed most postgresql + Kerberos related problems, including 
the one described here, by always depending on one of the Kerberos 
ports when linking postgresql with Kerberos.