Re: PHP 5.4.12 and libcurl 7.29.0 configure problem

From: Date: Mon, 25 Feb 2013 13:03:34 +0000
Subject: Re: PHP 5.4.12 and libcurl 7.29.0 configure problem
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi,

On Mon, 2013-02-25 at 01:58 -0500, Dennis Clarke wrote:
> 
> "/usr/local/include/curl/curlrules.h", line 143: zero or negative
> subscript
> "/usr/local/include/curl/curlrules.h", line 153: zero or negative
> subscript
> "conftest.c", line 249: warning: implicit function declaration:
> strncasecmp
> cc: acomp failed for conftest.c 

looking at my version of curlrules.h I read

        #define CurlchkszEQ(t, s) sizeof(t) == s ? 1 : -1
        
        #define CurlchkszGE(t1, t2) sizeof(t1) >= sizeof(t2) ? 1 : -1
        
        /*
         * Verify that the size previously defined and expected for long
         * is the same as the one reported by sizeof() at compile time.
         */
        
        typedef char
          __curl_rule_01__
            [CurlchkszEQ(long, CURL_SIZEOF_LONG)];  // <-- Line 143

So this is a fancy check for statically checking that sizeof(long) ==
CURL_SIZEOF_LONG. 

So my guess would be that there is some mix between 32 and 64 bit mode,
try compiling with setting CFLAGS="-m64" (or CFLAGS="-m32") for
configure.

johannes




Thread (11 messages)

« previous php.internals (#66184) next »