[Unison-hackers] Undefined Symbols

Janosch Peters petersj at in.tum.de
Fri Jul 31 11:35:14 EDT 2009


Hi list,

I get undefined symbols if I compile with UISTYLE=gtk2. I have gtk2 
@2.16.3_0+no_x11+quartz installed. Is this supposed to work or do I 
need the x11 variant? The output I get is the following:

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_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:
      _unix_write in libunix.a(write.o)
      _unix_single_write in libunix.a(write.o)
      _do_write in libasmrun.a(io.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_sys_error in libasmrun.a(sys.o)
      _caml_pthread_check in libthreadsnat.a(posix_n.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)
  "_sigwait$UNIX2003", referenced from:
      _caml_wait_signal in libthreadsnat.a(posix_n.o)
  "_chmod$UNIX2003", referenced from:
      _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
** BUILD FAILED **

The following build commands failed:
uimac:
	Ld /Users/jp/Code/unison/trunk/src/uimacnew/build/Default/
Unison.app/Contents/MacOS/Unison normal i386
(1 failure)




More information about the Unison-hackers mailing list