[MacPorts] #60250: fribidi fails to build due to nm

MacPorts noreply at macports.org
Thu Mar 26 21:56:14 UTC 2020


#60250: fribidi fails to build due to nm
---------------------------+---------------------
 Reporter:  rmottola       |      Owner:  (none)
     Type:  defect         |     Status:  new
 Priority:  Normal         |  Milestone:
Component:  ports          |    Version:
 Keywords:  Leopard Tiger  |       Port:  fribidi
---------------------------+---------------------
 On 10.5 Leopard (strangely only on x86_64 perhaps on i386 I did not have
 this yet?) fails due to old bm.


 {{{
 /bin/sh ../libtool  --tag=CC   --mode=link /opt/local/bin/gcc-mp-6  -pipe
 -Os -arch x86_64 -Wall -ansi  -no-undefined -version-info 4:0:4  -export-
 symbols-regex "^fribidi_.*" -L/opt/local/lib
 -Wl,-headerpad_max_install_names -arch x86_64 -o libfribidi.la -rpath
 /opt/local/lib fribidi.lo fribidi-arabic.lo fribidi-bidi.lo fribidi-bidi-
 types.lo fribidi-char-sets.lo fribidi-char-sets-cap-rtl.lo fribidi-char-
 sets-cp1255.lo fribidi-char-sets-cp1256.lo fribidi-char-sets-iso8859-6.lo
 fribidi-char-sets-iso8859-8.lo fribidi-char-sets-utf8.lo fribidi-
 deprecated.lo fribidi-joining.lo fribidi-joining-types.lo fribidi-
 mirroring.lo fribidi-brackets.lo fribidi-run.lo fribidi-shape.lo
 libtool: link: /usr/bin/nm -p  .libs/fribidi.o .libs/fribidi-arabic.o
 .libs/fribidi-bidi.o .libs/fribidi-bidi-types.o .libs/fribidi-char-sets.o
 .libs/fribidi-char-sets-cap-rtl.o .libs/fribidi-char-sets-cp1255.o .libs
 /fribidi-char-sets-cp1256.o .libs/fribidi-char-sets-iso8859-6.o .libs
 /fribidi-char-sets-iso8859-8.o .libs/fribidi-char-sets-utf8.o .libs
 /fribidi-deprecated.o .libs/fribidi-joining.o .libs/fribidi-joining-
 types.o .libs/fribidi-mirroring.o .libs/fribidi-brackets.o .libs/fribidi-
 run.o .libs/fribidi-shape.o   |  | /usr/bin/sed 's/.* //' | sort | uniq >
 .libs/libfribidi.exp
 ../libtool: eval: line 1717: syntax error near unexpected token `|'
 ../libtool: eval: line 1717: `/usr/bin/nm -p  .libs/fribidi.o .libs
 /fribidi-arabic.o .libs/fribidi-bidi.o .libs/fribidi-bidi-types.o .libs
 /fribidi-char-sets.o .libs/fribidi-char-sets-cap-rtl.o .libs/fribidi-char-
 sets-cp1255.o .libs/fribidi-char-sets-cp1256.o .libs/fribidi-char-sets-
 iso8859-6.o .libs/fribidi-char-sets-iso8859-8.o .libs/fribidi-char-sets-
 utf8.o .libs/fribidi-deprecated.o .libs/fribidi-joining.o .libs/fribidi-
 joining-types.o .libs/fribidi-mirroring.o .libs/fribidi-brackets.o .libs
 /fribidi-run.o .libs/fribidi-shape.o   |  | /usr/bin/sed 's/.* //' | sort
 | uniq > .libs/libfribidi.exp'
 }}}


 The typical fix of:


 {{{
 if {${os.platform} eq "darwin" && ${os.major} < 10} {
     depends_build-append port:cctools
     configure.env-append NM=${prefix}/bin/nm
     configure.args-append lt_cv_path_NM=${prefix}/bin/nm
 }
 }}}

 but to work it needs to be put at the end, after


 {{{
 configure.args  --enable-static \
                 --disable-silent-rules

 }}}

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


More information about the macports-tickets mailing list