#68385 closed defect (fixed)

pcre: link fails for 'pcre_scanner_unittest', due to numerous undefined symbols; possible xcode 15 issue

Reported by: conradwt (Conrad Taylor) Owned by: larryv (Lawrence Velázquez)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: sonoma xcode15 Cc: mascguy (Christopher Nielsen)
Port: pcre

Description (last modified by mascguy (Christopher Nielsen))

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

Attachments (1)

main.log (1.6 MB) - added by conradwt (Conrad Taylor) 14 months ago.
main.log

Download all attachments as: .zip

Change History (4)

Changed 14 months ago by conradwt (Conrad Taylor)

Attachment: main.log added

main.log

comment:1 Changed 14 months ago by mascguy (Christopher Nielsen)

Cc: mascguy added; larryv removed
Description: modified (diff)
Keywords: xcode15 arm added
Owner: set to larryv
Status: newassigned
Summary: ld: Undefined symbols:pcre: link fails for 'pcre_scanner_unittest', due to numerous undefined symbols; possible xcode 15 issue
Version: 2.8.1

comment:2 Changed 14 months ago by jmroot (Joshua Root)

Keywords: arm removed

Needs the usual libtool single_module fix. Larry, I can push it for you if you want.

comment:3 Changed 13 months ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed

In 661d0212412d4f428a37d31e233fa6ca1efd4331/macports-ports (master):

pcre: fix build with Xcode 15

Maintainer timeout.

Closes: #68385

Note: See TracTickets for help on using tickets.