AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
Expand all | Collapse all

DNF: socket.h issues in gcc-8.3.0-3_beta.ppc package

  • 1.  DNF: socket.h issues in gcc-8.3.0-3_beta.ppc package

    Posted Tue August 24, 2021 11:34 AM
    Hello!
    I am using gcc-8.3.0-3_beta.ppc from AIX_Toolbox_beta (installed using dnf on Aix).
    I have ran into issues with sys/socket.h file provided by this package;

    Steps to reproduce:
    1. Create a file err.cc:
    ```
    #include <sys/socket.h>
    #include <stdio.h>
    int main() {
    printf("main\n");
    return 0;
    }
    ```

    2. Compile with g++ -Wall err.c. This fails with the following: `error: expected '}' at end of input`.

    I believe the root cause is the un-terminated "extern C++" declaration on line 128 of /opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/8.3.0/include-fixed/sys/socket.h, provided by gcc-8.3.0-3_beta.ppc dnf package.

    Commenting out line 128 appears to solve the problem for me.

    Have anyone ran into this before?

    ------------------------------
    Vasili Skurydzin
    ------------------------------


  • 2.  RE: DNF: socket.h issues in gcc-8.3.0-3_beta.ppc package

    Posted Wed August 25, 2021 11:07 AM
    Hi Vasili,

    This should be resolved with next updated version which will have the fix to resolve this error.
    This beta package is provided to make other rpm package satisfy the libgcc & libstdc++ dependency For AIX 7.3.
    We would be having AIX 7.3 release gcc repository(non beta) like 7.1 & 7.2 and dnf to point to this repository accordingly.

    ------------------------------
    SANGAMESH
    ------------------------------