Re: Intalling PHP 4.3.7 with PGSQL support and Heimdal

From: Date: Sun, 06 Jun 2004 21:37:48 +0000
Subject: Re: Intalling PHP 4.3.7 with PGSQL support and Heimdal
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-187759@lists.php.net to get a copy of this message
On Sun, 2004-06-06 at 16:49, Marek Kilimajer wrote: > Robert Fitzpatrick wrote: > > Trying to portupgrade my PHP 4.3.6 package with PostgreSQL 7.4.2 support and getting this > > error below. Trying to setup postgresql with Heimdal Kerberos 5 support, believe I have, but not > > tried anything with it, yet. > > > > /usr/local/lib/libpq.so: undefined reference to `krb5_cc_get_principal' > > /usr/local/lib/libpq.so: undefined reference to `krb5_sname_to_principal' > > /usr/local/lib/libpq.so: undefined reference to `krb5_cc_default' > > /usr/local/lib/libpq.so: undefined reference to `krb5_cc_close' > > /usr/local/lib/libpq.so: undefined reference to `error_message' > > /usr/local/lib/libpq.so: undefined reference to `krb5_free_error' > > /usr/local/lib/libpq.so: undefined reference to `krb5_sendauth' > > /usr/local/lib/libpq.so: undefined reference to `krb5_free_principal' > > /usr/local/lib/libpq.so: undefined reference to `krb5_unparse_name' > > /usr/local/lib/libpq.so: undefined reference to `krb5_free_context' > > /usr/local/lib/libpq.so: undefined reference to `krb5_init_context' > > *** Error code 1 > > > > Stop in /usr/ports/lang/php4/work/php-4.3.7. > > > > I've posted this around a few weeks ago on some lists and still no success. I had a > > suggestion to add lines to the spec file, but not sure which file that is. Seems PHP is having a > > problem with the PGSQL support and its libraries for krb5. Nonetheless, from the looks of the > > Makefile for postgresql, everything should be there for it to build with krb5 support. I receive no > > errors when building or installing posgresql with heimdal support and have tried 'make > > deinstall' and 'make reinstall'. I have the WITH_HEIMDAL_KRB5, HEIMDAL_HOME is set to > > /usr/local where it resides with libs and includes. Someone also suggested adding a -lkrb5, but > > again, I have not been able to figure out where to place this setting in the file. Should I add it > > to the line that produces the error building PHP above (I think the libtool command) or in the > > postgresql Makefile. > > > > Add -lkrb5 to LDFLAGS variable in the Makefile. Thanks, I tried and it doesn't seem to help. This is in the Makefile now. I am trying this when building PostgreSQL, do the links shown in my last post to psql show the libs are setup correctly after installation of PostgreSQL? I have WITH_HEIMDAL_KRB5 set to 'yes' and /usr/bin/krb5-config is a symlink to /usr/local/bin/krb5-config which has the correct locations for libs and includes. .if defined(WITH_HEIMDAL_KRB5) KRB5CONF= /usr/bin/krb5-config WITH_KRB5= yes .endif .include <bsd.port.pre.mk> .if defined(WITH_KRB5) CONFIGURE_ARGS+= --with-krb5="${KRB5CONF} --prefix krb5" LDFLAGS+= ${KRB5CONF} --libs krb5 CONFIGURE_ENV= LDFLAGS="${LDFLAGS}" .endif That should set things up, but if I add LDFLAGS+=-lkrb5, I get an error. > > And please don't crosspost Sorry, won't do. -- Robert

« previous php.general (#187759) next »