[MacPorts] #65290: ruby31 @3.1.2 Error: Undefined symbols for architecture x86_64:

MacPorts noreply at macports.org
Sun Jun 26 02:27:22 UTC 2022


#65290: ruby31 @3.1.2 Error: Undefined symbols for architecture x86_64:
-------------------------+-----------------------
  Reporter:  cave-canem  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.7.2
Resolution:              |   Keywords:  Mavericks
      Port:  ruby31      |
-------------------------+-----------------------

Comment (by kimura wataru <kimuraw@…>):

 In [changeset:"477af2eda93223aa520992f32757f865ea20c49e/macports-ports"
 477af2eda93223aa520992f32757f865ea20c49e/macports-ports] (master):
 {{{
 #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="477af2eda93223aa520992f32757f865ea20c49e"
 lang/ruby31: fix missing linker flag "-framework Security" for 10.7 ..
 10.9

 refs: https://trac.macports.org/ticket/65290

 [note] other problem looks remain on 10.8 and 10.9.
        generating ext/-test-/RUBY_ALIGNOF/Makefile overwrites topdir's
 Makefile.

 - fix detecting macOS version in configure and dln.c
     - AvailabirityMacros.h does not contains macros future versions.
       for example, "MAC_OS_X_VERSION_10_10" does not defined in 10.9's
 headerfile.
 - fix dsymutil error at build phase when using macports-clang-* as
 configure.compiler.
   but this error might not affect build result.

 ```
 $ sw_vers -productVersion
 10.9.5
 $ uname -r
 13.4.0
 $ cat conftest.c
 /* end confdefs.h.  */

         #include <AvailabilityMacros.h>
 int
 main ()
 {
 static int test_array [1 - 2 * !(MAC_OS_X_VERSION_MIN_REQUIRED >=
 MAC_OS_X_VERSION_10_7 &&
                  MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10)];
 test_array [0] = 0;
 return test_array [0];

   ;
   return 0;
 }
 $ cc -c conftest.c
 conftest.c:8:50: error: use of undeclared identifier
 'MAC_OS_X_VERSION_10_10'
                  MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_10)];
                                                  ^
 1 error generated.
 ```
 }}}

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


More information about the macports-tickets mailing list