Opened 9 years ago

Closed 5 months ago

#24721 closed defect (fixed)

unison +aqua build fails (port may be hard-coded to expect 10.5 SDK?)

Reported by: jwhowse4 Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: haspatch Cc: Joe@…, amyersturnbull@…, kenyon@…, neukomp@…, larryv (Lawrence Velázquez), ryandesign (Ryan Schmidt), cooljeanius (Eric Gallager), Polyergic (Shad Sterling), MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Port: unison

Description

On an Intel mac running Leopard 10.5.8 and Xcode 3.1.4, my unison build with the +aqua flag fails with the following error. Any idea what is wrong?

Ld /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.32.52/uimacnew/build/Default/Unison.app/Contents/MacOS/Unison normal i386
    mkdir /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.32.52/uimacnew/build/Default/Unison.app/Contents/MacOS
    cd /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.32.52/uimacnew
    setenv MACOSX_DEPLOYMENT_TARGET 10.4
    /Developer/usr/bin/gcc-4.0 -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -L/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.32.52/uimacnew/build/Default -F/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.32.52/uimacnew/build/Default -F/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.32.52/uimacnew -filelist /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.32.52/uimacnew/build/uimacnew.build/Default/uimac.build/Objects-normal/i386/Unison.LinkFileList -mmacosx-version-min=10.4 -L/opt/macports/lib/ocaml -lunix -lthreadsnat -lstr -lbigarray -lasmrun -framework Cocoa -framework Security -framework Growl -framework ExceptionHandling /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.32.52/uimacnew/../unison-blob.o -o /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.32.52/uimacnew/build/Default/Unison.app/Contents/MacOS/Unison
