Re: [PHP] Intalling PHP 4.3.7 with PGSQL support and Heimdal

2004-06-07 Thread Robert Fitzpatrick
On Sun, 2004-06-06 at 17:48, Marek Kilimajer wrote:
> Robert Fitzpatrick wrote:
> > 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 
> > .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.
> > 
> 
> 
> Is /usr/local/lib in /etc/ld.so.conf file?

No, there is no such file. But this is not Linux, FreeBSD Unix 5.2.1.

-- 
Robert

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Intalling PHP 4.3.7 with PGSQL support and Heimdal

2004-06-06 Thread Marek Kilimajer
Robert Fitzpatrick wrote:
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 
.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.

Is /usr/local/lib in /etc/ld.so.conf file?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Intalling PHP 4.3.7 with PGSQL support and Heimdal

2004-06-06 Thread Robert Fitzpatrick
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 
.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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Intalling PHP 4.3.7 with PGSQL support and Heimdal

2004-06-06 Thread Marek Kilimajer
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.
And please don't crosspost
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Intalling PHP 4.3.7 with PGSQL support and Heimdal

2004-06-06 Thread Robert Fitzpatrick
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.

esmtp# ldd /usr/local/bin/psql
/usr/local/bin/psql:
libpq.so.3 => /usr/local/lib/libpq.so.3 (0x28096000)
libkrb5.so.20 => /usr/local/lib/libkrb5.so.20 (0x280b2000)
...

Anyone know where I can make these changes needed or what to try next?

--
Robert