cURL / Mailing Lists / curl-library / Single Mail

curl-library

Try to compile at Digital Unix

From: Dimitris Sarris <dsar_at_intracom.gr>
Date: Tue, 27 Nov 2001 10:44:14 +0200

Hello,

I have recently downloaded cURL in order to execute some FTP transfers.
My platform is Digital Unix (Tru64 v.0D)

I run configure with the following options:
    --prefix=<whatever> --without-ssl

Then, I run make but the following warnings and errors appeared:
    cc: Warning: ftp.c, line 1510: In this statement, the referenced
type of the pointer value "&conn->resume_from" is "int", which is not
compatible with "long".
(ptrmismatch)
        if(CURLE_OK != ftp_getsize(conn, ftp->file, &conn->resume_from))
{
    ----------------------------------------------------^
    cc: Warning: ftp.c, line 1682: In this statement, the referenced
type of the pointer value "&foundsize" is "int", which is not compatible
with "long".
(ptrmismatch)
        result = ftp_getsize(conn, ftp->file, &foundsize);
    ----------------------------------------------^
    cc: Error: ftp.c, line 1918: In this declaration, the type of
"Curl_ftpsendf" is not compatible with the type of a previous
declaration of "Curl_ftpsendf" at line
number 31 in file ftp.h.
    (no tcompat)
    CURLcode Curl_ftpsendf(struct connectdata *conn,

I manually edited the following files in order to overcome the above
errors:
    - urldata.h, change type of "connectdata.resume_from" from "int" to
"ssize_t"
    - ftp.h, change return type of "Curl_ftpsendf" from "size_t" to
"CURLcode"
    - ftp.c, inside "ftp_perform" at line 1681 I changed the declaration
of the "foundsize" variable from "int" to "ssize_t"

Are these changes valid?

After these changes, the compilation completed successfully.

Then, I tried to perform the tests (make test) but the following error
appeared:
    No suffix list.
    No suffix list.
    No suffix list.
    LOCK: -f test1
     || ln -s ./test* .
    sh: syntax error at line 1: `||' unexpected

Do I have to fix something here?

Then, I executed "make install" with no problem.

Thanks
Dimitris

P.S. Your implementation is really amazing!
Received on 2001-11-27