Problems compiling git under OS X

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
fuori
Level 1
Level 1
Posts: 5
Joined: Tue Nov 18, 2008 9:21 am

Problems compiling git under OS X

Post by fuori »

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: Select all

[...]
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: Select all

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:
James Mckenzie

Problems compiling git under OS X

Post by James Mckenzie »

fuori <[email protected]> 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
fuori
Level 1
Level 1
Posts: 5
Joined: Tue Nov 18, 2008 9:21 am

Post by fuori »

Thanks James, but I already set DYLD_LIBRARY_PATH to those paths, in fact, /opt/local/lib and /opt/local/libexec are the paths MacPorts uses.

I will be trying fink instead of MacPorts, though, and report back then.

Thanks for the heads-up!
fuori
Level 1
Level 1
Posts: 5
Joined: Tue Nov 18, 2008 9:21 am

Post by fuori »

Using fink did not make any difference (of course not... Well worth a shot, anyway), so I switched back to MacPorts as I'm used to it by now.
I triple-checked the paths in DYLD_LIBRARY_PATH and still, ./configure does not recognize the installed libraries.
I then tried 1.1.8 with the animated cursor patch, as really my only goal is to get RA3 to work. ./configure does still complain about not finding the aforesaid libraries, and make quits with a new error:

Code: Select all

../tools/sfnt2fnt -o coue1255.fon -d 128 ./courier.ttf 13,1255,8
dyld: Symbol not found: __cg_jpeg_resync_to_restart
  Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
  Expected in: /port/lib/libJPEG.dylib
/port/lib is the library path my new MacPorts install uses and libJPEG.dylib is present there.

I tried installing wine-devel (which is 1.1.8 ) using MacPorts, too, and it seems to compile just fine, except winecfg won't start due to the following errors:

Code: Select all

noname:wine-1.1.8 fridbert$ winecfg
err:module:load_builtin_dll failed to load .so lib for builtin L"gdi32.dll": dlopen(/port/lib/wine/gdi32.dll.so, 258): Symbol not found: __cg_jpeg_resync_to_restart
  Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
  Expected in: /port/lib/libJPEG
err:module:import_dll Loading library gdi32.dll (which is needed by L"C:\\windows\\system32\\user32.dll") failed (error c000007a).
err:module:import_dll Library user32.dll (which is needed by L"C:\\windows\\system32\\shlwapi.dll") not found
After printing this, it just hangs.

Any clues..?
Zach
Level 2
Level 2
Posts: 32
Joined: Tue May 06, 2008 8:09 pm

Problems compiling git under OS X

Post by Zach »

On Nov 21, 2008, at 11:38 AM, fuori wrote:
I then tried 1.1.8 with the animated cursor patch, as really my only
goal is to get RA3 to work.
OS X's X11 doesn't support GLX 1.3 right now (Which is the minimum
version that Wine requires in order to run stuff with OpenGL). So even
if you did get it working, you wouldn't be able to get the game to run.

If you're using Macports, why not just "sudo port install wine"?

As for the errors, have you tried removing all references to macports
from your $PATH? Try "export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/
local/bin:/usr/texbin:/usr/X11/bin" and then recompiling. It wont have
libjpeg or libpng or any of the others - you need to compile on your
own, but you wont run into the errors.
fuori
Level 1
Level 1
Posts: 5
Joined: Tue Nov 18, 2008 9:21 am

Post by fuori »

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?
Zach
Level 2
Level 2
Posts: 32
Joined: Tue May 06, 2008 8:09 pm

Problems compiling git under OS X

Post by Zach »

On Nov 22, 2008, at 8:39 AM, fuori wrote:
Right.. So is it possible to use Xfree or Xorg instead of Apple's
version?
If you compile on your own, then you can get it to work fine.
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.
er, thats what i meant. Sorry about that one..
I still won't be able to get RA3 to work, though, as OpenGL doesn't
work, right..?
Not unless you compile X.org on your own.
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?
You should try the latest version before older ones if possible.
fuori
Level 1
Level 1
Posts: 5
Joined: Tue Nov 18, 2008 9:21 am

Post by fuori »

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!
Locked