Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Nov 2001 19:10:02 -0800 (PST)
From:      Palle Girgensohn <girgen@partitur.se>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/30604: postgresql7 doesn't build with kerberos5
Message-ID:  <200111150310.fAF3A2i40098@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/30604; it has been noted by GNATS.

From: Palle Girgensohn <girgen@partitur.se>
To: freebsd-gnats-submit@FreeBSD.org
Cc: sean@chittenden.org, Tom Hukins <tom@FreeBSD.org>
Subject: Re: ports/30604: postgresql7 doesn't build with kerberos5
Date: 15 Nov 2001 03:05:18 +0100

 Hi!
 
 Sorry for the long delay, I actually forgot about this. Could you
 please try the attached patch? It seems to work for me, only I have no
 Kerberos to test it with. Configure gets the idea and fails for me
 since Kerberos cannot be found, which seems OK :)
 
 The exists() in make take a *file* as an argument, and searches for it
 in the system path. Hence, looking for /usr/local doesn't seem to
 work, so skipping it seems easiest...
 
 Here's how configure reacts:
 
 configure:4316: checking for krb5_encrypt in -lk5crypto
 configure:4335: cc -o conftest -O -pipe    -I/usr/local/include   -L/usr/local/lib conftest.c -lk5crypto  -lcom_err -lz -lcrypt -lcompat -lm -lutil -lreadline  1>&5
 /usr/libexec/elf/ld: cannot find -lk5crypto
 configure: failed program was:
 #line 4324 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
     builtin and then its argument prototype would still apply.  */
 char krb5_encrypt();
 
 int main() {
 krb5_encrypt()
 ; return 0; }
 (end of "config.log")
 *** Error code 1
 
 
 Index: configure.postgresql
 ===================================================================
 RCS file: /home/ncvs/ports/databases/postgresql7/scripts/configure.postgresql,v
 retrieving revision 1.7
 diff -u -r1.7 configure.postgresql
 --- configure.postgresql	2001/06/13 14:37:45	1.7
 +++ configure.postgresql	2001/11/15 01:59:36
 @@ -270,8 +270,8 @@
  		echo KRB5_HOME=\"$1\" >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
  	fi
  	cat <<-EOF >> ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
 -		.if defined(KRB5_HOME) && exists(\${KRB5_HOME})
 -		CONFIGURE_KRB=	--with-krb5=\${KRB5_HOME}
 +		.if defined(KRB5_HOME)
 +		CONFIGURE_ARGS=	--with-krb5=\${KRB5_HOME}
  		.endif
  
  	EOF

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111150310.fAF3A2i40098>