LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Can't compile postgresql with kerberos support (https://www.linuxquestions.org/questions/slackware-14/cant-compile-postgresql-with-kerberos-support-850354/)

Linux.tar.gz 12-15-2010 04:12 AM

Can't compile postgresql with kerberos support
 
Hi, i used slackbuilds.

I built kerberos, and added --with-krb5 to the postgresql build.

It failed with this error :
configure: error: could not find function 'krb5_sendauth' required for Kerberos 5

Googled around, some people have this problem, but no answer...

Tinkster 12-17-2010 06:42 PM

This begs the question:

Which kerberos did you install, and how did you go about it?

Just for the heck of it I downloaded and installed krb5-1.8.3
on my Slackware64 machine, and then compiled postgresql-8.4.5
and 9.0.2 against it w/o any problems.


Cheers,
Tink

sysslack 12-18-2010 07:18 AM

Hi
check first that you have all dependencies installed.
I checked and installed the krb5-devel package and got rid of your error.
This is the package I have installed:
krb5-workstation
krb5-libs
pam_krb5
krb5-auth-dialog
krb5-devel
Then Try this
root@localhost postgresql-7.4.28]# ./configure --with-krb5 --with-includes=/usr/include/et

Good Luck!

Tinkster 12-18-2010 02:48 PM

Quote:

Originally Posted by sysslack (Post 4195766)
Hi
check first that you have all dependencies installed.
I checked and installed the krb5-devel package and got rid of your error.
This is the package I have installed:
krb5-workstation
krb5-libs
pam_krb5
krb5-auth-dialog
krb5-devel
Then Try this
root@localhost postgresql-7.4.28]# ./configure --with-krb5 --with-includes=/usr/include/et

Good Luck!


Where did those come from? :} They're not part of slackware.


Cheers,
Tink

sysslack 12-20-2010 02:55 AM

Sorry for being unclear on this point!
No they are part of centos, but I compiled from source trying to reproduce your error and it seems like the flag:
PHP Code:

 --with-includes=/usr/include/et 

is the flag to add to get rid of error below:
You have to check for similar package for slackware, and especially the develeopment packages.
PHP Code:

./configure --with-krb5
checking krb5
.h presence... yes
checking 
for krb5.h... yes
checking com_err
.h usability... no
checking com_err
.h presence... no
checking 
for com_err.h... no
configure
errorheader file <com_err.his required for Kerberos 5 

If the header is somewhere else try:
PHP Code:

find / -name com.err.and change  --with-includes=/path_to_your_headers 

and this packages should also include getting rid of your error:
PHP Code:

configureerrorcould not find function 'krb5_sendauth' required for Kerberos 5 


Hope this helps

Linux.tar.gz 01-03-2011 07:18 AM

Ok, thanks all, i'll try to take a look soon.


All times are GMT -5. The time now is 07:32 AM.