On Sunday 21 January 2007 04:38, openbsd neophyte wrote:
> i've followed the following tutorial verbatim:
>
> http://www.kernel-panic.it/openbsd/proxy/proxy6.html
>
> i've tried using squidclamav 2.4 because any newer version doesn't
> have the regex lib, and i've also tried squidclamav 3.0 and skipped
> the regex section, but with both options, i get the following error:
>
> i tried copying curl.h into a separate curl directory within the
> squidclamav directory, but that doesn't seem to fix anything.
>
> this is an Ultra 5 running OpenBSD 4.0.
>
> below is the make output:
>
> # make
> gcc -c squidclamav.c            -O3 -Wall -funroll-loops
> -fno-builtin-log squidclamav.c: In function `load_in_buff':
> squidclamav.c:110: warning: int format, different type arg (arg 3)
> gcc -c main.c           -O3 -Wall -funroll-loops -fno-builtin-log
> main.c:67:23: curl/curl.h: No such file or directory
> main.c: In function `main':
> main.c:157: error: `CURL' undeclared (first use in this function)
> main.c:157: error: (Each undeclared identifier is reported only once
> main.c:157: error: for each function it appears in.)
> main.c:157: error: `eh' undeclared (first use in this function)
> main.c:160: error: `CURL_ERROR_SIZE' undeclared (first use in this
> function) main.c:231: warning: implicit declaration of function
> `curl_global_init' main.c:231: error: `CURL_GLOBAL_ALL' undeclared
> (first use in this function) main.c:233: warning: implicit
> declaration of function `curl_easy_init' main.c:236: warning:
> implicit declaration of function `curl_global_cleanup' main.c:243:
> warning: implicit declaration of function `curl_easy_setopt'
> main.c:243: error: `CURLOPT_WRITEFUNCTION' undeclared (first use in
> this function)
> main.c:245: error: `CURLOPT_ERRORBUFFER' undeclared (first use in
> this function)
> main.c:247: error: `CURLOPT_TIMEOUT' undeclared (first use in this
> function) main.c:249: error: `CURLOPT_NOSIGNAL' undeclared (first use
> in this function)
> main.c:251: error: `CURL_HTTP_VERSION_1_0' undeclared (first use in
> this function)
> main.c:256: error: `CURLOPT_FAILONERROR' undeclared (first use in
> this function)
> main.c:261: error: `CURLOPT_FOLLOWLOCATION' undeclared (first use in
> this function)
> main.c:263: error: `CURLOPT_MAXREDIRS' undeclared (first use in this
> function)
> main.c:319: error: `CURLOPT_PROXY' undeclared (first use in this
> function) main.c:321: error: `CURLOPT_URL' undeclared (first use in
> this function) main.c:323: error: `CURLOPT_NOBODY' undeclared (first
> use in this function) main.c:326: warning: implicit declaration of
> function `curl_easy_perform' main.c:342: warning: implicit
> declaration of function `curl_easy_getinfo' main.c:342: error:
> `CURLINFO_CONTENT_LENGTH_DOWNLOAD' undeclared (first use in this
> function)
> main.c:343: error: `CURLE_OK' undeclared (first use in this function)
> main.c:356: error: `CURLINFO_CONTENT_TYPE' undeclared (first use in
> this function)
> main.c:472: error: `CURLOPT_HTTPGET' undeclared (first use in this
> function) main.c:160: warning: unused variable `err'
> *** Error code 1

curl will normally install into /usr/local, which means it's header 
files (including curl.h) will normall go into /usr/local/include/curl

If you don't have a /usr/local/include/curl directory with the requested 
header file, then you did not install it or it failed to install 
properly.

The ./configure process of autotools "should" figure out where to look 
for headers (i.e. /usr/include, /usr/local/include, and so on). It will 
create the needed "-I" statements so the compiler knows where to look 
for included files.


-- 
cd ~.   -Almost Home

Reply via email to