cURL / Mailing Lists / curl-library / Single Mail


possible problem with curl-config

From: Dennis Clarke <>
Date: Mon, 25 Feb 2013 11:23:56 -0500

I ran into problems trying to build php with the latest curl/libcurl release.

The whole thread is here :

sure enough I check curl-config :

$ which curl-config

$ curl-config --cflags

$ 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'

Not sure what curl-config --cflags should return but the script does not look to reply with cflags at all :

        if test "X$cppflag_curl_staticlib" = "X-DCURL_STATICLIB"; then
        if test "X${prefix}/include" = "X/usr/include"; then
          echo "$CPPFLAG_CURL_STATICLIB"
          echo "${CPPFLAG_CURL_STATICLIB}-I${prefix}/include"

However the "--configure" option does reply with CFLAGS :

      echo " '--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'"

Should curl-config --cflags not reply with the actual CFLAGS ?


List admin:
Received on 2013-02-25