Summary: | sys-devel/gettext-0.18.1.1-r2 fails to build stpncpy.c | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Peter Abrahamsen <rainhead> |
Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | OS X | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | emerge --info |
Description
Peter Abrahamsen
2011-09-21 18:33:46 UTC
Sorry, the error is: libtool: compile: x86_64-apple-darwin10-gcc -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///gentoo/usr/include/libxml2 -I./libcroco -I/gentoo/usr/include -O2 -pipe -march=nocona -msse -mfpmath=sse -c stpncpy.c -fno-common -DPIC -o .libs/stpncpy.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 is this during bootstrap? We have a workaround applied for quite some time, IMO for this issue, now. No, this is just emerge -uDNav world. Actually - the error, for me, happened during the bootstrap. How long has the 'workaround' been around? I certainly did not know about it, and was not able to find it, in August, when I wrote this blog post. This having been said, once the system was bootstrapped, trying to emerge gettext did yield the same error. On a perhaps related note, the 10.7 profile cannot be selected, so I'm on 10.6 (see emerge --info). I'm bootstrapping at the moment (10.7), and gettext compiles out of the box. I also have it installed without any problems in my current prefix on Lion. *** This bug has been marked as a duplicate of bug 383277 *** #383277 is not a duplicate of this bug, because while I trust bootstrap now works, upgrading to this package does not. You're on 10.6 (at least your profile is)? If you're on Lion, then fix your make.profile symlink to point to 10.7, and try again. Hey, guys. I'm running into this problem, so I found this report. I switched over my profile to 10.7, but I still can't compile gettext on update. I think something is still broken. Hi, is this bug going to get any attention? I still can't compile gettext normally. I still have to do that compile hack. This time, I'm trying to upgrade to gettext-0.18.1.1-r3. Same old bug: stpncpy.c:34: error: expected declaration specifiers or '...' before numeric constantstpncpy.c:34: error: expected ')' before '!=' token stpncpy.c:34: error: expected ')' before '?' token make[4]: *** [stpncpy.lo] Error 1 I definitely have my profile set to 10.7. Can you be any clearer on this? You mention you updated your profile or something, so what happened? Did you upgrade OSX from 10.6 to 10.7? Are you bootstrapping? What Xcode do you have installed? I had bootstrapped Gentoo Prefix, I think, on Snow Leopard, although it could have been Leopard. When I upgraded to Lion, I encountered this bug when upgrading gettext, and then I found this bug report. At the time, I had to manually set the symlink to set the profile to 10.7, but that had no effect. Since then I tried using eselect, but that didn't help either. I currently have Xcode 4.1 installed. I updated to Xcode 4.2.1. No change. Ok, I think your problem is caused by an incorrect toolset, somehow due to the OS upgrade you did. To be honest, I don't intent to support this at all. I think you should re-bootstrap. Most likely, this is caused by gcc's fix-included files, which are now out-of-date compared to the host-provided ones. So, you could try to rebuild gcc, one way or another (last resort/try: CC="/usr/bin/gcc -m64"), before re-bootstrapping from scratch. If that all fails, a clean re-bootstrap really is the best starting point. |