Skip to content

Fails to build with icu v76.1 #26

@merkys

Description

@merkys

Debian will migrate to icu v76.1 soon. It has been reported that cif_api v0.4.2 fails to build with icu v76.1 with the following output:

gcc -DHAVE_CONFIG_H -I. -I..  -std=c89 -pedantic   -I ../uthash -Wall 
-Wextra -Wformat=2 -Winit-self -Wno-switch -Wno-switch-default 
-Wstrict-aliasing=2 -Wshadow -Wpointer-arith -Wc++-compat -Wcast-align 
-Wwrite-strings -Waggregate-return -Wstrict-prototypes 
-Wmissing-prototypes -Wredundant-decls -Wnested-externs 
-Wno-missing-field-initializers  -Wdate-time -D_FORTIFY_SOURCE=3  -g -O3 
-Werror=implicit-function-declaration -fno-omit-frame-pointer 
-mno-omit-leaf-frame-pointer -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-flto=auto -ffat-lto-objects -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security 
-fcf-protection 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/cif-api-0.4.2-5build2 -c -o 
test_create_block1.o `test -f 'tests/test_create_block1.c' || echo 
'./'`tests/test_create_block1.c
gcc -DHAVE_CONFIG_H -I. -I..  -std=c89 -pedantic   -I ../uthash -Wall 
-Wextra -Wformat=2 -Winit-self -Wno-switch -Wno-switch-default 
-Wstrict-aliasing=2 -Wshadow -Wpointer-arith -Wc++-compat -Wcast-align 
-Wwrite-strings -Waggregate-return -Wstrict-prototypes 
-Wmissing-prototypes -Wredundant-decls -Wnested-externs 
-Wno-missing-field-initializers  -Wdate-time -D_FORTIFY_SOURCE=3  -g -O3 
-Werror=implicit-function-declaration -fno-omit-frame-pointer 
-mno-omit-leaf-frame-pointer -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-flto=auto -ffat-lto-objects -fstack-protector-strong 
-fstack-clash-protection -Wformat -Werror=format-security 
-fcf-protection 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/cif-api-0.4.2-5build2 -c -o 
test_create_block2.o `test -f 'tests/test_create_block2.c' || echo 
'./'`tests/test_create_block2.c
In file included from /usr/include/unicode/ptypes.h:46,
                 from /usr/include/unicode/umachine.h:46,
                 from /usr/include/unicode/utypes.h:38,
                 from /usr/include/unicode/ustring.h:21,
                 from tests/test_create_block1.c:27:
tests/test_create_block1.c: In function ‘main’:
tests/test_create_block1.c:35:5: error: pasting "u" and ""block"" does 
not give a valid preprocessing token
   35 |     U_STRING_DECL(block_code, "block", 6);
      |     ^~~~~~~~~~~~~
tests/test_create_block1.c:35:5: error: ‘u’ undeclared (first use in 
this function)
tests/test_create_block1.c:35:5: note: each undeclared identifier is 
reported only once for each function it appears in
tests/test_create_block1.c:35:31: error: expected ‘,’ or ‘;’ before 
string constant
   35 |     U_STRING_DECL(block_code, "block", 6);
      |                               ^~~~~~~

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions