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.  Missing /opt/freeware/include/glibconfig.h in glib2-devel-2.81.0-1

    Posted Mon October 14, 2024 01:01 PM

    Hello,

    In the glib2-devel-2.56.1-3 package there was a wrapper header in /opt/freeware/include/glibconfig.h for 32 and 64bit. In the current version glib2-devel-2.81.0-1 there are only the two includes for each architecture. I'm missing the wrapper include file.

    glib2-devel-2.81.0-1:

    # rpm -ql glib2-devel | grep glibconfig
    /opt/freeware/lib/glib-2.0/include/glibconfig.h
    /opt/freeware/lib64/glib-2.0/include/glibconfig.h

    glib2-devel-2.56.1-3:

    # rpm -ql glib2-devel | grep glibconfig
    /opt/freeware/include/glibconfig-ppc32.h
    /opt/freeware/include/glibconfig-ppc64.h
    /opt/freeware/include/glibconfig.h

    Is there a misconfiguration in the glib2-devel package?



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

    #AIXOpenSource


  • 2.  RE: Missing /opt/freeware/include/glibconfig.h in glib2-devel-2.81.0-1

    Posted Mon October 14, 2024 03:14 PM
    Edited by Aditya Kamath Mon October 14, 2024 03:15 PM

    Hi @Emanuel Reisinger

    The older glib2-2.56.3 used GNU build system, which put header files in /opt/freeware/include/. Hence we create glibconfig-ppc32.h and glibconfig-ppc64.h with /opt/freeware/include/glibconfig.h as a soft link.

    # ls -l /opt/freeware/include/glibconfig.h
    lrwxrwxrwx 1 root system 36 Oct 14 13:53 /opt/freeware/include/glibconfig.h -> ../lib/glib-2.0/include/glibconfig.h

    The newer glib2 uses the modern meson build system, which ships glibconfig.h 32 bit in /opt/freeware/lib/glib-2.0/include/ and 64-bit in /opt/freeware/lib64/glib-2.0/include/

    There should not be a misconfiguration ideally. 

    If we see the pkg-config also are set correctly to look into  
    # pkg-config --cflags glib-2.0
    -I/opt/freeware/include/glib-2.0 -I/opt/freeware/lib64/glib-2.0/include -I/opt/freeware/include

    We should get glibconfig.h by this -I/opt/freeware/lib64/glib-2.0/include

    Are you expecting /opt/freeware/include/glibconfig.h for any reason? Did I understand your query correctly?



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 3.  RE: Missing /opt/freeware/include/glibconfig.h in glib2-devel-2.81.0-1

    Posted Mon October 14, 2024 05:55 PM

    Hello,

    It seems the newer version of the glib2-devel package no longer includes the glibconfig.h wrapper in the /opt/freeware/include/ directory, which was present in the older version (glib2-devel-2.56.1-3). Instead, the headers for each architecture (32-bit and 64-bit) are now found directly in their respective directories.

    In glib2-devel-2.81.0-1, you will find:

    • /opt/freeware/lib/glib-2.0/include/glibconfig.h for 32-bit.
    • /opt/freeware/lib64/glib-2.0/include/glibconfig.h for 64-bit.

    It appears that the packaging has changed, and the wrapper file for glibconfig.h has been removed, possibly as a result of reorganizing the file structure to separate the architectures more clearly. This does not seem to be a misconfiguration but an intentional change in how the headers are structured in this version.

    If you need the glibconfig.h wrapper, you may need to manually create a symbolic link or modify your build configuration to point to the correct architecture-specific glibconfig.h file.



    ------------------------------
    R. Gary Maria
    ------------------------------



  • 4.  RE: Missing /opt/freeware/include/glibconfig.h in glib2-devel-2.81.0-1

    Posted Mon October 14, 2024 10:52 PM


    I agree with Gary. @Emanuel Reisinger If you can tell us why you need glibconfig.h in /opt/freeware/include then we can consider the request to ship one there depending on the issue [If any] you are facing.



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 5.  RE: Missing /opt/freeware/include/glibconfig.h in glib2-devel-2.81.0-1

    Posted Tue October 15, 2024 06:03 AM

    No special use case. The glibconfig.h wrapper was a convenient solution. So we have consider the architecture and the correct include path in our makefile by own.

    Thanks.



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