[MacPorts] #65885: wesnoth @1.16.6 +debug: linking error: udefined symbols for architecture x86_64

MacPorts noreply at macports.org
Fri Sep 23 05:21:27 UTC 2022


#65885: wesnoth @1.16.6 +debug: linking error: udefined symbols for architecture
x86_64
--------------------------+--------------------
  Reporter:  cooljeanius  |      Owner:  (none)
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.7.2
Resolution:               |   Keywords:
      Port:  wesnoth      |
--------------------------+--------------------
Description changed by cooljeanius:

Old description:

> I noticed rev-upgrade wanted to rebuild it but couldn't due to being
> stopped by another failing port, so I tried rebuilding manually and got
> this error:
> {{{
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_games_wesnoth/wesnoth/work/wesnoth-1.16.6/src/macosx/SDLMain.mm:147:12:
> warning: 'loadNibNamed:owner:' is deprecated: first deprecated in macOS
> 10.8 [-Wdeprecated-declarations]
>         [NSBundle loadNibNamed:@"SDLMain" owner:NSApp];
>                   ^
> /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNibLoading.h:33:1:
> note: 'loadNibNamed:owner:' has been explicitly marked deprecated here
> + (BOOL)loadNibNamed:(null_unspecified NSString *)nibName
> owner:(null_unspecified id)owner API_DEPRECATED("", macos(10.0,10.8));
> ^
> 1 warning generated.
> [100%] Linking CXX executable ../wesnoth
> cd
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_games_wesnoth/wesnoth/work/build/src
> && /opt/local/bin/cmake -E cmake_link_script
> CMakeFiles/wesnoth.dir/link.txt --verbose=ON
> /usr/bin/clang++ -Wall -Wextra -Werror=non-virtual-dtor -Wno-unused-
> local-typedefs -Wno-maybe-uninitialized -Wold-style-cast -Wtrampolines
> -Qunused-arguments -Wno-unknown-warning-option -Wmismatched-tags -Wno-
> conditional-uninitialized -Wno-unused-lambda-capture -pipe -Os
> -I/opt/local/include -UNDEBUG -g -fno-limit-debug-info -DDEBUG
> -stdlib=libc++
> -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -fPIE
> -fstack-protector-strong -arch x86_64 -isysroot
> /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -mmacosx-version-
> min=11.0 -Wl,-search_paths_first -Wl,-headerpad_max_install_names
> -lstdc++ -lm -L/opt/local/lib -Wl,-headerpad_max_install_names -g -fno-
> limit-debug-info -DDEBUG
> -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
> -fPIE -Wl,-pie CMakeFiles/wesnoth.dir/wesnoth.cpp.o
> CMakeFiles/wesnoth.dir/macosx/SDLMain.mm.o -o ../wesnoth
> -Wl,-rpath,/opt/local/lib libwesnoth-common.a -Wl,-force_load libwesnoth-
> widgets.a libwesnoth-client.a libwesnoth-common.a
> /opt/local/lib/libicudata.dylib /opt/local/lib/libicui18n.dylib
> /opt/local/lib/libicuuc.dylib -framework AppKit -framework Foundation
> -framework IOKit -framework Security -lpangocairo-1.0 -lpango-1.0
> -lgobject-2.0 -lglib-2.0 -lintl -lharfbuzz -lcairo -lfontconfig
> -lfreetype /opt/local/lib/libvorbisfile.dylib -lSDL2 -lSDL2_image -lSDL2
> -lSDL2_mixer -lSDL2 /opt/local/lib/libhistory.dylib
> /opt/local/libexec/openssl3/lib/libcrypto.dylib
> /opt/local/libexec/openssl3/lib/libssl.dylib /opt/local/lib
> /libboost_iostreams-mt.dylib /opt/local/lib/libboost_program_options-
> mt.dylib /opt/local/lib/libboost_regex-mt.dylib /opt/local/lib
> /libboost_system-mt.dylib /opt/local/lib/libboost_thread-mt.dylib
> /opt/local/lib/libboost_random-mt.dylib /opt/local/lib
> /libboost_coroutine-mt.dylib /opt/local/lib/libboost_locale-mt.dylib
> /opt/local/lib/libboost_filesystem-mt.dylib -lSDL2_image -lSDL2_mixer
> /opt/local/lib/libhistory.dylib
> /opt/local/libexec/openssl3/lib/libcrypto.dylib /opt/local/lib
> /libboost_chrono-mt.dylib /opt/local/lib/libboost_date_time-mt.dylib
> /opt/local/lib/libboost_atomic-mt.dylib /opt/local/lib/libboost_context-
> mt.dylib
> Undefined symbols for architecture x86_64:
>   "_OBJC_CLASS_$_NSUserNotification", referenced from:
>       objc-class-ref in libwesnoth-client.a(apple_notification.mm.o)
>   "_OBJC_CLASS_$_NSUserNotificationCenter", referenced from:
>       objc-class-ref in libwesnoth-client.a(apple_notification.mm.o)
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
> make[2]: *** [wesnoth] Error 1
> make[2]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_games_wesnoth/wesnoth/work/build'
> make[1]: *** [src/CMakeFiles/wesnoth.dir/all] Error 2
> make[1]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_games_wesnoth/wesnoth/work/build'
> make: *** [all] Error 2
> make: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_games_wesnoth/wesnoth/work/build'
> Command failed:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_games_wesnoth/wesnoth/work/build"
> && /usr/bin/make -j16 -w all VERBOSE=ON
> Exit code: 2
> Error: Failed to build wesnoth: command execution failed
> DEBUG: Error code: CHILDSTATUS 30178 2
> }}}
> I'm on Big Sur with Xcode 13.

