MapServer / MapServer-import

3 stars 2 forks source link

configure dies with curl 7.15.0 #1504

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: tomkralidis Date: 2005/10/24 - 00:33

I updated to curl 7.15.0, and tried to build:

$ ./configure --with-curl-config=/usr/local/bin/curl-config .......
....
configure: checking for curl-config...
        found libcurl version 7.15.0
configure: error: libcurl version 7.10.1 or more recent is required.

Might be something in file configure, around line 9682.
tbonfort commented 12 years ago

Author: dmorissette Date: 2005/10/24 - 16:05

I'll take this one.
tbonfort commented 12 years ago

Author: dmorissette Date: 2005/10/24 - 16:27

MapServer's configure uses 'curl-config --vernum' which is broken in 7.15.0:
http://curl.haxx.se/mail/lib-2005-10/0072.html

There's a patch at 
http://curl.haxx.se/mail/lib-2005-10/att-0072/vernum.patch

I don't like modifying MapServer to work around a bug in a dependency, 
especially since this will be fixed in the next release oc Curl. This 
will affect all past releases of MapServer as well so we can't patch all 
of them.

Instead, I'll test the curl patch and if it works then include 
instructions in the bug on how to patch/fix curl when compiling it.
tbonfort commented 12 years ago

Author: dmorissette Date: 2005/10/25 - 00:01

Okay, I verified that the curl patch fixes the issue. As mentioned above, I will
not make any change to MapServer for this. Instead, anyone who wishes to use
libcurl 7.15.0 should apply the patch (see attachment) and rebuild libcurl:

$ cd curl-7.15.0
$ patch -i vernum.patch
patching file configure.ac
$ autoconf
$ ./configure
$ make clean
$ make
$ make install

... and then MapServer's configure will see the correct version number.