Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS400: Multiple compile failures in ccsidcurl.c #7134

Closed
jonrumsey opened this issue May 26, 2021 · 0 comments
Closed

OS400: Multiple compile failures in ccsidcurl.c #7134

jonrumsey opened this issue May 26, 2021 · 0 comments

Comments

@jonrumsey
Copy link
Contributor

I did this

Built libcurl 7.77.0 on OS400 V7R3M0

I expected the following

Clean build, but failed with multiple problems in ccsidcurl.c;

  448    12 |  for(i = 0; i < sizeof(charfields) / sizeof(charfields[0]); i++) {                         
  449    13 |    cpp = (const char **) ((char *) p + charfields[i]);                                     
===========> ........a...................................................................................
*=SEVERE==========> a - CZM0068  Operation between types "const char*" and "const char**" is not allowed.

  451    15 +      n += (__strlen(*cpp)) + 1;                                                                  
===========> .....................a............................................................................           
*=SEVERE==========> a - CZM0280  Function argument assignment between types "const char*" and "const char" is not allowed.

  487    38 |    cpp = (const char **) ((char *) p + charfields[i]);                                           |
===========> ........a......................................................................................... 
*=SEVERE==========> a - CZM0068  Operation between types "const char*" and "const char**" is not allowed.       
  488    39 |    if(*cpp)                                                                                      |
  489    40 |      if(convert_version_info_string(cpp, &cp, &n, ccsid))                                        |
===========> .....................................a............................................................ 
*=SEVERE==========> a - CZM0280  Function argument assignment between types "const char**" and "const char*" is not allowed.
  490       |  }                                                                                               |
===========> ..a............................................................................................... 
*=SEVERE==========> a - CZM0275  Unexpected text '}' encountered.                                               

There are lots of further syntax errors cause by the double 'if' without a code branch - I think the intent is to return a NULL;

  546       |const char *                                                  
===========> a.............................................................
*=SEVERE==========> a - CZM0046  Syntax error.                             
  547       |curl_multi_strerror_ccsid(CURLMcode error, unsigned int ccsid)

curl/libcurl version

7.77.0

[curl -V output]

operating system

OS400 V7R3M0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant