bugGNU gettext - Bugs: bug #28418, When compiling as a Framework...

 
 

bug #28418: When compiling as a Framework 'alloca' is redefined at intl/dcigettext.c:36 and /intl/printf.c:25

Submitted by:  None
Submitted on:  Sun 27 Dec 2009 05:12:19 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Need Info
Privacy: PublicAssigned to: Bruno Haible <haible>
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

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

Anonymous
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?

Bruno Haible <haible>
Project AdministratorIn charge of this item.
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.

Anonymous
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.

Bruno Haible <haible>
Project AdministratorIn charge of this item.
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

Anonymous
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.

Bruno Haible <haible>
Project AdministratorIn charge of this item.
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)

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by haible (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 24 May 2010 02:30:54 AM UTChaibleStatusNone=>Need Info
      Assigned toNone=>haible

    Back to the top


    Powered by Savane 3.1-cleanup