Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#61520 closed defect (duplicate)

Error: Failed to build xalanc: command execution failed

Reported by: sudheerhebbale (Sudheer Hebbale) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: sudheerhebbale (Sudheer Hebbale)
Port: xalanc

Description (last modified by ryandesign (Ryan Carsten Schmidt))

While trying to install xalanc on macOS 11.0.1 Big Sur, port build fails with the following error

dyld: Symbol not found: _iconv
  Referenced from: /usr/lib/libarchive.2.dylib
  Expected in: /opt/local/lib/libiconv.2.dylib
--->  Computing dependencies for xalanc.
--->  Building xalanc
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_xalanc/xalanc/work/xalan-c-1.11/c" && /usr/bin/gnumake -w all 
gnumake: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_xalanc/xalanc/work/xalan-c-1.11/c'
/Library/Developer/CommandLineTools/usr/bin/gnumake -C src/xalanc all
gnumake[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_xalanc/xalanc/work/xalan-c-1.11/c/src/xalanc'
Preparing the directory structure for a build ...
mkdir -p ../../obj
mkdir -p ../../lib
mkdir -p ../../bin
/Library/Developer/CommandLineTools/usr/bin/gnumake -C Utils prepare
gnumake[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_xalanc/xalanc/work/xalan-c-1.11/c/src/xalanc/Utils'
mkdir -p ../../../nls
mkdir -p ../../../nls/include
gnumake[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_xalanc/xalanc/work/xalan-c-1.11/c/src/xalanc/Utils'
/Library/Developer/CommandLineTools/usr/bin/gnumake -C Utils locale
gnumake[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_xalanc/xalanc/work/xalan-c-1.11/c/src/xalanc/Utils'
../../../bin/MsgCreator /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_xalanc/xalanc/work/xalan-c-1.11/c/src/xalanc/NLS/en_US/XalanMsg_en_US.xlf -TYPE inmem -LOCALE en_US
dyld: Symbol not found: _iconv
  Referenced from: /usr/lib/libarchive.2.dylib
  Expected in: /opt/local/lib/libiconv.2.dylib
 in /usr/lib/libarchive.2.dylib
gnumake[2]: *** [../../../nls/include/LocalMsgData.hpp] Abort trap: 6
gnumake[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_xalanc/xalanc/work/xalan-c-1.11/c/src/xalanc/Utils'
gnumake[1]: *** [locale] Error 2
gnumake[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_xalanc/xalanc/work/xalan-c-1.11/c/src/xalanc'
gnumake: *** [all] Error 2
gnumake: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_xalanc/xalanc/work/xalan-c-1.11/c'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_xalanc/xalanc/work/xalan-c-1.11/c" && /usr/bin/gnumake -w all 
Exit code: 2
Error: Failed to build xalanc: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_xalanc/xalanc/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port xalanc failed

Change History (7)

comment:1 Changed 3 years ago by sudheerhebbale (Sudheer Hebbale)

Cc: sudheerhebbale added

comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: xalanc added

This is a mess. Something is using macOS libarchive, which I assume is linked with macOS libiconv (although because macOS Big Sur no longer includes system libraries in the filesystem it is impossible to verify this), but for some reason it is trying to use MacPorts libiconv instead, and of course MacPorts libiconv and macOS libiconv are not the same thing and cannot be substituted for one another like that, leading to the undefined symbol error. The only reason why such a thing could happen is if the build is setting DYLD_LIBRARY_PATH to include the MacPorts prefix, which is something it should not be doing. This is the same thing that was previously reported in #46110 with a different consequence.

comment:3 Changed 3 years ago by sudheerhebbale (Sudheer Hebbale)

Should I try uninstalling libiconv and try building xalanc? This will break so many other ports (bad idea)

Last edited 3 years ago by sudheerhebbale (Sudheer Hebbale) (previous) (diff)

comment:4 Changed 3 years ago by sudheerhebbale (Sudheer Hebbale)

I deactivated libiconv and built xalanc and activated libiconv again, it worked OK

comment:5 Changed 3 years ago by sudheerhebbale (Sudheer Hebbale)

Last edited 3 years ago by sudheerhebbale (Sudheer Hebbale) (previous) (diff)

comment:6 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: sudheerhebbaleDu added; sudheerhebbale removed
Resolution: duplicate
Status: newclosed

Duplicate of #46110.

comment:7 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: sudheerhebbale added; sudheerhebbaleDu removed

Whoops

Note: See TracTickets for help on using tickets.