Undefined symbols:
  "_fcntl$UNIX2003", referenced from:
      _caml_sys_open in libasmrun.a(sys.o)
      _unix_set_nonblock in libunix.a(fcntl.o)
      _unix_set_nonblock in libunix.a(fcntl.o)
      _unix_clear_nonblock in libunix.a(fcntl.o)
      _unix_clear_nonblock in libunix.a(fcntl.o)
      _unix_set_close_on_exec in libunix.a(fcntl.o)
      _unix_set_close_on_exec in libunix.a(fcntl.o)
      _unix_clear_close_on_exec in libunix.a(fcntl.o)
      _unix_clear_close_on_exec in libunix.a(fcntl.o)
      _unix_lockf in libunix.a(lockf.o)
      _unix_lockf in libunix.a(lockf.o)
      _unix_lockf in libunix.a(lockf.o)
      _unix_lockf in libunix.a(lockf.o)
      _unix_lockf in libunix.a(lockf.o)
      _unix_lockf in libunix.a(lockf.o)
  "_tcdrain$UNIX2003", referenced from:
      _unix_tcdrain in libunix.a(termios.o)
  "_pthread_cond_init$UNIX2003", referenced from:
      _caml_thread_reinitialize in libthreadsnat.a(posix_n.o)
      _caml_threadstatus_new in libthreadsnat.a(posix_n.o)
      _caml_condition_new in libthreadsnat.a(posix_n.o)
  "_open$UNIX2003", referenced from:
      _caml_sys_open in libasmrun.a(sys.o)
      _unix_open in libunix.a(open.o)
  "_write$UNIX2003", referenced from:
      _do_write in libasmrun.a(io.o)
      _unix_write in libunix.a(write.o)
      _unix_single_write in libunix.a(write.o)
      _caml_ba_map_file in libbigarray.a(mmap_unix.o)
  "_waitpid$UNIX2003", referenced from:
      _unix_waitpid in libunix.a(wait.o)
  "_strerror$UNIX2003", referenced from:
      _caml_pthread_check in libthreadsnat.a(posix_n.o)
      _caml_sys_error in libasmrun.a(sys.o)
      _unix_error_message in libunix.a(errmsg.o)
  "_sigsuspend$UNIX2003", referenced from:
      _unix_sigsuspend in libunix.a(signals.o)
  "_kill$UNIX2003", referenced from:
      _unix_kill in libunix.a(kill.o)
  "_fchmod$UNIX2003", referenced from:
      _unix_fchmod in libunix.a(fchmod.o)
  "_getrlimit$UNIX2003", referenced from:
      _segv_handler in libasmrun.a(signals_asm.o)
  "_close$UNIX2003", referenced from:
      _caml_close_channel in libasmrun.a(io.o)
      _caml_ml_close_channel in libasmrun.a(io.o)
      _caml_sys_close in libasmrun.a(sys.o)
      _unix_close in libunix.a(close.o)
      _alloc_sockaddr in libunix.a(socketaddr.o)
  "_pthread_sigmask$UNIX2003", referenced from:
      _caml_thread_tick in libthreadsnat.a(posix_n.o)
      _caml_thread_sigmask in libthreadsnat.a(posix_n.o)
  "_strtod$UNIX2003", referenced from:
      _caml_float_of_substring in libasmrun.a(floats.o)
      _caml_float_of_string in libasmrun.a(floats.o)
  "_read$UNIX2003", referenced from:
      _caml_do_read in libasmrun.a(io.o)
      _unix_read in libunix.a(read.o)
  "_wait$UNIX2003", referenced from:
      _unix_wait in libunix.a(wait.o)
  "_sleep$UNIX2003", referenced from:
      _unix_sleep in libunix.a(sleep.o)
  "_select$UNIX2003", referenced from:
      _caml_thread_tick in libthreadsnat.a(posix_n.o)
      _unix_select in libunix.a(select.o)
  "_fputs$UNIX2003", referenced from:
      _caml_fatal_error in libasmrun.a(misc.o)
      _caml_parse_engine in libasmrun.a(parsing.o)
  "_sigaltstack$UNIX2003", referenced from:
      _caml_init_signals in libasmrun.a(signals_asm.o)
  "_nice$UNIX2003", referenced from:
      _unix_nice in libunix.a(nice.o)
  "_sigwait$UNIX2003", referenced from:
      _caml_wait_signal in libthreadsnat.a(posix_n.o)
  "_chmod$UNIX2003", referenced from:
      _setFileInfos in unison-blob.o
      _setFileInfos in unison-blob.o
      _unix_chmod in libunix.a(chmod.o)
  "_system$UNIX2003", referenced from:
      _caml_sys_system_command in libasmrun.a(sys.o)
  "_mktime$UNIX2003", referenced from:
      _unix_mktime in libunix.a(gmtime.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status

PBXCp build/Default/Unison.app/Contents/Frameworks/Growl.framework Growl.framework
    mkdir /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.32.52/uimacnew/build/Default/Unison.app/Contents/Frameworks
    cd /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.32.52/uimacnew
    /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -strip-debug-symbols -resolve-src-symlinks /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.32.52/uimacnew/Growl.framework /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.32.52/uimacnew/build/Default/Unison.app/Contents/Frameworks
** BUILD FAILED **

The following build commands failed:
uimac:
        Ld /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.32.52/uimacnew/build/Default/Unison.app/Contents/MacOS/Unison normal i386
(1 failure)

make: *** [macexecutable] Error 1
Error: Target org.macports.build returned: shell command " cd "/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_ports_net_unison/work/unison-2.32.52" && /usr/bin/make -j1 all NATIVE=true THREADS=true UISTYLE=macnew " returned error 2
Warning: the following items did not execute (for unison): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Change History (19)

comment:1 Changed 9 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to eridius@…
Port: unison added

comment:2 Changed 9 years ago by jmroot (Joshua Root)

Summary: unsion build failsunison +aqua build fails, using 10.4 SDK on 10.5

comment:3 Changed 9 years ago by Joe@…

This patch worked for me (I'm not sure if this is how I should submit this, let me know if you need a different format):

--- uimacnew/uimacnew.xcodeproj/project.pbxproj.orig	2010-05-23 14:33:33.000000000 -0400
+++ uimacnew/uimacnew.xcodeproj/project.pbxproj	2010-05-23 14:33:55.000000000 -0400
@@ -682,7 +682,7 @@
 			baseConfigurationReference = 2E282CCC0D9AE2E800439D01 /* ExternalSettings.xcconfig */;
 			buildSettings = {
 				LIBRARY_SEARCH_PATHS = "";
-				SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+				SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
 				USER_HEADER_SEARCH_PATHS = $OCAMLLIBDIR;
 			};
 			name = Deployment;
@@ -692,7 +692,7 @@
 			baseConfigurationReference = 2E282CCC0D9AE2E800439D01 /* ExternalSettings.xcconfig */;
 			buildSettings = {
 				LIBRARY_SEARCH_PATHS = "";
-				SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+				SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
 				USER_HEADER_SEARCH_PATHS = $OCAMLLIBDIR;
 			};
 			name = Default;

comment:4 Changed 9 years ago by Joe@…

Cc: Joe@… added

Cc Me!

comment:5 Changed 9 years ago by jmroot (Joshua Root)

Owner: changed from eridius@… to macports-tickets@…

comment:6 Changed 8 years ago by l2g@…

Owner: changed from macports-tickets@… to l2g@…

comment:7 Changed 8 years ago by jmroot (Joshua Root)

The SDKROOT lines should be set to ${configure.sdkroot}, or deleted entirely if that variable is empty.

comment:8 Changed 7 years ago by ryandesign (Ryan Schmidt)

The problem remains in modified form: the current version of unison +aqua is looking for the 10.5 SDK, which doesn't exist by default on a Lion install of Xcode. See #32297.

comment:9 Changed 7 years ago by l2g@…

Summary: unison +aqua build fails, using 10.4 SDK on 10.5unison +aqua build fails (port may be hard-coded to expect 10.5 SDK?)

comment:10 Changed 6 years ago by amyersturnbull@…

Cc: amyersturnbull@… added

Cc Me!

comment:11 Changed 6 years ago by kenyon@…

Cc: kenyon@… added

Cc Me!

comment:12 in reply to:  8 Changed 6 years ago by ryandesign (Ryan Schmidt)

Cc: neukomp@… larryv@… ryandesign@… added
Keywords: haspatch added

Replying to ryandesign@…:

The problem remains in modified form: the current version of unison +aqua is looking for the 10.5 SDK

A patch for this was submitted by larryv in #40052.

comment:13 Changed 6 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:14 Changed 5 years ago by bouttier__macports@…

I still run into the same bug (in the form reported in #40052) under Mavericks. Will try larryv's patch...

comment:15 Changed 5 years ago by Polyergic (Shad Sterling)

Cc: me@… added

Cc Me!

comment:16 Changed 5 years ago by mf2k (Frank Schima)

Owner: changed from l2g@… to macports-tickets@…

This port is no longer maintained. See #44276.

comment:17 Changed 5 years ago by hmeine (Hans Meine)

I wonder if this should be closed in faver of #40052, just because the latter is much more complete and useful.

In any case, I applied the patch, too, using

curl 'https://trac.macports.org/raw-attachment/ticket/40052/remove-sdk.patch' | sudo patch -d $(port dir unison) -p0

and while it solves the problem of the missing SDK, unison does not build due to some genuine build errors, obviously the same as in https://trac.macports.org/attachment/ticket/40052/main.2.log

comment:18 Changed 5 months ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: MarcusCalhoun-Lopez added

comment:19 Changed 5 months ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: newclosed

I believe this issue was fixed in in a recent update.
If not, the +aqua variant no longer exists on older system.

Note: See TracTickets for help on using tickets.