Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111639 - dev-lang/php-5* does not build when heimdal satisfies virtual/krb5 dependency
Summary: dev-lang/php-5* does not build when heimdal satisfies virtual/krb5 dependency
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-05 16:04 UTC by Jason Wever (RETIRED)
Modified: 2006-01-18 07:45 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Wever (RETIRED) gentoo-dev 2005-11-05 16:04:40 UTC
When heimdal satisfies the virtual/krb5 dependency, dev-lang/php-5* fails to
build with the following error;

checking for IMAP support... yes, shared
checking for IMAP Kerberos support... /usr
checking for IMAP SSL support... yes
checking for pam_start in -lpam... yes
checking for crypt in -lcrypt... yes
checking whether build with IMAP works... no
configure: error: build test failed. Please check the config.log for details.

Presumably this is due to having kerberos and imap use flags enabled.  Looking
at the config.log file, the error is as follows;

configure:59598: checking whether build with IMAP works
configure:59641: gcc -o conftest -mcpu=ultrasparc -mtune=ultrasparc -O2 -pipe 
-L/usr/lib  -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib conftest.c  -lc-client
-lcrypt -lpam  -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -ldl
-lt1 -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -ldb-4.0 -lresolv -lm -ldl -lnsl 
-lxml2 -lz -lm -lxml2 -lz -lm >&5                                              
      
/usr/lib/gcc/sparc-unknown-linux-gnu/3.4.4/../../../../sparc-unknown-linux-gnu/bin/ld:
cannot find -lgssapi_krb5                                               
collect2: ld returned 1 exit status
configure:59644: $? = 1 
configure: program exited with status 1

The problem here is that heimdal doesn't provide a libgssapi_krb5.so library,
nor a libk5crypto.so library, so this test will fail on both of those counts.  I
haven't looked into this much, but my guess is that either the autoconf stuff
needs to be updated to account for heimdal or the virtual/krb5 dependency needs
to be changed to mit-krb5 (which does work in this situation)
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-11-05 16:13:04 UTC
There's also another problem w/ heimdal (Bug 103459); kerberos herd, some ideas
here? Looks like changing the deps to mit-krb5 would solve both, if another
solution cannot be find.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-11-06 13:37:07 UTC
Uhm OK, seems like dupe of Bug 46768, did the patch got lost?
Comment 3 Luca Longinotti (RETIRED) gentoo-dev 2006-01-04 03:31:21 UTC
This is fixed in the new dev-lang/php revisions.
Best regards, CHTEKK.
Comment 4 Jason Wever (RETIRED) gentoo-dev 2006-01-05 10:59:14 UTC
So the problem is half-fixed.  PHP is no longer looking for -lgssapi_krb5.  However as mentioned in the initial comments, it is still looking for a libk5crypto.so which heimdal does not provide.
Comment 5 Luca Longinotti (RETIRED) gentoo-dev 2006-01-18 07:45:44 UTC
The requirement of libk5crypto.so has been deleted now, if you use Heimdal. I was now able to compile and successfully run dev-lang/php on a Heimdal system, so this should be finally fixed.
Best regards, CHTEKK.