Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  jansson-devel: header contains gcc macros

    Posted Wed June 03, 2020 10:18 AM
    i need to build apache httpd against your jansson lib, but xlc throws up on gccisms in the headers...

    "/opt/freeware/include/jansson.h", line 118.9: 1506-045 (S) Undeclared identifier __ATOMIC_ACQUIRE.
    "/opt/freeware/include/jansson.h", line 128.48: 1506-045 (S) Undeclared identifier __ATOMIC_RELEASE.

    if i remove the jansson-devel package before building, everything runs smoothly. as xlc is mandatory for this build i need a workarounf for this.

    ------------------------------
    I regret starting this entire conversation
    ------------------------------

    #AIXOpenSource


  • 2.  RE: jansson-devel: header contains gcc macros

    Posted Wed June 03, 2020 12:34 PM
    We are building all AIX Toolbox packages using gcc compiler. There might be some exceptions but those are small in count. So the AIX Toolbox environment is mostly suitable for gcc compilers.
    In this case, as a workaround you can use " #if !defined(__IBMCPP__) || !defined(__IBMC__) " protection around those macros.

    ------------------------------
    Ayappan P
    ------------------------------



  • 3.  RE: jansson-devel: header contains gcc macros

    Posted Thu June 04, 2020 03:20 AM
    hmm..thanks for the hint, guess i'm going to build a xlc version of the jansson lib then.

    ------------------------------
    I regret starting this entire conversation
    ------------------------------