Opened 3 years ago

Last modified 3 years ago

#64732 assigned defect

barrier @2.4.0: error: expected unqualified-id before '=' token

Reported by: barracuda156 Owned by: ryanakca (Ryan Kavanagh)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: powerpc, snowleopard, rosetta, leopard Cc:
Port: barrier

Description

Failure on 10.6.8 Rosetta:

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier/barrier/work/barrier-2.4.0/src/lib/platform/OSXMediaKeySupport.mm: In function 'KeyID convertNXKeyTypeToKeyID(uint32_t)':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier/barrier/work/barrier-2.4.0/src/lib/platform/OSXMediaKeySupport.mm:65:6: error: expected unqualified-id before '=' token
   id = kKeyAudioUp;
      ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier/barrier/work/barrier-2.4.0/src/lib/platform/OSXMediaKeySupport.mm:68:6: error: expected unqualified-id before '=' token
   id = kKeyAudioDown;
      ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier/barrier/work/barrier-2.4.0/src/lib/platform/OSXMediaKeySupport.mm:71:6: error: expected unqualified-id before '=' token
   id = kKeyAudioMute;
      ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier/barrier/work/barrier-2.4.0/src/lib/platform/OSXMediaKeySupport.mm:74:6: error: expected unqualified-id before '=' token
   id = kKeyEject;
      ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier/barrier/work/barrier-2.4.0/src/lib/platform/OSXMediaKeySupport.mm:77:6: error: expected unqualified-id before '=' token
   id = kKeyAudioPlay;
      ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier/barrier/work/barrier-2.4.0/src/lib/platform/OSXMediaKeySupport.mm:81:6: error: expected unqualified-id before '=' token
   id = kKeyAudioNext;
      ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier/barrier/work/barrier-2.4.0/src/lib/platform/OSXMediaKeySupport.mm:85:6: error: expected unqualified-id before '=' token
   id = kKeyAudioPrev;
      ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier/barrier/work/barrier-2.4.0/src/lib/platform/OSXMediaKeySupport.mm: In function 'bool isMediaKeyEvent(CGEventRef)':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier/barrier/work/barrier-2.4.0/src/lib/platform/OSXMediaKeySupport.mm:97:7: error: '-fobjc-exceptions' is required to enable Objective-C exception syntax
  @try {
       ^
make[2]: *** [src/lib/platform/CMakeFiles/platform.dir/OSXMediaKeySupport.mm.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier/barrier/work/barrier-2.4.0/src/lib/platform/OSXScreen.mm:51:29: warning: multi-character character constant [-Wmultichar]
  kBarrierMouseScrollAxisX = 'saxx',
                             ^~~~~~
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier/barrier/work/barrier-2.4.0/src/lib/platform/OSXScreen.mm:52:29: warning: multi-character character constant [-Wmultichar]
  kBarrierMouseScrollAxisY = 'saxy'
                             ^~~~~~
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier/barrier/work/barrier-2.4.0/src/lib/platform/OSXScreen.mm:351:26: warning: multi-character character constant [-Wmultichar]
   EventHotKeyID hkid = { 'SNRG', (UInt32)id };
                          ^~~~~~
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier/barrier/work/barrier-2.4.0/src/lib/platform/OSXPasteboardPeeker.mm: In function 'const __CFString* getDraggedFileURL()':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier/barrier/work/barrier-2.4.0/src/lib/platform/OSXPasteboardPeeker.mm:31:15: error: expected ';' before 'in'
  for (id file in files) {
               ^~
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier/barrier/work/barrier-2.4.0/src/lib/platform/OSXPasteboardPeeker.mm:31:15: error: 'in' was not declared in this scope
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier/barrier/work/barrier-2.4.0/src/lib/platform/OSXPasteboardPeeker.mm:31:15: note: suggested alternative: 'yn'
  for (id file in files) {
               ^~
               yn
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier/barrier/work/barrier-2.4.0/src/lib/platform/OSXPasteboardPeeker.mm:31:18: error: expected ';' before 'files'
  for (id file in files) {
                  ^~~~~
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier/barrier/work/barrier-2.4.0/src/lib/platform/OSXPasteboardPeeker.mm:33:25: warning: embedded NUL in CFString literal [--all-warnings]
   [string appendString: @"\0"];
                         ^
make[2]: *** [src/lib/platform/CMakeFiles/platform.dir/OSXPasteboardPeeker.mm.o] Error 1
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier/barrier/work/barrier-2.4.0/src/lib/platform/OSXScreen.mm: In member function 'virtual UInt32 OSXScreen::registerHotKey(KeyID, KeyModifierMask)':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier/barrier/work/barrier-2.4.0/src/lib/platform/OSXScreen.mm:330:6: error: expected unqualified-id before '=' token
   id = m_oldHotKeyIDs.back();
      ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier/barrier/work/barrier-2.4.0/src/lib/platform/OSXScreen.mm:334:6: error: expected unqualified-id before '=' token
   id = m_hotKeys.size() + 1;
      ^
make[2]: *** [src/lib/platform/CMakeFiles/platform.dir/OSXScreen.mm.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier/barrier/work/build'
make[1]: *** [src/lib/platform/CMakeFiles/platform.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_aqua_barrier/barrier/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_aqua_barrier/barrier/work/build'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_barrier/barrier/work/build" && /usr/bin/make -j4 -w all VERBOSE=ON 
Exit code: 2
Error: Failed to build barrier: command execution failed

Same failure has been reported for 10.5.8: https://forums.macrumors.com/threads/request-help-porting-barrier-kvm-to-ppc-leopard-tiger.2314836/

Attachments (1)

main.log (339.5 KB) - added by barracuda156 3 years ago.

Download all attachments as: .zip

Change History (3)

Changed 3 years ago by barracuda156

Attachment: main.log added

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

Owner: set to ryanakca
Status: newassigned
Summary: barrier fails to build for ppcbarrier @2.4.0: error: expected unqualified-id before '=' token

According to the barrier web page, barrier 2.4.0 requires macOS 10.12 or later for the GUI though the CLI portion should be usable on some earlier versions. The port currently doesn't build on 10.11 or earlier.

comment:2 in reply to:  1 Changed 3 years ago by barracuda156

Replying to ryandesign:

According to the barrier web page, barrier 2.4.0 requires macOS 10.12 or later for the GUI though the CLI portion should be usable on some earlier versions. The port currently doesn't build on 10.11 or earlier.

Yeah, the task is to build it without GUI at least.

Note: See TracTickets for help on using tickets.