[MacPorts] #67307: glib2 compilation issues with clang

MacPorts noreply at macports.org
Tue Jul 18 23:21:30 UTC 2023


#67307: glib2 compilation issues with clang
-----------------------+----------------------
  Reporter:  rmottola  |      Owner:  mascguy
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:  leopard
      Port:  glib2     |
-----------------------+----------------------

Comment (by rmottola):

 Sorry.... checked the
 {{{
 configure.cflags-append -DDARWIN_NON_CANCELABLE=
 }}}

 is only for darwin 8, I added it for darwin 9, then it compiles!

 Indeed:

 {{{
 $ nm -a -arch i386 /usr/lib/libSystem.B.dylib | grep _close | grep T
 0008e30f T ___bt_close
 000e0e1c T ___rec_close
 0011360c T ___res_close
 0010fb17 T __res_close
 00041658 T _asl_close
 000eeb78 T _asl_file_close
 000eefca T _asl_file_list_close
 000f1bd7 T _asl_legacy1_close
 000edd1b T _asl_store_close
 000edefe T _asl_store_file_close
 000edcb7 T _asl_store_file_closeall
 00001b80 T _close
 00001b80 T _close$NOCANCEL$UNIX2003
 0000c728 T _close$UNIX2003
 00085ce1 T _closedir
 00024d4b T _closedir$UNIX2003
 00067060 T _closelog
 000a7983 T _dbm_close
 0002f30d T _fts_close
 00084694 T _fts_close$INODE64
 00091104 T _kvm_close
 001292e4 T _launchd_close
 0008e40f T _mpool_close
 0007decc T _sem_close
 }}}

 but:

 {{{
 $ nm -a -arch x86_64 /usr/lib/libSystem.B.dylib | grep _close | grep T
 00000000000847d6 T ___bt_close
 00000000000ce0dc T ___rec_close
 00000000000f8cea T ___res_close
 00000000000f57e2 T __res_close
 000000000003e1cd T _asl_close
 00000000000da6fe T _asl_file_close
 00000000000daaf8 T _asl_file_list_close
 00000000000dcee6 T _asl_legacy1_close
 00000000000d95e9 T _asl_store_close
 00000000000d97d9 T _asl_store_file_close
 00000000000d9584 T _asl_store_file_closeall
 0000000000021c08 T _close
 00000000000e75e4 T _close$NOCANCEL
 000000000007c865 T _closedir
 00000000000613bb T _closelog
 00000000000995b8 T _dbm_close
 000000000002c298 T _fts_close
 000000000007b0da T _fts_close$INODE64
 000000000010d64c T _launchd_close
 00000000000848e1 T _mpool_close
 0000000000074fe8 T _sem_close
 }}}

 so the hack is needed on darwin 9 intel-64bit only, to be precise.

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


More information about the macports-tickets mailing list