Opened 14 years ago

Closed 13 years ago

#3645 closed defect (fixed)

BUG: osxvnc fails to build probably from xcode 2.1

Reported by: m@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: nilasae@…
Port:

Description

Oceanus:~ nathan$ port -d install osxvnc DEBUG: Found port in file:///opt/local/var/db/dports/sources/ rsync.rsync.opendarwin.org_dpupdate_dports/aqua/osxvnc DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/ rsync.rsync.opendarwin.org_dpupdate_dports/aqua/osxvnc DEBUG: Requested variant powerpc is not provided by port osxvnc. DEBUG: Requested variant darwin is not provided by port osxvnc. DEBUG: Requested variant macosx is not provided by port osxvnc. DEBUG: Found port in file:///opt/local/var/db/dports/sources/ rsync.rsync.opendarwin.org_dpupdate_dports/archivers/zlib DEBUG: Changing to port directory: /opt/local/var/db/dports/sources/ rsync.rsync.opendarwin.org_dpupdate_dports/archivers/zlib DEBUG: Searching for dependency: zlib DEBUG: Found Dependency: receipt exists for zlib DEBUG: Skipping completed com.apple.main (osxvnc) DEBUG: Skipping completed com.apple.unarchive (osxvnc) DEBUG: Skipping completed com.apple.fetch (osxvnc) DEBUG: Skipping completed com.apple.checksum (osxvnc) DEBUG: Skipping completed com.apple.extract (osxvnc) DEBUG: Skipping completed com.apple.patch (osxvnc) DEBUG: Skipping completed com.apple.configure (osxvnc) ---> Building osxvnc with target -buildstyle Deployment -target OSXvnc DEBUG: Executing com.apple.build (osxvnc) DEBUG: Assembled command: 'cd "/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_aqua_osxvnc/ work/OSXvnc" && /usr/bin/xcodebuild -buildstyle Deployment -target OSXvnc' deprecated option: -buildstyle is no longer supported in xcodebuild. Use -configuration instead. (NOTE: project OSXvnc was written by an older version of Xcode (39) -- temporarily upgrading it to version 42 (without modifying project file))

BUILDING LEGACY TARGET OSXvnc-server WITH CONFIGURATION Deployment

/usr/bin/gnumake (cd libvncauth; make) make[1]: * No rule to make target /usr/include/machine/ansi.h', needed by vncauth.o'. Stop. gnumake: * [libvncauth/libvncauth.a] Error 2 BUILD FAILED Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_aqua_osxvnc/ work/OSXvnc" && /usr/bin/xcodebuild -buildstyle Deployment -target OSXvnc" returned error 1 Command output: deprecated option: -buildstyle is no longer supported in xcodebuild. Use - configuration instead. (NOTE: project OSXvnc was written by an older version of Xcode (39) -- temporarily upgrading it to version 42 (without modifying project file))

BUILDING LEGACY TARGET OSXvnc-server WITH CONFIGURATION Deployment

/usr/bin/gnumake (cd libvncauth; make) make[1]: * No rule to make target /usr/include/machine/ansi.h', needed by vncauth.o'. Stop. gnumake: * [libvncauth/libvncauth.a] Error 2 BUILD FAILED

Warning: the following items did not execute (for osxvnc): com.apple.activate com.apple.build com.apple.destroot com.apple.archive com.apple.install

Change History (5)

comment:1 Changed 14 years ago by z3022016@…

I managed to install osxvnc on Tiger with XCode 2.1 with the following method:

  1. Symlink machine/ansi.h and ppc/ansi.h from the 10.3.9 SDK into /usr/include.
  1. Let Dports download and unpack the source. It won't be able to finish the build yet.
  1. Comment out lines 266 & 267 of work/OSXvnc/JaguarExtensions.m (it's just writing to an error log,

and I couldn't immediately work out what the real problem is.)

  1. Let Dports finish building -- but now the destroot will fail.
  1. Move work/OSXvnc/build/Deployment/OSXvnc.app to work/OSXvnc/build/OSXvnc.app.
  1. Now Dports will happily finish installing, packaging etc.

comment:2 Changed 14 years ago by nilasae@…

Cc: nilasae@… added

comment:3 Changed 14 years ago by z3022016@…

Further investigation has shown that the "wrong type argument to unary exclamation mark" error, which necessitates commenting out the lines in JaguarExtensions.m, is due to the fact that the return value of NSNetService:publish is being checked when that method has a void return type. It is apparently supposed to signal its success or failure through a callback.

comment:4 Changed 14 years ago by mww@…

Summary: osxvnc fails to build probably from xcode 2.1BUG: osxvnc fails to build probably from xcode 2.1

comment:5 Changed 13 years ago by pguyot (Paul Guyot)

Resolution: fixed
Status: newclosed

Fixed with the update.

Note: See TracTickets for help on using tickets.