Re: PHP 5.4.12 and libcurl 7.29.0 configure problem

From: Date: Mon, 25 Feb 2013 16:13:14 +0000
Subject: Re: PHP 5.4.12 and libcurl 7.29.0 configure problem
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Mon, 2013-02-25 at 10:49 -0500, Dennis Clarke wrote:
> 
> /* The size of `long', as computed by sizeof. */
> #define CURL_SIZEOF_LONG 8
> 
This is correct with -m64. Now in your config log there is this compiler
call (quoting your first mail from this thread)

| configure:28678: checking for openssl support in libcurl
| configure:28705: /opt/solarisstudio12.3/bin/cc -o conftest -I/usr/local/include
| -I/usr/local/include -I/usr/local/ssl/include -I/opt/mysql/mysql/include -D_TS_E
| RRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -D_POSIX_PTHREAD_SEMANTICS
|  -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT  -R/usr/ucblib -L/usr/ucblib -R/usr/loc
| al/lib -L/usr/local/lib -R/usr/local/ssl/lib -L/usr/local/ssl/lib conftest.c -lc
| url -lbz2 -lz -lrt -lm -lnsl -lsocket  -lxml2 -lz -liconv -lm -lsocket -lnsl -ls
| sl -lcrypto -lcurl -lidn -lssl -lcrypto -lssl -lcrypto -lldap -lz -lrt -lsocket
| -lnsl >&5

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.

johannes




Thread (11 messages)

« previous php.internals (#66196) next »