cURL / Mailing Lists / curl-library / Single Mail

curl-library

Is this a bug in the configure script?

From: Dantzler, DeWayne C <dewayne.c.dantzler_at_boeing.com>
Date: Wed, 21 Oct 2009 19:27:02 -0700

Attempting to compile libcurl with Xereces-C++ and got a compiler error that curl.h could not find include file 'curl/curlbuild.h'.

(1) I did an ll on the ll ./include/curl/
total 292
-rw-r--r-- 1 dcd9420 ddpsdev 72113 Oct 21 17:16 curl.h
-rw-r--r-- 1 dcd9420 ddpsdev 7151 Oct 21 17:16 curlbuild.h
-rw-r--r-- 1 dcd9420 ddpsdev 8419 Oct 21 17:16 curlrules.h
-rw-r--r-- 1 dcd9420 ddpsdev 2799 Oct 21 17:16 curlver.h
-rw-r--r-- 1 dcd9420 ddpsdev 3526 Oct 21 17:16 easy.h

(2) found that the curl.h had the following preprocessor include statement
#include "curlver.h" /* libcurl version defines */
#include "curl/curlbuild.h" /* libcurl build definitions */
#include "curlrules.h" /* libcurl rules enforcement */

(3)Modified curl.h as follows to get the build to work
#include "curlver.h" /* libcurl version defines */
/*#include "curl/curlbuild.h" /* libcurl build definitions */
#include "curlbuild.h" /* libcurl build definitions */
#include "curlrules.h" /* libcurl rules enforcement */

Did the configure script generate an incorrect include statement or was it the install?

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-10-22