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

MacPorts noreply at macports.org
Sat Jun 4 06:07:46 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
 Keywords:  Mavericks   |       Port:  ruby31
------------------------+--------------------
 {{{
 sudo port -vd install ruby31 +doc +gmp +jemalloc
 ...
 compiling enc/trans/newline.c
 compiling version.c
 linking miniruby
 Undefined symbols for architecture x86_64:
   "_SecRandomCopyBytes", referenced from:
       _ruby_fill_random_bytes in random.o
       _Init_RandomSeedCore in random.o
       _fill_random_seed in random.o
       _random_raw_seed in random.o
   "_kSecRandomDefault", referenced from:
       _ruby_fill_random_bytes in random.o
       _Init_RandomSeedCore in random.o
       _fill_random_seed in random.o
       _random_raw_seed in random.o
 ld: symbol(s) not found for architecture x86_64
 clang: error: linker command failed with exit code 1 (use -v to see
 invocation)
 make: *** [miniruby] Error 1
 make: Leaving directory `/opt/MacPorts/var/macports/build/_opt_macports-
 ports_lang_ruby31/ruby31/work/ruby-3.1.2'
 Command failed:  cd "/opt/MacPorts/var/macports/build/_opt_macports-
 ports_lang_ruby31/ruby31/work/ruby-3.1.2" && /usr/bin/make -j4 -w all
 Exit code: 2
 Error: Failed to build ruby31: command execution failed
 DEBUG: Error code: CHILDSTATUS 79900 2
 DEBUG: Backtrace: command execution failed
     while executing
 "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
     invoked from within
 "command_exec -callback portprogress::target_progress_callback build"
     (procedure "portbuild::build_main" line 8)
     invoked from within
 "$procedure $targetname"
 Error: See /opt/MacPorts/var/macports/logs/_opt_macports-
 ports_lang_ruby31/ruby31/main.log for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there is a bug.
 Error: Processing of port ruby31 failed
 }}}

 '''See the detailed log in the attachment'''

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


More information about the macports-tickets mailing list