php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24149 auth_gssapi_valid undefined
Submitted: 2003-06-12 09:20 UTC Modified: 2003-06-12 09:59 UTC
From: andreas at conectiva dot com dot br Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.2 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: andreas at conectiva dot com dot br
New email:
PHP Version: OS:

 

 [2003-06-12 09:20 UTC] andreas at conectiva dot com dot br
Description:
------------
The imap package from the University of Washington (which includes the infamous c-client lib used by php) does not define "auth_gssapi_valid" in any of its header files.

PHP-4.3.2 started testing this symbol in the ./configure stage. The conftest.c program defines a dummy auth_gssapi_valid and attempts do compile and link it. Linkage works, because the library does have this symbol, and compiling also works because auth_gssapi_valid is declared in the conftest.c program itself. This makes configure define HAVE_IMAP_AUTH_GSS 1.

Later on, when compiling the imap module, compiling fails, because there is no auth_gssapi_valid definition in any header file. I tried with imap-2002b and imap-2002d (which seems to be the latest stable version from their site).

This is the conftest.c program that configure attempts to build and run. Notice that it declares (wrongly, in fact, it should be a long, but it's enough for a autoconf test) auth_gssapi_valid, so this does compile and link:

#line 36311 "configure"
#include "confdefs.h"

    void mm_log(void){}
    void mm_dlog(void){}
    void mm_flags(void){}
    void mm_fatal(void){}
    void mm_critical(void){}
    void mm_nocritical(void){}
    void mm_notify(void){}
    void mm_login(void){}
    void mm_diskerror(void){}
    void mm_status(void){}
    void mm_lsub(void){}
    void mm_list(void){}
    void mm_exists(void){}
    void mm_searched(void){}
    void mm_expunged(void){}
    char auth_gssapi_valid();
    int main() {
      auth_gssapi_valid();
      return 0;
    }



This is the error:
/bin/sh /storage/andreas/svn/php4/BUILD/php-4.3.2/build-cgi/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/imap/ -I/storage/andreas/svn/php4/BUILD/php-4.3.2/ext/imap/ -DPHP_ATOM_INC -I/storage/andreas/svn/php4/BUILD/php-4.3.2/build-cgi/include -I/storage/andreas/svn/php4/BUILD/php-4.3.2/build-cgi/main -I/storage/andreas/svn/php4/BUILD/php-4.3.2 -I/storage/andreas/svn/php4/BUILD/php-4.3.2/build-cgi/Zend -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/imap -I/usr/lib/krb5/include -I/usr/include/mysql -I/usr/include/postgresql -I/usr/include/pspell -I/storage/andreas/svn/php4/BUILD/php-4.3.2/main -I/storage/andreas/svn/php4/BUILD/php-4.3.2/Zend -I/storage/andreas/svn/php4/BUILD/php-4.3.2/TSRM  -I/storage/andreas/svn/php4/BUILD/php-4.3.2/build-cgi/TSRM  -O2 -march=i386 -mcpu=pentiumpro -fPIC  -prefer-pic -c /storage/andreas/svn/php4/BUILD/php-4.3.2/ext/imap/php_imap.c -o ext/imap/php_imap.lo 
/storage/andreas/svn/php4/BUILD/php-4.3.2/ext/imap/php_imap.c: In function `zm_startup_imap':
/storage/andreas/svn/php4/BUILD/php-4.3.2/ext/imap/php_imap.c:428: error: `auth_gss' undeclared (first use in this function)
/storage/andreas/svn/php4/BUILD/php-4.3.2/ext/imap/php_imap.c:428: error: (Each undeclared identifier is reported only once
/storage/andreas/svn/php4/BUILD/php-4.3.2/ext/imap/php_imap.c:428: error: for each function it appears in.)
make: ** [ext/imap/php_imap.lo] Erro 1

The fix? I don't know. Maybe auth_gssapi_valid is not supposed to be tested this way, maybe uw-imap is broken (wouldn't be surprising).



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-12 09:40 UTC] andreas at conectiva dot com dot br
I guess I made some confusion, but the build problem remains. I confused auth_gss with auth_gssapi_valid. I'll check the build process of uw-imap now and see why it didn't add the auth_gss AUTHENTICATOR to my linkage.h header file like it did with the others.
 [2003-06-12 09:59 UTC] andreas at conectiva dot com dot br
It turned out to be a build problem with my c-client library, sorry. I'm closing this.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 24 05:01:32 2024 UTC