Re: PHP 5.4.12 and libcurl 7.29.0 configure problem

From: Date: Mon, 25 Feb 2013 14:08:48 +0000
Subject: Re: PHP 5.4.12 and libcurl 7.29.0 configure problem
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-66189@lists.php.net 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. Yep. I looked at that too. Thought it was obscure but okay, workable I guess. > 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. Everything here is -m64 and -xtarget=ultraT2 so not sure where else to look. dc

« previous php.internals (#66189) next »