GNOME Bugzilla – Bug 657711
bockbuild fails on OS X Lion
Last modified: 2011-09-03 17:20:07 UTC
I've been trying to get the bockbuild instructions working on OS X Lion. After updating the profile to look for the new 10.7 SDK the darwin profile fails during gettext compilation. libtool: compile: gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I.. -I../intl -I../intl -I.. -I.. -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1 -I../intl -I///Developer/SDKs/MacOSX10.7.sdk/usr/include/libxml2 -I./libcroco -I/Users/davidnielsen/Projekter/bockbuild/profiles/banshee/build-root/_install/include -D_XOPEN_SOURCE -isysroot /Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.5 -m32 -arch i386 -I/Users/davidnielsen/Projekter/bockbuild/profiles/banshee/build-root/_install/include -D_XOPEN_SOURCE -isysroot /Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.5 -m32 -arch i386 -c strchrnul.c -fno-common -DPIC -o .libs/strchrnul.o stpncpy.c:34: error: expected declaration specifiers or ‘...’ before numeric constant stpncpy.c:34: error: expected ‘)’ before ‘!=’ token stpncpy.c:34: error: expected ‘)’ before ‘?’ token make[4]: *** [stpncpy.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... libtool: compile: gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I.. -I../intl -I../intl -I.. -I.. -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1 -I../intl -I///Developer/SDKs/MacOSX10.7.sdk/usr/include/libxml2 -I./libcroco -I/Users/davidnielsen/Projekter/bockbuild/profiles/banshee/build-root/_install/include -D_XOPEN_SOURCE -isysroot /Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.5 -m32 -arch i386 -I/Users/davidnielsen/Projekter/bockbuild/profiles/banshee/build-root/_install/include -D_XOPEN_SOURCE -isysroot /Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.5 -m32 -arch i386 -c stat.c -o stat.o >/dev/null 2>&1 libtool: compile: gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I.. -I../intl -I../intl -I.. -I.. -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1 -I../intl -I///Developer/SDKs/MacOSX10.7.sdk/usr/include/libxml2 -I./libcroco -I/Users/davidnielsen/Projekter/bockbuild/profiles/banshee/build-root/_install/include -D_XOPEN_SOURCE -isysroot /Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.5 -m32 -arch i386 -I/Users/davidnielsen/Projekter/bockbuild/profiles/banshee/build-root/_install/include -D_XOPEN_SOURCE -isysroot /Developer/SDKs/MacOSX10.7.sdk -mmacosx-version-min=10.5 -m32 -arch i386 -c strchrnul.c -o strchrnul.o >/dev/null 2>&1 make[3]: *** [all] Error 2 make[2]: *** [all-recursive] Error 1 make[1]: *** [all] Error 2 make: *** [all-recursive] Error 1 ERROR: command exited with exit code 512: make -j4
Looks that's an issue with gettext on Lion. A bit of googling found these, with a patch : https://github.com/mxcl/homebrew/issues/5353 https://gist.github.com/866636 On a related note, you might be interested in this pull request : https://github.com/abock/bockbuild/pull/5
With mhutch's changes we are getting closer. The Banshee profile just needs to be updated for dbus-sharp it seems. configure: error: Package requirements (dbus-sharp-glib-1.0 >= 0.5) were not met: No package 'dbus-sharp-glib-1.0' found I also pinged Aaron and he will look at the 3 outstanding pull requests for bockbuild soon so hopefully we will be back to having working instructions for building on OS X soon.
Yep, dbus-sharp is needed to get a Linux bundle too. I'll try to get to it, but probably not before the week-end, so feel free to beat me to it ;)
Created attachment 195326 [details] [review] Introduce dbus-sharp(-glib) This goes ontop of mhutch's bockbuild
Created attachment 195327 [details] [review] update dep list for dbus-sharp more of the same
Created attachment 195496 [details] [review] bump mono-addins and mono to latest Fix the Mono-addins extension bug by bumping to 6.2.x and update mono to latest for various improvements (I guess this one is strictly optional but recommended by upstream as I understand for OS X Lion)
Whoops, turns out the first two patches were already included in my merge request for bockbuild. I'll mark them as obsolete. I added the dbus-sharp deps for the 2.1.0 bundle and completely forgot about it. Sorry ! I've applied the third patch and I'll update my merge request with it, after I've done some tests with the linux bundle.
I've updated my merge request : https://github.com/abock/bockbuild/pull/4 I'm closing this as fixed, as the fixes are out there, even if they haven't reached bockbuild git master yet.