[MacPorts] #69843: glib2 -2.78.4 -x11 -xauth +no_x11 +quartz fails to build on OSX 10.4 Tiger

MacPorts noreply at macports.org
Sun Apr 28 21:37:54 UTC 2024


#69843: glib2 -2.78.4 -x11 -xauth +no_x11 +quartz fails to build on OSX 10.4 Tiger
------------------------+--------------------
  Reporter:  pkoshevoy  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.9.3
Resolution:             |   Keywords:  tiger
      Port:  glib2      |
------------------------+--------------------

Comment (by pkoshevoy):

 I added #include <LaunchServices/UTCoreTypes.h> to gio/gosxcontenttype.m
 and ran (under sudo su -)

 cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2/glib2/work/build"
 && /opt/local/bin/ninja -j1 --verbose -v

 that built for a while and then failed on glib/gfileutils.c implicit
 declaration of strnlen
 I replaced it with memchr and tried again... this time if failed on
 glib/gmem.c implicit declaration of posix_memalign

 {{{
 macmini-g4-125:/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2/glib2/work/build
 root# cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_glib2/glib2/work/build"
 && /opt/local/bin/ninja -j1 --verbose -v
 [1/532] /opt/local/bin/gcc-mp-7 -Iglib/libglib-2.0.0.dylib.p -Iglib
 -I../glib-2.78.4/glib -I. -I../glib-2.78.4 -I/opt/local/include
 -fvisibility=hidden -fdiagnostics-color=always -std=gnu99 -O2 -g
 -D_GNU_SOURCE -fno-strict-aliasing -DG_DISABLE_CAST_CHECKS -Wduplicated-
 branches -Wimplicit-fallthrough -Wmisleading-indentation -Wmissing-field-
 initializers -Wnonnull -Wunused -Wno-unused-parameter -Wno-pedantic -Wno-
 format-zero-length -Wno-variadic-macros -Werror=format=2 -Werror=init-self
 -Werror=missing-include-dirs -Werror=pointer-arith -Werror=unused-result
 -Wstrict-prototypes -Wno-bad-function-cast -Wno-declaration-after-
 statement -Werror=implicit-function-declaration -Werror=missing-prototypes
 -Werror=pointer-sign -pipe -Os -fstrict-aliasing -Wno-deprecated-
 declarations -D__DARWIN_NON_CANCELABLE=1 -arch ppc '-DG_LOG_DOMAIN="GLib"'
 -DGLIB_COMPILATION -MD -MQ glib/libglib-2.0.0.dylib.p/gmem.c.o -MF
 glib/libglib-2.0.0.dylib.p/gmem.c.o.d -o
 glib/libglib-2.0.0.dylib.p/gmem.c.o -c ../glib-2.78.4/glib/gmem.c
 FAILED: glib/libglib-2.0.0.dylib.p/gmem.c.o
 /opt/local/bin/gcc-mp-7 -Iglib/libglib-2.0.0.dylib.p -Iglib
 -I../glib-2.78.4/glib -I. -I../glib-2.78.4 -I/opt/local/include
 -fvisibility=hidden -fdiagnostics-color=always -std=gnu99 -O2 -g
 -D_GNU_SOURCE -fno-strict-aliasing -DG_DISABLE_CAST_CHECKS -Wduplicated-
 branches -Wimplicit-fallthrough -Wmisleading-indentation -Wmissing-field-
 initializers -Wnonnull -Wunused -Wno-unused-parameter -Wno-pedantic -Wno-
 format-zero-length -Wno-variadic-macros -Werror=format=2 -Werror=init-self
 -Werror=missing-include-dirs -Werror=pointer-arith -Werror=unused-result
 -Wstrict-prototypes -Wno-bad-function-cast -Wno-declaration-after-
 statement -Werror=implicit-function-declaration -Werror=missing-prototypes
 -Werror=pointer-sign -pipe -Os -fstrict-aliasing -Wno-deprecated-
 declarations -D__DARWIN_NON_CANCELABLE=1 -arch ppc '-DG_LOG_DOMAIN="GLib"'
 -DGLIB_COMPILATION -MD -MQ glib/libglib-2.0.0.dylib.p/gmem.c.o -MF
 glib/libglib-2.0.0.dylib.p/gmem.c.o.d -o
 glib/libglib-2.0.0.dylib.p/gmem.c.o -c ../glib-2.78.4/glib/gmem.c
 In file included from ../glib-2.78.4/glib/gmem.c:31:0:
 ./config.h:358:0: warning: "__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4" redefined
  #define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4

 <built-in>: note: this is the location of the previous definition
 ../glib-2.78.4/glib/gmem.c: In function 'g_aligned_alloc':
 ../glib-2.78.4/glib/gmem.c:672:11: error: implicit declaration of function
 'posix_memalign' [-Werror=implicit-function-declaration]
    errno = posix_memalign (&res, alignment, real_size);
            ^~~~~~~~~~~~~~
 cc1: some warnings being treated as errors
 ninja: build stopped: subcommand failed.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/69843#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list