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

Submitter:  None
Submitted:  Wed 29 Jul 2009 03:02:07 PM UTC
   
 
Category:  Build Severity:  3 - Normal
Item Group:  None Status:  Fix Released
Privacy:  Public Assigned to:  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>
Group administrator
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

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-01-04 haible StatusFixed Fix Released
    2016-11-27 haible CategoryNone Build
    2009-08-15 haible Open/ClosedOpen Closed
        StatusNone Fixed
        Assigned toNone haible

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code