wine 0.9.49_0 won't build on Mac OS X 10.5.1 Leopard
make[2]: Nothing to be done for `all'.[[BR]]
../../tools/winegcc/winegcc -B../../tools/winebuild -shared ./crtdll.spec crtdll_main.o -o crtdll.dll.so -lmsvcrt -lkernel32 ../../libs/port/libwine_port.a -L/opt/local/lib -framework CoreServices -lz[[BR]]
./crtdll.spec:44: external symbol 'CRTDLL__basemajor_dll' is not a function[[BR]]
./crtdll.spec:45: external symbol 'CRTDLL__baseminor_dll' is not a function[[BR]]
./crtdll.spec:46: external symbol 'CRTDLL__baseversion_dll' is not a function[[BR]]
./crtdll.spec:66: external symbol 'CRTDLL__cpumode_dll' is not a function[[BR]]
./crtdll.spec:243: external symbol 'CRTDLL__osmajor_dll' is not a function[[BR]]
./crtdll.spec:244: external symbol 'CRTDLL__osminor_dll' is not a function[[BR]]
./crtdll.spec:245: external symbol 'CRTDLL__osmode_dll' is not a function[[BR]]
./crtdll.spec:247: external symbol 'CRTDLL__osversion_dll' is not a function[[BR]]
winegcc: ../../tools/winebuild/winebuild failed[[BR]]
make[2]: *** [crtdll.dll.so] Error 2[[BR]]
make[1]: *** [crtdll] Error 2[[BR]]
make: *** [dlls] Error 2[[BR]]
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_wine/work/wine-0.9.49" && make depend all " returned error 2[[BR]]
Command output: make[2]: Nothing to be done for `all'.[[BR]]
make[2]: Nothing to be done for `all'.[[BR]]
make[2]: Nothing to be done for `all'.[[BR]]
make[2]: Nothing to be done for `all'.[[BR]]
make[2]: Nothing to be done for `all'.[[BR]]
make[2]: Nothing to be done for `all'.[[BR]]
make[2]: Nothing to be done for `all'.[[BR]]
make[2]: Nothing to be done for `all'.[[BR]]
make[2]: Nothing to be done for `all'.[[BR]]
make[2]: Nothing to be done for `all'.[[BR]]
make[2]: Nothing to be done for `all'.[[BR]]
make[2]: Nothing to be done for `all'.[[BR]]
make[2]: Nothing to be done for `all'.[[BR]]
make[2]: Nothing to be done for `all'.[[BR]]
make[2]: Nothing to be done for `all'.[[BR]]
make[2]: Nothing to be done for `all'.[[BR]]
make[2]: Nothing to be done for `all'.[[BR]]
../../tools/winegcc/winegcc -B../../tools/winebuild -shared ./crtdll.spec crtdll_main.o -o crtdll.dll.so -lmsvcrt -lkernel32 ../../libs/port/libwine_port.a -L/opt/local/lib -framework CoreServices -lz [[BR]]
./crtdll.spec:44: external symbol 'CRTDLL__basemajor_dll' is not a function[[BR]]
./crtdll.spec:45: external symbol 'CRTDLL__baseminor_dll' is not a function[[BR]]
./crtdll.spec:46: external symbol 'CRTDLL__baseversion_dll' is not a function[[BR]]
./crtdll.spec:66: external symbol 'CRTDLL__cpumode_dll' is not a function[[BR]]
./crtdll.spec:243: external symbol 'CRTDLL__osmajor_dll' is not a function[[BR]]
./crtdll.spec:244: external symbol 'CRTDLL__osminor_dll' is not a function[[BR]]
./crtdll.spec:245: external symbol 'CRTDLL__osmode_dll' is not a function[[BR]]
./crtdll.spec:247: external symbol 'CRTDLL__osversion_dll' is not a function[[BR]]
winegcc: ../../tools/winebuild/winebuild failed[[BR]]
make[2]: *** [crtdll.dll.so] Error 2[[BR]]
make[1]: *** [crtdll] Error 2[[BR]]
make: *** [dlls] Error 2[[BR]]
Warning: the following items did not execute (for wine): org.macports.activate org.macports.build org.macports.destroot org.macports.install[[BR]]
Error: Status 1 encountered during processing.[[BR]]
A quick workaround that worked for me is to manually execute make in the directories that these errors are produced. So you start by
$ port install wine
$ cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_wine/work/wine-0.9.49/dlls/crtdll/ && make
$ port install wine (again)
then when the next error occurs you simply change to that directory and execute make again.