Hi there! I am currently trying to compile hacks.git under OS X and I can't seem to get past the following error during 'make': Code: [...] gcc -o wineserver async.o atom.o change.o class.o clipboard.o completion.o console.o context_alpha.o context_i386.o context_powerpc.o context_sparc.o context_x86_64.o cursoricon.o debugger.o device.o directory.o event.o fd.o file.o handle.o hook.o mach.o mailslot.o main.o mapping.o mutex.o named_pipe.o object.o process.o procfs.o ptrace.o queue.o region.o registry.o request.o semaphore.o serial.o signal.o snapshot.o sock.o symlink.o thread.o timer.o token.o trace.o unicode.o user.o window.o winstation.o -L../libs/wine -lwine ../libs/port/libwine_port.a && install_name_tool -change @executable_path/`../tools/relpath /Users/fridbert/winegit/bin /Users/fridbert/winegit/lib`/libwine.1.dylib @executable_path/../libs/wine/libwine.1.dylib wineserver || rm -f wineserver Undefined symbols: "_sched_setscheduler", referenced from: _set_thread_priority in thread.o ld: symbol(s) not found collect2: ld returned 1 exit status gcc -o wineserver-installed async.o atom.o change.o class.o clipboard.o completion.o console.o context_alpha.o context_i386.o context_powerpc.o context_sparc.o context_x86_64.o cursoricon.o debugger.o device.o directory.o event.o fd.o file.o handle.o hook.o mach.o mailslot.o main.o mapping.o mutex.o named_pipe.o object.o process.o procfs.o ptrace.o queue.o region.o registry.o request.o semaphore.o serial.o signal.o snapshot.o sock.o symlink.o thread.o timer.o token.o trace.o unicode.o user.o window.o winstation.o -L../libs/wine -lwine ../libs/port/libwine_port.a Undefined symbols: "_sched_setscheduler", referenced from: _set_thread_priority in thread.o ld: symbol(s) not found collect2: ld returned 1 exit status make[1]: *** [wineserver-installed] Error 1 make: *** [server] Error 2 At the end of ./configure --prefix="somepath" I'm told that some libs (like jpeg, png and capi) couldn't be found (even though they have actually been installed using MacPorts - any hints on this issue are welcome as well :)) but shouldn't wine compile nonetheless? 'make depend', on the other hand, finishes flawlessly. I'm using the latest Xcode, here's some 'make -v' and 'env': Code: noname:hacks fridbert$ make -v GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for powerpc-apple-darwin9.0 noname:hacks fridbert$ env MANPATH=/usr/share/man:/usr/local/share/man:/usr/X11/man TERM_PROGRAM=Apple_Terminal TERM=xterm-color SHELL=/bin/bash TMPDIR=/var/folders/53/535qdDm6EPeq2lw7M-Nu-E+++TI/-Tmp-/ Apple_PubSub_Socket_Render=/tmp/launch-LNF6Ah/Render TERM_PROGRAM_VERSION=240 OLDPWD=/Users/fridbert USER=fridbert COMMAND_MODE=unix2003 SSH_AUTH_SOCK=/tmp/launch-2cmeuX/Listeners __CF_USER_TEXT_ENCODING=0x1F5:0:0 PATH=/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin PWD=/Users/fridbert/hacks LANG=en_GB.UTF-8 SHLVL=1 HOME=/Users/fridbert DYLD_LIBRARY_PATH=/opt/local/lib:/opt/local/libexec: LOGNAME=fridbert DISPLAY=/tmp/launch-yww72R/:0 SECURITYSESSIONID=b07c70 _=/usr/bin/env If any more information is required I'm happy to provide it. Thanks in advance! [Wink]
fuori <wineforum-user at winehq.org> at Nov 18, 2008 8:26 AM (MST) wrote about [Wine] Problems compiling git under OS X> >Hi there! >I am currently trying to compile hacks.git under OS X and I can't seem to get past the following error during 'make': > > >DYLD_LIBRARY_PATH=/opt/local/lib:/opt/local/libexec:This line should also have the path to the library files installed by MacPorts. Since I use Fink, this line would look like: DYLD_LIBRARY_PATH=/opt/local/lib:/opt/local/libexec:/sw/lib:/sw/fink/lib: Look for the directories that MacPorts put the actual build libraries and the additional soft links to them. This may be /usr/local/lib or a similar directory. No need to wink here! James McKenzie
Thanks James, but I already set DYLD_LIBRARY_PATH to those paths, in fact, /opt/local/lib and /opt/local/libexec are taken from MacPorts. I will be trying fink instead of MacPorts, though, and report back then. Thanks for the heads-up!
Right.. So is it possible to use Xfree or Xorg instead of Apple's version? I don't really get what $PATH has got to do with the libraries - $PATH contains information on where to find executables, doesn't it..? I will try to remove the libpaths from $DYLD_LIBRARY_PATH, though, and try compiling again, so thanks for the heads-up. I still won't be able to get RA3 to work, though, as OpenGL doesn't work, right..? I did try installing wine using MacPorts, as mentioned above, although I do need the devel package as the current stable release won't let me play RA3, will it?
So, I did wipe out $DYLD_LIBRARY_PATH and 1.1.9 compiled flawlessly. I'm yet install RA3, though, due to a lack of time. Thanks for all the hints and I will be reporting back as soon as I find the time to test with 1.1.9 and patched 1.1.8!