From:             andreas at conectiva dot com dot br
Operating system: Linux
PHP version:      4.3.2
PHP Bug Type:     Compile Failure
Bug description:  auth_gssapi_valid undefined

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).



-- 
Edit bug report at http://bugs.php.net/?id=24149&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24149&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24149&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24149&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24149&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24149&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24149&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24149&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24149&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24149&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24149&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24149&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24149&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24149&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24149&r=gnused

Reply via email to