[MacPorts] #57688: radare2 @3.1.0_0: fails to build on macOS 10.12 Xcode 9.2

MacPorts noreply at macports.org
Tue Nov 27 08:15:42 UTC 2018


#57688: radare2 @3.1.0_0: fails to build on macOS 10.12 Xcode 9.2
-----------------------+--------------------
  Reporter:  mopihopi  |      Owner:  (none)
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:
      Port:  radare2   |
-----------------------+--------------------

Comment (by mopihopi):

 It looks like it is trying to link with the installed version in
 /opt/local/lib/libr_util.dylib (from radare2 3.0.1_0):

 {{{
 $ /usr/bin/clang -pipe -Os -arch x86_64 -MD   -fPIC -g -Wall  -D__UNIX__=1
 -pie
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_radare2/radare2/work/radare2-3.1.0/libr/..//libr/include
 rasm2.o -L.. -o rasm2 -L/opt/local/lib -Wl,-headerpad_max_install_names
 -arch x86_64  -lpthread -lm
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_radare2/radare2/work/radare2-3.1.0/libr/asm
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_radare2/radare2/work/radare2-3.1.0/libr/parse
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_radare2/radare2/work/radare2-3.1.0/libr/syscall
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_radare2/radare2/work/radare2-3.1.0/libr/anal
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_radare2/radare2/work/radare2-3.1.0/libr/reg
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_radare2/radare2/work/radare2-3.1.0/libr/hash
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_radare2/radare2/work/radare2-3.1.0/libr/flag
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_radare2/radare2/work/radare2-3.1.0/libr/cons
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_radare2/radare2/work/radare2-3.1.0/libr/lang
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_radare2/radare2/work/radare2-3.1.0/libr/util
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_radare2/radare2/work/radare2-3.1.0/libr/search
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_radare2/radare2/work/radare2-3.1.0/libr/crypto
 -lr_asm -lr_parse -lr_syscall -lr_anal -lr_reg -lr_hash -lr_flag -lr_cons
 -lr_lang -lr_util -lr_search -lr_crypto -fPIC -lz -lzip -Wl,-t|grep
 libr_util.dylib
 clang: warning: argument unused during compilation: '-pie' [-Wunused-
 command-line-argument]
 Undefined symbols for architecture x86_64:
   "_ht_pp_foreach", referenced from:
       _print_assembly_output in rasm2.o
 ld: symbol(s) not found for architecture x86_64
 /opt/local/lib/libr_util.dylib
 }}}

 This is apparently because the command uses `-L/opt/local/lib` before
 `-L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_radare2/radare2/work/radare2-3.1.0/libr/util`.

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


More information about the macports-tickets mailing list