ID:               24149
 User updated by:  andreas at conectiva dot com dot br
 Reported By:      andreas at conectiva dot com dot br
-Status:           Open
+Status:           Bogus
 Bug Type:         Compile Failure
 Operating System: Linux
 PHP Version:      4.3.2
 New Comment:

It turned out to be a build problem with my c-client library, sorry.
I'm closing this.


Previous Comments:
------------------------------------------------------------------------

[2003-06-12 09:40:31] 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:20:09] 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).




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24149&edit=1

Reply via email to