mainThe GNU Bourne-Again SHell - Support: sr #109469, bison 3.0 incompatibility with...

 
 

sr #109469: bison 3.0 incompatibility with internal intl

Submitter:  Alexander von Gluck IV <kallisti5>
Submitted:  Fri 02 Mar 2018 01:53:15 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Works For Me
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 06 Mar 2018 09:11:22 PM UTC, comment #1: 

That's why plural.c comes in the distribution, with a timestamp newer than plural.y. You should be able to get the plural.c from the original tar file or from git, touch it, and be good to go.

Chet Ramey <chet>
Group administrator
Fri 02 Mar 2018 01:53:15 AM UTC, original submission:  

Getting the following internal intl error when compiling bash 4.4.012 without readline. (thus internal intl + readline used)

Full logs attached.


powerpc-apple-haiku-gcc -c -DLOCALEDIR=\"/packages/bash_bootstrap-4.4.012-1/.self/data/locale\" -DLOCALE_ALIAS_PATH=\"/packages/bash_bootstrap-4.4.012-1/.self/data/locale\" -DLIBDIR=\"/packages/bash_bootstrap-4.4.012-1/.self/libdata\" -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/packages/bash_bootstrap-4.4.012-1/.self/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -DSHELL -I. -I. -I/home/kallisti5/Code/haiku/generated.ppc/objects/haiku/ppc/packaging/repositories/HaikuPortsCross-build/app-shells/bash_bootstrap/work-4.4.012/sources/bash-4.4 -I../..  -g -O2 -Wno-parentheses -Wno-format-security  osdep.c
powerpc-apple-haiku-gcc -c -DHAVE_CONFIG_H -DSHELL   -I. -I/home/kallisti5/Code/haiku/generated.ppc/objects/haiku/ppc/packaging/repositories/HaikuPortsCross-build/app-shells/bash_bootstrap/work-4.4.012/sources/bash-4.4 -I../.. -I../../lib  -g -O2 -Wno-parentheses -Wno-format-security terminal.c
powerpc-apple-haiku-gcc -c -DLOCALEDIR=\"/packages/bash_bootstrap-4.4.012-1/.self/data/locale\" -DLOCALE_ALIAS_PATH=\"/packages/bash_bootstrap-4.4.012-1/.self/data/locale\" -DLIBDIR=\"/packages/bash_bootstrap-4.4.012-1/.self/libdata\" -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/packages/bash_bootstrap-4.4.012-1/.self/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -DSHELL -I. -I. -I/home/kallisti5/Code/haiku/generated.ppc/objects/haiku/ppc/packaging/repositories/HaikuPortsCross-build/app-shells/bash_bootstrap/work-4.4.012/sources/bash-4.4 -I../..  -g -O2 -Wno-parentheses -Wno-format-security  intl-compat.c
cmp libgnuintl.h libintl.h || cp libgnuintl.h libintl.h
rm -f text.o
In file included from plural.y:37:0:
plural-exp.h:104:23: error: conflicting types for 'libintl_gettextparse'
 # define PLURAL_PARSE libintl_gettextparse
                       ^
plural.y:42:25: note: in expansion of macro 'PLURAL_PARSE'
 # define __gettextparse PLURAL_PARSE
                         ^
plural.c:189:5: note: in expansion of macro '__gettextparse'
 int __gettextparse (void);
     ^
plural-exp.h:104:23: note: previous declaration of 'libintl_gettextparse' was here
 # define PLURAL_PARSE libintl_gettextparse
                       ^
plural-exp.h:116:12: note: in expansion of macro 'PLURAL_PARSE'
 extern int PLURAL_PARSE PARAMS ((void *arg));
            ^
plural-exp.h:104:23: error: conflicting types for 'libintl_gettextparse'
 # define PLURAL_PARSE libintl_gettextparse
                       ^
plural.y:42:25: note: in expansion of macro 'PLURAL_PARSE'
 # define __gettextparse PLURAL_PARSE
                         ^
plural.c:63:25: note: in expansion of macro '__gettextparse'
 #define yyparse         __gettextparse
                         ^
plural.c:1134:1: note: in expansion of macro 'yyparse'
 yyparse (void)
 ^
plural-exp.h:104:23: note: previous declaration of 'libintl_gettextparse' was here
 # define PLURAL_PARSE libintl_gettextparse
                       ^
plural-exp.h:116:12: note: in expansion of macro 'PLURAL_PARSE'
 extern int PLURAL_PARSE PARAMS ((void *arg));
            ^
plural.c: In function 'libintl_gettextparse':
plural.c:64:25: error: too few arguments to function '__gettextlex'
 #define yylex           __gettextlex
                         ^
plural.c:1303:16: note: in expansion of macro 'yylex'
       yychar = yylex (&yylval);
                ^
plural.c:64:25: note: declared here
 #define yylex           __gettextlex
                         ^
plural.y:71:12: note: in expansion of macro 'yylex'
 static int yylex PARAMS ((YYSTYPE lval, const char *pexp));
            ^
plural.y:180:29: error: 'arg' undeclared (first use in this function)
      ((struct parse_args *) arg)->res = $1;
                             ^
plural.y:180:29: note: each undeclared identifier is reported only once for each function it appears in
cmp: libintl.h: No such file or directory
powerpc-apple-haiku-gcc -c -DHAVE_CONFIG_H -DSHELL   -I. -I/home/kallisti5/Code/haiku/generated.ppc/objects/haiku/ppc/packaging/repositories/HaikuPortsCross-build/app-shells/bash_bootstrap/work-4.4.012/sources/bash-4.4 -I../.. -I../../lib  -g -O2 -Wno-parentheses -Wno-format-security text.c
make[1]: * [Makefile:175: plural.o] Error 1
make[1]: * Waiting for unfinished jobs....




Saw this issue here. Seems to be a common problem with projects using an older internal intl/readline:

https://github.com/zerovm/glibc/commit/9f3f5229848390ae921f77c92f666ca6f0bff

Alexander von Gluck IV <kallisti5>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #43433:  intl-full-logs.txt added by kallisti5 (76KiB - text/plain - full logs)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by chet (Posted a comment)
  • -email is unavailable- added by kallisti5 (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-03-06 chet StatusNone Works For Me
    2018-03-02 kallisti5 Attached File- Added intl-full-logs.txt, #43433

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code