bugGNU gettext - Bugs: bug #45405, VPATH build failure due to missing...

 
 

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

bug #45405: VPATH build failure due to missing libintl.h

Submitter:  Abel Cheung <abelcheung>
Submitted:  Thu 25 Jun 2015 10:44:42 AM UTC
 
Category:  Build Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  ueno
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       No canned response available

 

Fri 13 May 2016 02:56:50 AM UTC, comment #3: 

Closing this, as the fix shipped in 0.19.5.

Daiki Ueno <ueno>
Project Administrator
Fri 26 Jun 2015 10:05:58 AM UTC, comment #2: 

Confirming the bug in this report is indeed fixed by that patch on January, compilation can get past this particular problem, therefore bug report can be closed.

I will give the pretest version more testing instead, becuase there are still other missing header that blocks compilation on 0.19.4. Will report any such problem on mailing list.

Abel Cheung <abelcheung>
Thu 25 Jun 2015 12:14:41 PM UTC, comment #1: 

Thanks for the report.  I think the problem was already fixed by:
http://lists.gnu.org/archive/html/bug-gettext/2015-01/msg00000.html

It would be nice if you have a chance to test the current pretest versions:
http://lists.gnu.org/archive/html/bug-gettext/2015-06/msg00037.html

Daiki Ueno <ueno>
Project Administrator
Thu 25 Jun 2015 10:44:42 AM UTC, original submission:  

The failure occurs in gettext-tools/intl/pluralx.c:

libtool: compile:  gcc -std=gnu99 -c [...flags...] -I. -I../../../gettext-0.19.4/gettext-tools/../gettext-runtime/intl -I.. -g -O2 -fvisibility=hidden pluralx.c  -fPIC -DPIC -o .libs/pluralx.o
../../../gettext-0.19.4/gettext-tools/../gettext-runtime/intl/plural.c:313:59: fatal error: libintl.h: No such file or directory
compilation terminated.

Such failure can be reproduced by removing system bundled libintl.h before doing a VPATH build of gettext. Currently gettext-tools/intl/Makefile contains ".", ".." and "$(top_srcdir)/../gettext-runtime/intl" as include path, but those paths don't contain libintl.h which is generated and therefore resides under $(top_builddir)/../gettext-runtime/intl.

In general it wouldn't fail because there is still a fallback libintl.h located in system include paths, but when that fallback header is not present (in clean room build, or in cross compile environment) the problem becomes apparent.

However I'm not entirely sure what's the correct fix: should gettext reuse existing libintl.h on system (but risk mix-and-mismatch), or guarantee compilation is self-contained by fixing sed usage in gettext-tools/configure.ac ?

Abel Cheung <abelcheung>

 

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

Attach Files:
   
   
Comment:
   

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 (Updated the item)
  • -email is unavailable- added by ueno (Posted a comment)
  • -email is unavailable- added by abelcheung (Submitted the item)
  •  

    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.

    Only logged-in users can vote.

     

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-27 haible CategoryNone Build
        Assigned toNone ueno
    2016-05-13 ueno StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top


    Powered by Savane 3.9