[MacPorts] #70619: discord-rpc fails to build on 10.6: error: '__bridge' undeclared (first use in this function)

MacPorts noreply at macports.org
Sun Aug 25 15:05:07 UTC 2024


#70619: discord-rpc fails to build on 10.6: error: '__bridge' undeclared (first use
in this function)
-----------------------------------------+-------------------------
 Reporter:  barracuda156                 |      Owner:  (none)
     Type:  defect                       |     Status:  new
 Priority:  Normal                       |  Milestone:
Component:  ports                        |    Version:  2.10.1
 Keywords:  tiger, leopard, snowleopard  |       Port:  discord-rpc
-----------------------------------------+-------------------------
 https://github.com/discord/discord-rpc/issues/399

 {{{
 [ 57%] Building CXX object src/CMakeFiles/discord-
 rpc.dir/serialization.cpp.o
 cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-
 rpc/work/build/src && /opt/local/bin/ccache /opt/local/bin/g++-mp-14
 -DDISCORD_BUILDING_SDK -DDISCORD_DYNAMIC_LIB -DDISCORD_OSX
 -Ddiscord_rpc_EXPORTS
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/include -pipe -Os -DNDEBUG -I/opt/local/include
 -D_GLIBCXX_USE_CXX11_ABI=0 -std=gnu++14 -arch ppc -mmacosx-version-
 min=10.6 -fPIC -g -Wall -Wextra -Wpedantic -Wno-unknown-pragmas -Wno-old-
 style-cast -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-missing-
 noreturn -Wno-padded -Wno-covered-switch-default -Wno-exit-time-
 destructors -Wno-global-constructors -fPIC -MD -MT src/CMakeFiles/discord-
 rpc.dir/serialization.cpp.o -MF CMakeFiles/discord-
 rpc.dir/serialization.cpp.o.d -o CMakeFiles/discord-
 rpc.dir/serialization.cpp.o -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/serialization.cpp
 cc1obj: warning: command-line option '-Wno-old-style-cast' is valid for
 C++/ObjC++ but not for ObjC
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m: In function
 'RegisterCommand':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:10:5: warning: C++ style
 comments are not allowed in ISO C90
    10 |     // There does not appear to be a way to register arbitrary
 commands on OSX, so instead we'll save the command
       |     ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:10:5: note: (this will be
 reported only once per input file)
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:20:5: warning: ISO C90
 forbids mixed declarations and code [-Wdeclaration-after-statement]
    20 |     NSString *path = [[[[[[home
 stringByAppendingPathComponent:@"Library"]
       |     ^~~~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:28:5: warning: ISO C90
 forbids mixed declarations and code [-Wdeclaration-after-statement]
    28 |     NSString *jsonBuffer = [NSString
 stringWithFormat:@"{\"command\": \"%s\"}", command];
       |     ^~~~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m: In function 'RegisterURL':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:36:5: warning: ISO C90
 forbids mixed declarations and code [-Wdeclaration-after-statement]
    36 |     CFStringRef cfURL = CFStringCreateWithCString(NULL, url,
 kCFStringEncodingUTF8);
       |     ^~~~~~~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:44:5: warning: ISO C90
 forbids mixed declarations and code [-Wdeclaration-after-statement]
    44 |     NSURL* myURL = [[NSBundle mainBundle] bundleURL];
       |     ^~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:50:63: error: '__bridge'
 undeclared (first use in this function)
    50 |     OSStatus status = LSSetDefaultHandlerForURLScheme(cfURL,
 (__bridge CFStringRef)myBundleId);
       |
 ^~~~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:50:63: note: each undeclared
 identifier is reported only once for each function it appears in
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:50:71: error: expected ')'
 before 'CFStringRef'
    50 |     OSStatus status = LSSetDefaultHandlerForURLScheme(cfURL,
 (__bridge CFStringRef)myBundleId);
       |                                                              ~
 ^~~~~~~~~~~~
       |
 )
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:50:84: error: expected ')'
 before 'myBundleId'
    50 |     OSStatus status = LSSetDefaultHandlerForURLScheme(cfURL,
 (__bridge CFStringRef)myBundleId);
       |                                                      ~
 ^~~~~~~~~~
       |
 )
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:50:5: warning: ISO C90
 forbids mixed declarations and code [-Wdeclaration-after-statement]
    50 |     OSStatus status = LSSetDefaultHandlerForURLScheme(cfURL,
 (__bridge CFStringRef)myBundleId);
       |     ^~~~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:56:37: error: expected ')'
 before 'CFURLRef'
    56 |     status = LSRegisterURL((__bridge CFURLRef)myURL, true);
       |                            ~        ^~~~~~~~~
       |                                     )
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:56:47: error: expected ')'
 before 'myURL'
    56 |     status = LSRegisterURL((__bridge CFURLRef)myURL, true);
       |                           ~                   ^~~~~
       |                                               )
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:56:14: error: too few
 arguments to function 'LSRegisterURL'
    56 |     status = LSRegisterURL((__bridge CFURLRef)myURL, true);
       |              ^~~~~~~~~~~~~
 In file included from
 /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LaunchServices.h:25,
                  from
 /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:41,
                  from
 /System/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:17,
                  from
 /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:81,
                  from
 /System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:4:
 /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSInfo.h:975:1:
 note: declared here
   975 | LSRegisterURL(
       | ^~~~~~~~~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m: In function
 'Discord_Register':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:69:9: error: stray '@' in
 program
    69 |         @autoreleasepool {
       |         ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:69:10: error:
 'autoreleasepool' undeclared (first use in this function); did you mean
 'NSAutoreleasePool'?
    69 |         @autoreleasepool {
       |          ^~~~~~~~~~~~~~~
       |          NSAutoreleasePool
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:69:25: error: expected ';'
 before '{' token
    69 |         @autoreleasepool {
       |                         ^~
       |                         ;
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m: At top level:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:32:13: warning:
 'RegisterURL' defined but not used [-Wunused-function]
    32 | static void RegisterURL(const char* applicationId)
       |             ^~~~~~~~~~~
 cc1obj: note: unrecognized command-line option '-Wno-global-constructors'
 may have been intended to silence earlier diagnostics
 cc1obj: note: unrecognized command-line option '-Wno-exit-time-
 destructors' may have been intended to silence earlier diagnostics
 cc1obj: note: unrecognized command-line option '-Wno-covered-switch-
 default' may have been intended to silence earlier diagnostics
 cc1obj: note: unrecognized command-line option '-Wno-c++98-compat-
 pedantic' may have been intended to silence earlier diagnostics
 cc1obj: note: unrecognized command-line option '-Wno-c++98-compat' may
 have been intended to silence earlier diagnostics
 make[2]: *** [src/CMakeFiles/discord-
 rpc_static.dir/discord_register_osx.m.o] Error 1
 make[2]: *** Waiting for unfinished jobs....
 [ 64%] Building CXX object src/CMakeFiles/discord-
 rpc.dir/connection_unix.cpp.o
 cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-
 rpc/work/build/src && /opt/local/bin/ccache /opt/local/bin/g++-mp-14
 -DDISCORD_BUILDING_SDK -DDISCORD_DYNAMIC_LIB -DDISCORD_OSX
 -Ddiscord_rpc_EXPORTS
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/include -pipe -Os -DNDEBUG -I/opt/local/include
 -D_GLIBCXX_USE_CXX11_ABI=0 -std=gnu++14 -arch ppc -mmacosx-version-
 min=10.6 -fPIC -g -Wall -Wextra -Wpedantic -Wno-unknown-pragmas -Wno-old-
 style-cast -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-missing-
 noreturn -Wno-padded -Wno-covered-switch-default -Wno-exit-time-
 destructors -Wno-global-constructors -fPIC -MD -MT src/CMakeFiles/discord-
 rpc.dir/connection_unix.cpp.o -MF CMakeFiles/discord-
 rpc.dir/connection_unix.cpp.o.d -o CMakeFiles/discord-
 rpc.dir/connection_unix.cpp.o -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/connection_unix.cpp
 [ 71%] Building C object src/CMakeFiles/discord-
 rpc.dir/discord_register_osx.m.o
 cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-
 rpc/work/build/src && /opt/local/bin/ccache /opt/local/bin/gcc-mp-14
 -DDISCORD_BUILDING_SDK -DDISCORD_DYNAMIC_LIB -DDISCORD_OSX
 -Ddiscord_rpc_EXPORTS
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/include -pipe -Os -DNDEBUG -I/opt/local/include -arch
 ppc -mmacosx-version-min=10.6 -fPIC -g -Wall -Wextra -Wpedantic -Wno-
 unknown-pragmas -Wno-old-style-cast -Wno-c++98-compat -Wno-c++98-compat-
 pedantic -Wno-missing-noreturn -Wno-padded -Wno-covered-switch-default
 -Wno-exit-time-destructors -Wno-global-constructors -fPIC -MD -MT
 src/CMakeFiles/discord-rpc.dir/discord_register_osx.m.o -MF CMakeFiles
 /discord-rpc.dir/discord_register_osx.m.o.d -o CMakeFiles/discord-
 rpc.dir/discord_register_osx.m.o -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-
 rpc/work/build'
 make[1]: *** [src/CMakeFiles/discord-rpc_static.dir/all] Error 2
 make[1]: *** Waiting for unfinished jobs....
 cc1obj: warning: command-line option '-Wno-old-style-cast' is valid for
 C++/ObjC++ but not for ObjC
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m: In function
 'RegisterCommand':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:10:5: warning: C++ style
 comments are not allowed in ISO C90
    10 |     // There does not appear to be a way to register arbitrary
 commands on OSX, so instead we'll save the command
       |     ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:10:5: note: (this will be
 reported only once per input file)
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:20:5: warning: ISO C90
 forbids mixed declarations and code [-Wdeclaration-after-statement]
    20 |     NSString *path = [[[[[[home
 stringByAppendingPathComponent:@"Library"]
       |     ^~~~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:28:5: warning: ISO C90
 forbids mixed declarations and code [-Wdeclaration-after-statement]
    28 |     NSString *jsonBuffer = [NSString
 stringWithFormat:@"{\"command\": \"%s\"}", command];
       |     ^~~~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m: In function 'RegisterURL':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:36:5: warning: ISO C90
 forbids mixed declarations and code [-Wdeclaration-after-statement]
    36 |     CFStringRef cfURL = CFStringCreateWithCString(NULL, url,
 kCFStringEncodingUTF8);
       |     ^~~~~~~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:44:5: warning: ISO C90
 forbids mixed declarations and code [-Wdeclaration-after-statement]
    44 |     NSURL* myURL = [[NSBundle mainBundle] bundleURL];
       |     ^~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:50:63: error: '__bridge'
 undeclared (first use in this function)
    50 |     OSStatus status = LSSetDefaultHandlerForURLScheme(cfURL,
 (__bridge CFStringRef)myBundleId);
       |
 ^~~~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:50:63: note: each undeclared
 identifier is reported only once for each function it appears in
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:50:71: error: expected ')'
 before 'CFStringRef'
    50 |     OSStatus status = LSSetDefaultHandlerForURLScheme(cfURL,
 (__bridge CFStringRef)myBundleId);
       |                                                              ~
 ^~~~~~~~~~~~
       |
 )
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:50:84: error: expected ')'
 before 'myBundleId'
    50 |     OSStatus status = LSSetDefaultHandlerForURLScheme(cfURL,
 (__bridge CFStringRef)myBundleId);
       |                                                      ~
 ^~~~~~~~~~
       |
 )
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:50:5: warning: ISO C90
 forbids mixed declarations and code [-Wdeclaration-after-statement]
    50 |     OSStatus status = LSSetDefaultHandlerForURLScheme(cfURL,
 (__bridge CFStringRef)myBundleId);
       |     ^~~~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:56:37: error: expected ')'
 before 'CFURLRef'
    56 |     status = LSRegisterURL((__bridge CFURLRef)myURL, true);
       |                            ~        ^~~~~~~~~
       |                                     )
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:56:47: error: expected ')'
 before 'myURL'
    56 |     status = LSRegisterURL((__bridge CFURLRef)myURL, true);
       |                           ~                   ^~~~~
       |                                               )
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:56:14: error: too few
 arguments to function 'LSRegisterURL'
    56 |     status = LSRegisterURL((__bridge CFURLRef)myURL, true);
       |              ^~~~~~~~~~~~~
 In file included from
 /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LaunchServices.h:25,
                  from
 /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:41,
                  from
 /System/Library/Frameworks/Foundation.framework/Headers/NSURLError.h:17,
                  from
 /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:81,
                  from
 /System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:10,
                  from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:4:
 /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSInfo.h:975:1:
 note: declared here
   975 | LSRegisterURL(
       | ^~~~~~~~~~~~~
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m: In function
 'Discord_Register':
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:69:9: error: stray '@' in
 program
    69 |         @autoreleasepool {
       |         ^
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:69:10: error:
 'autoreleasepool' undeclared (first use in this function); did you mean
 'NSAutoreleasePool'?
    69 |         @autoreleasepool {
       |          ^~~~~~~~~~~~~~~
       |          NSAutoreleasePool
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:69:25: error: expected ';'
 before '{' token
    69 |         @autoreleasepool {
       |                         ^~
       |                         ;
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m: At top level:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-rpc/work
 /discord-rpc-3.4.0/src/discord_register_osx.m:32:13: warning:
 'RegisterURL' defined but not used [-Wunused-function]
    32 | static void RegisterURL(const char* applicationId)
       |             ^~~~~~~~~~~
 cc1obj: note: unrecognized command-line option '-Wno-global-constructors'
 may have been intended to silence earlier diagnostics
 cc1obj: note: unrecognized command-line option '-Wno-exit-time-
 destructors' may have been intended to silence earlier diagnostics
 cc1obj: note: unrecognized command-line option '-Wno-covered-switch-
 default' may have been intended to silence earlier diagnostics
 cc1obj: note: unrecognized command-line option '-Wno-c++98-compat-
 pedantic' may have been intended to silence earlier diagnostics
 cc1obj: note: unrecognized command-line option '-Wno-c++98-compat' may
 have been intended to silence earlier diagnostics
 make[2]: *** [src/CMakeFiles/discord-rpc.dir/discord_register_osx.m.o]
 Error 1
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_games_discord-rpc/discord-
 rpc/work/build'
 make[1]: *** [src/CMakeFiles/discord-rpc.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_discord-rpc/discord-
 rpc/work/build'
 make: *** [all] Error 2
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/70619>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list