C/C++

C/C++

C/C++

Your one-stop destination to learn and collaborate about the latest innovations in IBM C/C++ for z/OS compilers to develop high-performing C/C++ applications and system programs on z/OS while maximizing hardware use and improving application performance.

 View Only
Expand all | Collapse all

Compile curl-7.61.0 on Z/OS V2R3

  • 1.  Compile curl-7.61.0 on Z/OS V2R3

    Posted Tue October 16, 2018 01:25 PM

    Hi,

    I am trying to compile curl-7.61.0 on Z/OS V2R3. I got the following error,

    ERROR CCN3166 ./curl_threads.h:54    Definition of function pthread_t requires parentheses.
    ERROR CCN3276 ./curl_threads.h:54    Syntax error: possible missing '{'?
    ERROR CCN3285 ./curl_threads.c:52    The indirection operator cannot be applied to a pointer to an incomplete struct or union.
    ERROR CCN3285 ./curl_threads.c:53    The indirection operator cannot be applied to a pointer to an incomplete struct or union.
    ERROR CCN3166 ./curl_threads.c:62    Definition of function pthread_t requires parentheses.
    ERROR CCN3276 ./curl_threads.c:62    Syntax error: possible missing '{'?
    ERROR CCN3045 ./curl_threads.c:64    Undeclared identifier pthread_t.
    ERROR CCN3045 ./curl_threads.c:64    Undeclared identifier t.
    ERROR CCN3043 ./curl_threads.c:65    The operand of the sizeof operator is not valid.
    WARNING CCN3196 ./curl_threads.c:65    Initialization between types "pointer to an incomplete type" and "int" is not allowed.
    ERROR CCN3285 ./curl_threads.c:69    The indirection operator cannot be applied to a pointer to an incomplete struct or union.
    ERROR CCN3045 ./curl_threads.c:69    Undeclared identifier func.
    ERROR CCN3285 ./curl_threads.c:70    The indirection operator cannot be applied to a pointer to an incomplete struct or union.
    ERROR CCN3045 ./curl_threads.c:70    Undeclared identifier arg.
    ERROR CCN3275 ./curl_threads.c:80    Unexpected text ')' encountered.
    ERROR CCN3277 ./curl_threads.c:80    Syntax error: possible missing ')' or ','?
    ERROR CCN3275 ./curl_threads.c:85    Unexpected text ')' encountered.
    ERROR CCN3045 ./curl_threads.c:85    Undeclared identifier hnd.
    ERROR CCN3277 ./curl_threads.c:85    Syntax error: possible missing ')' or ','?
    ERROR CCN3277 ./curl_threads.c:91    Syntax error: possible missing ')' or ','?
    ERROR CCN3045 ./curl_threads.c:93    Undeclared identifier hnd.
    ERROR CCN3275 ./curl_threads.c:96    Unexpected text ')' encountered.
    ERROR CCN3277 ./curl_threads.c:96    Syntax error: possible missing ')' or ','?
    CCN0793(I) Compilation failed for file ./curl_threads.c.  Object file not created.

    Is anything I missed?

    Thanks in advance.

    Thanks,

    Mani

     

     

    jmani20


  • 2.  Re: Compile curl-7.61.0 on Z/OS V2R3

    Posted Wed October 17, 2018 12:06 PM

    This question about compiling curl with the XLC V2R3 compiler was also asked on Google Groups, and the answer is being discussed there.

    Nicole Trudeau