cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-481259 ] can't compile ftp.c

From: <noreply_at_sourceforge.net>
Date: Tue, 13 Nov 2001 04:13:50 -0800

Bugs item #481259, was opened at 2001-11-13 04:13
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=481259&group_id=976

Category: ftp
Group: portability problem
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: can't compile ftp.c

Initial Comment:
I tried to compile curl 7.9.1 on hp-ux 11.00 but I ran
into problem compiling ftp.c.

Here is the output from cc:
cc: "ftp.c", line 142: warning 604: Pointers are not
assignment-compatible.
cc: "ftp.c", line 142: warning 563: Argument #3 is not
the correct type.
cc: "ftp.c", line 143: warning 604: Pointers are not
assignment-compatible.
cc: "ftp.c", line 143: warning 563: Argument #3 is not
the correct type.
cc: "ftp.c", line 1172: warning 604: Pointers are not
assignment-compatible.
cc: "ftp.c", line 1172: warning 563: Argument #3 is
not the correct type.
cc: "ftp.c", line 1510: warning 604: Pointers are not
assignment-compatible.
cc: "ftp.c", line 1510: warning 563: Argument #3 is
not the correct type.
cc: "ftp.c", line 1682: warning 604: Pointers are not
assignment-compatible.
cc: "ftp.c", line 1682: warning 563: Argument #3 is
not the correct type.
cc: "ftp.c", line 1918: error 1584: Inconsistent type
declaration: "Curl_ftpsendf".

The first three can be corrected by defining
_XOPEN_SOURCE_EXTENDED.
The error(the last output-line from cc) seems to
be because of diffrent declaration of the returnvalue
from Curl_ftpsendf()in ftp.h and ftp.c.
The two lines 1510,1682 has calls to ftp_getsize()
but the last argument is of the wrong type.
The type should be ssize_t * according to the
declaration of ftp_getsize(), but the calls on
line 1510 and 1682 has a int * as the third argument.

----------------------------------------------------------------------

You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=481259&group_id=976
Received on 2001-11-13