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.  glib2-config: wrong link of glibconfig.h

    Posted Tue September 08, 2020 05:59 AM
    Hello,

    After installing glib2-config (2.56.1) the link in /opt/freeware/include/glibconfig.h points to a wrong destination:
    cd /opt/freeware/include
    ls -l glibconf*
    lrwxrwxrwx 1 root system 46 Sep 08 09:08 glibconfig.h -> opt/freeware/lib/glib-2.0/include/glibconfig.h
    For example this leads to compile errors like:
    "/usr/include/glib-2.0/glib/gfileutils.h", line 26.10: 1540-0836 (S) The #include file <glibconfig.h> is not found.
    "/usr/include/glib-2.0/glib/gpoll.h", line 25.10: 1540-0836 (S) The #include file <glibconfig.h> is not found.
    "/usr/include/glib-2.0/glib/gtypes.h", line 32.10: 1540-0836 (S) The #include file <glibconfig.h> is not found.
    "/usr/include/glib-2.0/glib/gtypes.h", line 502.2: 1540-0859 (S) #error directive: unknown ENDIAN type.
    "/usr/include/glib-2.0/glib/gversionmacros.h", line 277.2: 1540-0859 (S) #error directive: "GLIB_VERSION_MIN_REQUIRED must be >= GLIB_VERSION_2_26".

    After link correction in /opt/freeware/include compilation works fine.
    cd /opt/freeware/include/
    ln -sf ../lib/glib-2.0/include/glibconfig.h .

    I think that's an error in packaging glib2-config. So, please correct it.


    ------------------------------
    Emanuel Reisinger
    ------------------------------

    #AIXOpenSource


  • 2.  RE: glib2-config: wrong link of glibconfig.h

    Posted Wed September 09, 2020 04:29 AM
    This is in our to-do list. Thanks for reporting it.

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