View Issue Details

IDProjectCategoryView StatusLast Update
0005826libmicrohttpdbuild systempublic2019-08-13 09:43
ReporterTuxHandwerkerAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformX86_64OSCentOSOS Version7.6
Product Version0.9.66 
Target VersionFixed in Version 
Summary0005826: Software tests fails using gcc 8.3.1
Descriptionmake check will fail's with:
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -I../../src/microhttpd -fvisibility=hidden -I/builddir/build/BUILD/gvm-helper-0.0.1/libassuan-2.5.3/src -I/builddir/build/BUILD/gvm-helper-0.0.1/libgpg-error-1.36/src -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fno-strict-aliasing -c -o test_md5.o test_md5.c
test_md5.c: In function 'test1_str':
test_md5.c:226:3: error: 'for' loop initial declarations are only allowed in C99 mode
   for (unsigned int i = 0; i < units1_num; i++)
   ^
test_md5.c:226:3: note: use option -std=c99 or -std=gnu99 to compile your code
test_md5.c: In function 'test1_bin':
test_md5.c:243:3: error: 'for' loop initial declarations are only allowed in C99 mode
   for (unsigned int i = 0; i < units2_num; i++)
   ^
test_md5.c: In function 'test2_str':
test_md5.c:261:3: error: 'for' loop initial declarations are only allowed in C99 mode
   for (unsigned int i = 0; i < units1_num; i++)
   ^
test_md5.c: In function 'test2_bin':
test_md5.c:280:3: error: 'for' loop initial declarations are only allowed in C99 mode
   for (unsigned int i = 0; i < units2_num; i++)
TagsNo tags attached.

Activities

TuxHandwerker

2019-08-13 09:29

reporter  

config.log (221,228 bytes)

TuxHandwerker

2019-08-13 09:41

reporter   ~0014781

set -std=c99 will allow to pass the test_md5 tests, but result later in an coredump:
PASS: test_str_compare
PASS: test_str_to_value
PASS: test_str_token
PASS: test_http_reasons
PASS: test_md5
PASS: test_sha256
PASS: test_start_stop
PASS: test_daemon
PASS: test_options
PASS: test_upgrade
../../build-aux/test-driver: line 107: 13539 Aborted (core dumped) "$@" > $log_file 2>&1
FAIL: test_upgrade_large
PASS: test_upgrade_tls
../../build-aux/test-driver: line 107: 13652 Aborted (core dumped) "$@" > $log_file 2>&1
FAIL: test_upgrade_large_tls
PASS: test_postprocessor
PASS: test_postprocessor_large
PASS: test_postprocessor_amp
PASS: test_shutdown_select
PASS: test_shutdown_poll

TuxHandwerker

2019-08-13 09:43

reporter   ~0014782

Hint: I added this patch, to build it.
https://git.gnunet.org/libmicrohttpd.git/commit/?id=b84ee1fa41c53c43aa7ed1583c36af5cb7c77a0f

Issue History

Date Modified Username Field Change
2019-08-13 09:29 TuxHandwerker New Issue
2019-08-13 09:29 TuxHandwerker File Added: config.log
2019-08-13 09:41 TuxHandwerker Note Added: 0014781
2019-08-13 09:43 TuxHandwerker Note Added: 0014782