cURL / Mailing Lists / curl-library / Single Mail

curl-library

Problem with curl compilation on VDK

From: Ajeet kumar.S <ajeetkumar.s_at_jasmin-infotech.com>
Date: Tue, 26 Feb 2008 17:56:32 +0530

Hi All;

 

       Daniel Stenberg Thanks allot to you. At time of compilation of curl
lib. I faced problem in file netrc.c. Which are given below?

       Here pwd.h file is taken from internet.

//**************************************************************************
****************************************************************************
***//

"pwd.h", line 28: cc0130: error: expected a "{"

  extern struct passwd *getpwuid (uid_t uid) __THROW;

                                             ^

 

"netrc.c", line 61: cc0012: {D} warning: parsing restarts here after
previous

          syntax error

  enum {

       ^

 

"netrc.c", line 62: cc0020: error: identifier "NOTHING" is undefined

    NOTHING,

    ^

 

"netrc.c", line 63: cc0020: error: identifier "HOSTFOUND" is undefined

    HOSTFOUND, /* the 'machine' keyword was found */

    ^

 

"netrc.c", line 64: cc0020: error: identifier "HOSTCOMPLETE" is undefined

    HOSTCOMPLETE, /* the machine name following the keyword was found too */

    ^

 

"netrc.c", line 65: cc0020: error: identifier "HOSTVALID" is undefined

    HOSTVALID, /* this is "our" machine! */

    ^

 

"netrc.c", line 67: cc0020: error: identifier "HOSTEND" is undefined

    HOSTEND /* LAST enum */

    ^

 

"netrc.c", line 68: cc0065: error: expected a ";"

  };

  ^

 

"netrc.c", line 68: cc1045: {D} warning: missing return statement at end of

          non-void function "getpwuid"

  };

  ^

 

"netrc.c", line 86: cc0020: error: identifier "NOTHING" is undefined

    int state=NOTHING;

              ^

 

"netrc.c", line 131: cc1080: {D} warning: Function does not have a full

          prototype

      netrcfile = curl_maprintf("%s%s%s", home, DIR_CHAR, NETRC);

                  ^

 

"netrc.c", line 131: cc0513: {D} warning: a value of type "int" cannot be

          assigned to an entity of type "char *"

      netrcfile = curl_maprintf("%s%s%s", home, DIR_CHAR, NETRC);

                ^

 

"netrc.c", line 134: cc1080: {D} warning: Function does not have a full

          prototype

          free(home);

          ^

 

"netrc.c", line 148: cc1080: {D} warning: Function does not have a full

          prototype

        tok=strtok_r(netrcbuffer, " \t\n", &tok_buf);

            ^

 

"netrc.c", line 148: cc0513: {D} warning: a value of type "int" cannot be

          assigned to an entity of type "char *"

        tok=strtok_r(netrcbuffer, " \t\n", &tok_buf);

           ^

 

"netrc.c", line 163: cc0020: error: identifier "HOSTFOUND" is undefined

              state=HOSTFOUND;

                    ^

 

"netrc.c", line 166: cc0020: error: identifier "HOSTFOUND" is undefined

          case HOSTFOUND:

               ^

 

"netrc.c", line 169: cc0020: error: identifier "HOSTVALID" is undefined

              state=HOSTVALID;

                    ^

 

"netrc.c", line 179: cc0020: error: identifier "HOSTVALID" is undefined

          case HOSTVALID:

               ^

 

"netrc.c", line 214: cc1080: {D} warning: Function does not have a full

          prototype

          tok = strtok_r(NULL, " \t\n", &tok_buf);

                ^

 

"netrc.c", line 214: cc0513: {D} warning: a value of type "int" cannot be

          assigned to an entity of type "char *"

          tok = strtok_r(NULL, " \t\n", &tok_buf);

              ^

 

"netrc.c", line 222: cc1080: {D} warning: Function does not have a full

          prototype

      free(home);

      ^

 

"netrc.c", line 224: cc1080: {D} warning: Function does not have a full

          prototype

      free(netrcfile);

      ^

 

12 errors detected in the compilation of "netrc.c".

cc3089: fatal error: Compilation failed

Tool failed with exit/exception code: 1.

Build was unsuccessful.

 

 

//**************************************************************************
****************************************************************************
***//

 

Plz tell me how I can fix this issue. I did not get value of HOSTFOUND,
HOSTVALID, NOTHING, HOSTCOMPLETE in netrc.c.

 

 

Thank you.

Regards;

 

Ajeet Kumar Singh

 
Received on 2008-02-26