php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25774 Problems with libcurl + kerberos
Submitted: 2003-10-07 06:14 UTC Modified: 2003-10-08 09:54 UTC
From: maido at net-style dot it Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.4RC1 OS: Linux Redhat 8.0
Private report: No CVE-ID: None
 [2003-10-07 06:14 UTC] maido at net-style dot it
Description:
------------
Compilation with the following configure line went perfectly ok with versions prior to 4.3.4RC4:

./configure  --with-mysql=/usr/local/mysql --enable-track-var --with-zlib --enable-ftp --with-gd --with-jpeg-dir=/usr/include --with-png-dir=/usr/include --with-zlib-dir=/usr/include --with-freetype --with-curl --enable-sockets --with-apxs2=/usr/apache2/bin/apxs

With version 4.3.4RC4 I get a compile error, listed below.

My libraries:
openssl-0.9.7a
curl-7.9.8-1
krb5-libs-1.3.1-6

Reproduce code:
---------------
n/a

Expected result:
----------------
I would expect a proper compilation

Actual result:
--------------
This is a snapshot of my config.log

configure:20468: checking for curl_easy_perform in -lcurl
configure:20487: gcc -o conftest -g -O2   -lcurl -lssl -lcrypto -ldl conftest.c -lcurl  -lcurl -lz -lresolv -lm -ldl -lnsl  -lcurl -lssl -lcrypto -ldl 1>&5
/usr/lib/libgssapi_krb5.so.2: undefined reference to `add_error_table'
/usr/lib/libgssapi_krb5.so.2: undefined reference to `remove_error_table'
collect2: ld returned 1 exit status
configure: failed program was:
#line 20476 "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 curl_easy_perform();

int main() {
curl_easy_perform()
; return 0; }

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-07 06:17 UTC] maido at net-style dot it
Of course I'm referring to version 4.3.4RC1, not 4.3.4RC4, my apologies...
 [2003-10-07 06:19 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Not 100% sure but I think this is fixed already.

 [2003-10-07 09:11 UTC] maido at net-style dot it
Nothing to do, the problem is still there with the latest CVS snapshot
 [2003-10-07 18:39 UTC] sniper@php.net
So if you take the PHP 4.3.3 release package and build that, it compiles with the exact same configure line just fine?

btw. Do you really have zlib/png installed in /usr/include ??
(I doubt it, you should be using /usr for those options)

 [2003-10-08 06:00 UTC] maido at net-style dot it
Yep i have the zlib there, anyway since I was the only one esperienced the error, I'm looking forward to complete a total system revision, maybe the problem is hidden somewhere in some related library package... I _hate_ rpms libs *sigh*
 [2003-10-08 06:49 UTC] sniper@php.net
Reinstall the ssl rpms and it should work fine.
If not, check the output of:

# ldd /usr/lib/libgssapi_krb5.so.2

It's the one missing some lib there.
Check also /etc/ld.so.conf that it has all the necessary
paths..and run # /sbin/ldconfig just in case.

 [2003-10-08 09:54 UTC] maido at net-style dot it
Ok I just finished upgrading my system to Redhat 9.0, and now it all seem to work perfectly.
I double checked everything before sending the report but evidently I still was missing something.
My sincere apologies, first time I try to help the open source community and I do such a bad work...
Keep up the excellent work anyway and thank you for your help!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Aug 18 21:01:28 2024 UTC