After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 657711 - bockbuild fails on OS X Lion
bockbuild fails on OS X Lion
Status: RESOLVED FIXED
Product: banshee
Classification: Other
Component: general
unspecified
Other Mac OS
: Normal normal
: ---
Assigned To: Banshee Maintainers
Banshee Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-08-30 14:13 UTC by David Nielsen
Modified: 2011-09-03 17:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Introduce dbus-sharp(-glib) (1.03 KB, patch)
2011-08-31 17:11 UTC, David Nielsen
none Details | Review
update dep list for dbus-sharp (716 bytes, patch)
2011-08-31 17:14 UTC, David Nielsen
none Details | Review
bump mono-addins and mono to latest (1.40 KB, patch)
2011-09-02 15:52 UTC, David Nielsen
none Details | Review

Description David Nielsen 2011-08-30 14:13:21 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
Comment 1 Bertrand Lorentz 2011-08-30 18:46:34 UTC
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
Comment 2 David Nielsen 2011-08-31 16:34:13 UTC
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.
Comment 3 Bertrand Lorentz 2011-08-31 16:48:33 UTC
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 ;)
Comment 4 David Nielsen 2011-08-31 17:11:17 UTC
Created attachment 195326 [details] [review]
Introduce dbus-sharp(-glib)

This goes ontop of mhutch's bockbuild
Comment 5 David Nielsen 2011-08-31 17:14:19 UTC
Created attachment 195327 [details] [review]
update dep list for dbus-sharp

more of the same
Comment 6 David Nielsen 2011-09-02 15:52:34 UTC
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)
Comment 7 Bertrand Lorentz 2011-09-02 20:26:56 UTC
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.
Comment 8 Bertrand Lorentz 2011-09-03 17:20:07 UTC
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.