[MacPorts] #71543: devhelp: error: unknown argument: '-export-symbols /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_devhelp/devhelp/work/devhelp-3.38.1/devhelp/symbol.map'

MacPorts noreply at macports.org
Sat Dec 14 22:53:23 UTC 2024


#71543: devhelp: error: unknown argument: '-export-symbols
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gnome_devhelp/devhelp/work/devhelp-3.38.1/devhelp/symbol.map'
-----------------------+----------------------
  Reporter:  kwolcott  |      Owner:  dbevans
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:
      Port:  devhelp   |
-----------------------+----------------------

Comment (by JDLH):

 The `-export-symbols` arg appears to come from `dont-use-version-
 script.patch`, which contains:

 {{{
 --- devhelp/meson.build.orig    2020-11-20 05:48:48.000000000 -0800
 +++ devhelp/meson.build 2022-07-18 17:06:59.000000000 -0700
 @@ -96,7 +96,7 @@
  libdevhelp_shared_lib = shared_library(
    'devhelp- at 0@'.format(LIBDEVHELP_API_VERSION),
    link_whole: libdevhelp_static_lib,
 -  link_args: '-Wl,--version-script,' + symbol_map,
 +  link_args: '-export-symbols ' + symbol_map,
    link_depends: symbol_map,
    version: LIBDEVHELP_LT_VERSION,
    install: true
 }}}

 I am guessing that the syntax here is for Meson. There is a
 [https://mesonbuild.com/Reference-manual_functions.html#shared_library
 Meson shared_library() function] which takes a parameter `link_args:
 list[str]`. It looks like a [https://mesonbuild.com/Syntax.html#arrays
 list in Meson] might be delimited by square brackets.

 Maybe a thing to try is `link_args: ['-export-symbols ', symbol_map],`. Or
 `'-exported_symbols_list '`? I don't know, I am grasping at straws. If I
 get around to trying it before someone else does, I will let you know how
 it worked for me.

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


More information about the macports-tickets mailing list