Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384007 - sys-devel/gettext-0.18.1.1-r2 fails to build stpncpy.c
Summary: sys-devel/gettext-0.18.1.1-r2 fails to build stpncpy.c
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-21 18:33 UTC by Peter Abrahamsen
Modified: 2012-06-23 00:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,3.51 KB, text/plain)
2011-09-21 18:33 UTC, Peter Abrahamsen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Abrahamsen 2011-09-21 18:33:46 UTC
Created attachment 287343 [details]
emerge --info

This:
http://trevoke.net/blog/2011/08/08/gentoo-prefix-on-lion-gettext-problem/

gettext does not build on 10.7.
Comment 1 Peter Abrahamsen 2011-09-21 18:34:23 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
Comment 2 Fabian Groffen gentoo-dev 2011-09-21 18:38:42 UTC
is this during bootstrap?  We have a workaround applied for quite some time, IMO for this issue, now.
Comment 3 Peter Abrahamsen 2011-09-21 18:40:52 UTC
No, this is just emerge -uDNav world.
Comment 4 Aldric Giacomoni 2011-09-21 19:08:46 UTC
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.
Comment 5 Peter Abrahamsen 2011-09-21 19:09:43 UTC
On a perhaps related note, the 10.7 profile cannot be selected, so I'm on 10.6 (see emerge --info).
Comment 6 Fabian Groffen gentoo-dev 2011-09-21 19:34:17 UTC
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.
Comment 7 Fabian Groffen gentoo-dev 2011-09-21 20:00:22 UTC

*** This bug has been marked as a duplicate of bug 383277 ***
Comment 8 Peter Abrahamsen 2011-10-05 22:33:54 UTC
#383277 is not a duplicate of this bug, because while I trust bootstrap now works, upgrading to this package does not.
Comment 9 Fabian Groffen gentoo-dev 2011-10-06 06:34:59 UTC
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.
Comment 10 Timothy Miller 2011-12-18 03:37:17 UTC
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.
Comment 11 Timothy Miller 2012-06-22 01:16:32 UTC
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.
Comment 12 Fabian Groffen gentoo-dev 2012-06-22 02:43:56 UTC
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?
Comment 13 Timothy Miller 2012-06-22 13:44:17 UTC
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.
Comment 14 Timothy Miller 2012-06-22 14:37:22 UTC
I updated to Xcode 4.2.1.  No change.
Comment 15 Fabian Groffen gentoo-dev 2012-06-23 00:46:22 UTC
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.