Re: PHP 5.4.12 and libcurl 7.29.0 configure problem

From: Date: Mon, 25 Feb 2013 16:16:52 +0000
Subject: Re: PHP 5.4.12 and libcurl 7.29.0 configure problem
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-66198@lists.php.net to get a copy of this message

> So the -m64 is lost. Looking at extg/curl/config.m4, again I see
> 
>     save_CFLAGS="$CFLAGS"
>     CFLAGS="$CURL_CONFIG --cflags"
> 
> So running curl-config --cflags apparently doesn't contain the -m64
> flag on your setup. In my opinion curl-config should return this, so
> there is a curl issue. I don't know whether there is a good work-around
> from PHP-side.

good catch ! 

Let me test that here : 

$ which curl-config   
/usr/local/bin/curl-config
$ curl-config --cflags 
-I/usr/local/include


Well that is broken beyond belief. 

yet this looks fine : 

$ curl-config --configure
 '--enable-shared' '--enable-static' '--with-libidn=/usr/local'
'--enable-tls-srp' '--with-ssl' 'CC=/opt/solarisstudio12.3/bin/cc'
'CFLAGS=-errfmt=error -erroff=%none -errshort=full -xstrconst -xildoff -m64 -xmemalign=8s
-xnolibmil -Xa -xcode=pic32 -xregs=no%appl -xlibmieee -mc -g -xs -ftrap=%none -Qy -xbuiltin=%none
-xdebugformat=dwarf -xunroll=1 -xtarget=ultraT2 -xcache=8/16/4:4096/64/16'
'CPPFLAGS=-I/usr/local/include -I/usr/local/ssl/include -I/opt/mysql/mysql/include -D_TS_ERRNO
-D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE'

odd ... I must go take this up with the curl folks.  

I'll keep you posted if I see a good result.

Thank you for the awesome catch there. 

Dennis 



Thread (11 messages)

« previous php.internals (#66198) next »