New description:

 I noticed rev-upgrade wanted to rebuild it (edit: I think due to a change
 in which python variant I had boost176-numpy installed with) but couldn't
 due to being stopped by another failing port, so I tried rebuilding
 manually and got this error:
 {{{
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_games_wesnoth/wesnoth/work/wesnoth-1.16.6/src/macosx/SDLMain.mm:147:12:
 warning: 'loadNibNamed:owner:' is deprecated: first deprecated in macOS
 10.8 [-Wdeprecated-declarations]
         [NSBundle loadNibNamed:@"SDLMain" owner:NSApp];
                   ^
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSNibLoading.h:33:1:
 note: 'loadNibNamed:owner:' has been explicitly marked deprecated here
 + (BOOL)loadNibNamed:(null_unspecified NSString *)nibName
 owner:(null_unspecified id)owner API_DEPRECATED("", macos(10.0,10.8));
 ^
 1 warning generated.
 [100%] Linking CXX executable ../wesnoth
 cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_games_wesnoth/wesnoth/work/build/src
 && /opt/local/bin/cmake -E cmake_link_script
 CMakeFiles/wesnoth.dir/link.txt --verbose=ON
 /usr/bin/clang++ -Wall -Wextra -Werror=non-virtual-dtor -Wno-unused-local-
 typedefs -Wno-maybe-uninitialized -Wold-style-cast -Wtrampolines -Qunused-
 arguments -Wno-unknown-warning-option -Wmismatched-tags -Wno-conditional-
 uninitialized -Wno-unused-lambda-capture -pipe -Os -I/opt/local/include
 -UNDEBUG -g -fno-limit-debug-info -DDEBUG -stdlib=libc++
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -fPIE
 -fstack-protector-strong -arch x86_64 -isysroot
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -mmacosx-version-
 min=11.0 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -lstdc++
 -lm -L/opt/local/lib -Wl,-headerpad_max_install_names -g -fno-limit-debug-
 info -DDEBUG
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
 -fPIE -Wl,-pie CMakeFiles/wesnoth.dir/wesnoth.cpp.o
 CMakeFiles/wesnoth.dir/macosx/SDLMain.mm.o -o ../wesnoth
 -Wl,-rpath,/opt/local/lib libwesnoth-common.a -Wl,-force_load libwesnoth-
 widgets.a libwesnoth-client.a libwesnoth-common.a
 /opt/local/lib/libicudata.dylib /opt/local/lib/libicui18n.dylib
 /opt/local/lib/libicuuc.dylib -framework AppKit -framework Foundation
 -framework IOKit -framework Security -lpangocairo-1.0 -lpango-1.0
 -lgobject-2.0 -lglib-2.0 -lintl -lharfbuzz -lcairo -lfontconfig -lfreetype
 /opt/local/lib/libvorbisfile.dylib -lSDL2 -lSDL2_image -lSDL2 -lSDL2_mixer
 -lSDL2 /opt/local/lib/libhistory.dylib
 /opt/local/libexec/openssl3/lib/libcrypto.dylib
 /opt/local/libexec/openssl3/lib/libssl.dylib /opt/local/lib
 /libboost_iostreams-mt.dylib /opt/local/lib/libboost_program_options-
 mt.dylib /opt/local/lib/libboost_regex-mt.dylib /opt/local/lib
 /libboost_system-mt.dylib /opt/local/lib/libboost_thread-mt.dylib
 /opt/local/lib/libboost_random-mt.dylib /opt/local/lib/libboost_coroutine-
 mt.dylib /opt/local/lib/libboost_locale-mt.dylib /opt/local/lib
 /libboost_filesystem-mt.dylib -lSDL2_image -lSDL2_mixer
 /opt/local/lib/libhistory.dylib
 /opt/local/libexec/openssl3/lib/libcrypto.dylib /opt/local/lib
 /libboost_chrono-mt.dylib /opt/local/lib/libboost_date_time-mt.dylib
 /opt/local/lib/libboost_atomic-mt.dylib /opt/local/lib/libboost_context-
 mt.dylib
 Undefined symbols for architecture x86_64:
   "_OBJC_CLASS_$_NSUserNotification", referenced from:
       objc-class-ref in libwesnoth-client.a(apple_notification.mm.o)
   "_OBJC_CLASS_$_NSUserNotificationCenter", referenced from:
       objc-class-ref in libwesnoth-client.a(apple_notification.mm.o)
 ld: symbol(s) not found for architecture x86_64
 clang: error: linker command failed with exit code 1 (use -v to see
 invocation)
 make[2]: *** [wesnoth] Error 1
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_games_wesnoth/wesnoth/work/build'
 make[1]: *** [src/CMakeFiles/wesnoth.dir/all] Error 2
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_games_wesnoth/wesnoth/work/build'
 make: *** [all] Error 2
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_games_wesnoth/wesnoth/work/build'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_games_wesnoth/wesnoth/work/build"
 && /usr/bin/make -j16 -w all VERBOSE=ON
 Exit code: 2
 Error: Failed to build wesnoth: command execution failed
 DEBUG: Error code: CHILDSTATUS 30178 2
 }}}
 I'm on Big Sur with Xcode 13.

--

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


More information about the macports-tickets mailing list