(
Jump to the original submission)
Sat 10 Dec 2016 12:22:51 PM UTC, comment #7:
The compiler output
/Users/dak180/Applications/Build/wz2100/trunk/macosx/external/gettext/gettext-runtime/intl/printf.c:25:1: warning: "alloca" redefined
/Users/dak180/Applications/Build/wz2100/trunk/macosx/external/gettext/gettext-runtime/intl/printf.c:7387:64: warning: this is the location of the previous definition
makes no sense. The file printf.c does not have 7387 lines (only 427 lines), and it does not #include itself recursively.
Likely a compiler bug. And it's only a warning.
|
Wed 09 Jun 2010 11:04:07 PM UTC, comment #6:
I have posted the compiler input and output for dcigettext.c and printf.c.
http://pastebin.com/ngK8DdsN
|
Wed 09 Jun 2010 09:47:01 PM UTC, comment #5:
> The particular use case in this instance is to bundle the
> libintl library as a Framework into a mac .app bundle to allow
> for translations.
I see. Looking at
http://developer.apple.com/mac/library/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html
this makes sense.
So why is 'alloca' defined in this case? intl/printf.c,
before line 25, only includes <config.h>. <config.h> is not
supposed to include any system header file. What compiler
options to you pass when compiling a library for a Framework?
|
Wed 09 Jun 2010 06:46:21 PM UTC, comment #4:
A Framework is in this case a dynamic shared library that carries it's header files with it.
The particular use case in this instance is to bundle the libintl library as a Framework into a mac .app bundle to allow for translations.
|
Tue 08 Jun 2010 08:28:41 AM UTC, comment #3:
Thanks for the pointer to the "Framework".
Still, what are you trying to do? The libintl library compiles
to a shared library, not to a Framework, and not to a part of
a Framework.
|
Tue 08 Jun 2010 01:14:05 AM UTC, comment #2:
A framework is a type of dynamic library: see: http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/WhatAreFrameworks.html
You can see the patch: http://pastebin.com/fuV1nniK
|
Mon 24 May 2010 02:30:54 AM UTC, comment #1:
It is not clear to me what you are trying to do when you say
"compiling as a Framework".
The warnings about 'alloca' being redefined sound dangerous.
As if you were using libintl in an environment where it was
not meant to be used.
|
Sun 27 Dec 2009 05:12:19 PM UTC, original submission:
It would seem to me that this could be handled in the same manner as it is in localealias.c by #undef alloca before #define.
sourcefile: gettext-0.17.tar.gz
Mac OS X version: 10.6.2
Xcode version: 3.2.1
gcc version: 4.2.1 (Apple Inc. build 5646) (dot 1)
|
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Follow 5 latest changes.