cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Error Compiling Curl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 8 Mar 2002 11:05:34 +0100 (MET)

On Thu, 7 Mar 2002, Victor wrote:

> (I am now using 7.9.5)

> gcc -DHAVE_CONFIG_H -I../include -I../lib -I../lib -I/usr/include/openssl -I
> /usr/include -g -O2 -c formdata.c -MT formdata.lo -MD -MP -MF
> .deps/formdata.TPlo -fPIC -DPIC -o .libs/formdata.lo
> formdata.c: In function `GetStr':
> formdata.c:146: warning: assignment makes pointer from integer without a
> cast

This is still Solaris 2.8 isn't it?

Why don't your include files have a strdup() prototype? That seems very
strange. My Solaris man page says it is in string.h, and my Solaris compiles
never complain on this (and I always build with a lot stricter compiler flags
than you did here).

[many strdup()-related warnings cut off]

> formdata.c: In function `curl_formadd':
> formdata.c:924: `__builtin_va_alist' undeclared (first use in this function)

Another issue. This is supposed to not happen when we include <stdarg.h>, as
that should make the va_* functions "just work".

As they don't, I think it leans towards that you have a problem with your
include files or your compiler.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-03-08