[MacPorts] #68385: pcre: link fails for 'pcre_scanner_unittest', due to numerous undefined symbols; possible xcode 15 issue (was: ld: Undefined symbols:)

MacPorts noreply at macports.org
Sun Oct 8 00:54:30 UTC 2023


#68385: pcre: link fails for 'pcre_scanner_unittest', due to numerous undefined
symbols; possible xcode 15 issue
-----------------------+--------------------------------
  Reporter:  conradwt  |      Owner:  larryv
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.8.1
Resolution:            |   Keywords:  sonoma xcode15 arm
      Port:  pcre      |
-----------------------+--------------------------------
Changes (by mascguy):

 * status:  new => assigned
 * cc: larryv (removed)
 * cc: mascguy (added)
 * owner:  (none) => larryv
 * version:   => 2.8.1
 * keywords:  sonoma => sonoma xcode15 arm


Old description:

> {{{
> ➜ sudo port upgrade pcre
> Password:
> --->  Fetching archive for pcre
> --->  Attempting to fetch
> pcre-8.45_0+universal.darwin_23.arm64-x86_64.tbz2 from
> https://packages.macports.org/pcre
> --->  Attempting to fetch
> pcre-8.45_0+universal.darwin_23.arm64-x86_64.tbz2 from
> http://mirror.fcix.net/macports/packages/pcre
> --->  Attempting to fetch
> pcre-8.45_0+universal.darwin_23.arm64-x86_64.tbz2 from
> https://ywg.ca.packages.macports.org/mirror/macports/packages/pcre
> --->  Computing dependencies for pcre
> --->  Building pcre
> Error: Failed to build pcre: command execution failed
> Error: See
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_pcre/pcre/main.log
> for details.
> Error: Follow https://guide.macports.org/#project.tickets if you believe
> there is a bug.
> }}}

New description:

 Details (too many undefined symbols to list all, but here are a few
 examples):

 {{{
 :info:build libtool: link: /usr/bin/clang++ -pipe -Os -stdlib=libc++
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
 -arch arm64 -arch x86_64 -Wl,-headerpad_max_install_names -Wl,-syslibroot
 -Wl,/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
 -arch arm64 -arch x86_64 -o .libs/pcre_scanner_unittest
 pcre_scanner_unittest-pcre_scanner_unittest.o  -L/opt/local/lib
 ./.libs/libpcrecpp.dylib
 /opt/local/var/macports/buil/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_pcre/pcre/work/pcre-8.45/.libs/libpcre.dylib

 :info:build ld: Undefined symbols:
 :info:build   pcrecpp::RE::Init(std::__1::basic_string<char,
 std::__1::char_traits<char>, std::__1::allocator<char>> const&,
 pcrecpp::RE_Options const*), referenced from:
 :info:build       pcrecpp::RE::RE(char const*) in pcre_scanner_unittest-
 pcre_scanner_unittest.o
 :info:build   pcrecpp::RE::no_arg, referenced from:
 :info:build       _main in pcre_scanner_unittest-pcre_scanner_unittest.o
 :info:build   pcrecpp::RE::~RE(), referenced from:
 :info:build       _main in pcre_scanner_unittest-pcre_scanner_unittest.o
 :info:build   pcrecpp::Arg::parse_string(char const*, int, void*),
 referenced from:
 :info:build       _main in pcre_scanner_unittest-pcre_scanner_unittest.o

 [...etc...]

 :info:build make[1]: *** [pcre_scanner_unittest] Error 1
 :info:build clang: error: linker command failed with exit code 1 (use -v
 to see invocation)
 :info:build make[1]: *** [pcrecpp_unittest] Error 1
 }}}

--

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


More information about the macports-tickets mailing list