Opened 5 years ago

Last modified 9 months ago

#60250 new defect

fribidi fails to build due to nm

Reported by: rmottola (Riccardo) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: leopard tiger Cc:
Port: fribidi

Description

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

Change History (3)

comment:1 Changed 5 years ago by mf2k (Frank Schima)

Keywords: leopard tiger added; Leopard Tiger removed

comment:2 Changed 9 months ago by rmottola (Riccardo)

I tried adding:

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
}

However, I get this strange error:

--->  Configuring libpixman
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libpixman/libpixman/work/pixman-0.42.2" && /opt/local/bin/meson setup --prefix=/opt/local -Dgtk=disabled -Dlibpng=disabled -Dmmx=disabled -Dopenmp=disabled lt_cv_path_NM=/opt/local/bin/nm /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libpixman/libpixman/work/pixman-0.42.2 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libpixman/libpixman/work/build --wrap-mode=nodownload 
usage: meson [-h] {setup,configure,dist,install,introspect,init,test,wrap,subprojects,rewrite,compile,devenv,env2mfile,help} ...
meson: error: unrecognized arguments: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libpixman/libpixman/work/build
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libpixman/libpixman/work/pixman-0.42.2" && /opt/local/bin/meson setup --prefix=/opt/local -Dgtk=disabled -Dlibpng=disabled -Dmmx=disabled -Dopenmp=disabled lt_cv_path_NM=/opt/local/bin/nm /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libpixman/libpixman/work/pixman-0.42.2 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libpixman/libpixman/work/build --wrap-mode=nodownload 
Exit code: 2

it is using MP meson.. what's really wrong?

comment:3 Changed 9 months ago by kencu (Ken)

This:

lt_cv_path_NM=/opt/local/bin/nm

is not recognized by meson.

I'm not sure if it is still needed at all, but if so, it will have to be an environment variable, not a configure argument.

Last edited 9 months ago by kencu (Ken) (previous) (diff)
Note: See TracTickets for help on using tickets.