bugGNU gettext - Bugs: bug #27138, Gettext 0.17 will not compile on...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #27138: Gettext 0.17 will not compile on current verison of MinGW / Cygwin

Submitted by:  None
Submitted on:  Wed 29 Jul 2009 03:02:07 PM UTC  
 
Category: BuildSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Bruno Haible <haible>
Open/Closed: Closed

Sat 15 Aug 2009 01:15:37 AM UTC, comment #2:

Thanks for the report. I have made the check for a working
getopt facility more accurate. Now it rejects the buggy
implementation in mingw's libmingwex.a and uses the GNU
getopt instead - like already done on Cygwin. With this, the
exports in gettextlib-exports.c are the same again for mingw
as for Cygwin.

The fix will be contained in gettext-0.18.

Bruno Haible <haible>
Project AdministratorIn charge of this item.
Wed 29 Jul 2009 03:12:23 PM UTC, comment #1:

I should clarify that by Cygwin I mean using Cygwin to compile a native Windows library using the -mno-cygwin CFLAG as described in README.woe32. I am sure that it probably compiles just fine when using the Cygwin libraries.

Anonymous
Wed 29 Jul 2009 03:02:07 PM UTC, original submission:

Gettext fails to link properly when compiled with the current version of MinGW or Cygwin, generating the following errors:

Creating library file: .libs/libgettextlib.dll.a
Cannot export rpl_optarg: symbol not defined
Cannot export rpl_optind: symbol not defined
../woe32dll/.libs/gettextlib-exports.o:gettextlib-exports.c:(.data+0x24):
undefined reference to `_rpl_optarg'
../woe32dll/.libs/gettextlib-exports.o:gettextlib-exports.c:(.data+0x28):
undefined reference to `_rpl_optind'
collect2: ld returned 1 exit status

The problem is with gettext-tools/woe32dll/gettextlib-exports.c. The following lines cause linker errors when using the current version of MinGW libraries to compile Gettext 0.17:

VARIABLE(rpl_optarg)
VARIABLE(rpl_optind)

If you comment them out, Gettext will compile successfully. Maybe these lines should be conditionalized to check for the version of MinGW where the problem happens but I'm not sure the best way to do this.

See https://bugzilla.redhat.com/show_bug.cgi?id=467398 for more details.

Anonymous

 

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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 27 Nov 2016 12:20:35 AM UTChaibleCategoryNone=>Build
    Sat 15 Aug 2009 01:15:37 AM UTChaibleOpen/ClosedOpen=>Closed
      StatusNone=>Fixed
      Assigned toNone=>haible

    Back to the top


    Powered by Savane 3.1-cleanup1