Skip to content

Instantly share code, notes, and snippets.

@mpontillo
Created January 14, 2023 20:37
Show Gist options
  • Save mpontillo/daf7166f420b0b22d82b7ddcfeb04c51 to your computer and use it in GitHub Desktop.
Save mpontillo/daf7166f420b0b22d82b7ddcfeb04c51 to your computer and use it in GitHub Desktop.
attempt to build and run radvd checks
$ git clean -f -d -x
$ git status
HEAD detached at robbat2/fix-cease-adv-testcase
nothing to commit, working tree clean
$ autoreconf -f -i -v
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: /usr/bin/autoconf --force
configure.ac:18: warning: The macro `AC_CANONICAL_SYSTEM' is obsolete.
configure.ac:18: You should run autoupdate.
./lib/autoconf/general.m4:2081: AC_CANONICAL_SYSTEM is expanded from...
configure.ac:18: the top level
configure.ac:50: warning: The macro `AC_PROG_CC_C99' is obsolete.
configure.ac:50: You should run autoupdate.
./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from...
configure.ac:50: the top level
configure.ac:67: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:67: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:67: the top level
configure.ac:112: warning: AC_PROG_LEX without either yywrap or noyywrap is obsolete
./lib/autoconf/programs.m4:716: _AC_PROG_LEX is expanded from...
./lib/autoconf/programs.m4:709: AC_PROG_LEX is expanded from...
aclocal.m4:1004: AM_PROG_LEX is expanded from...
configure.ac:112: the top level
configure.ac:162: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.ac:162: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
configure.ac:162: the top level
configure.ac:177: warning: The macro `AC_HEADER_TIME' is obsolete.
configure.ac:177: You should run autoupdate.
./lib/autoconf/headers.m4:743: AC_HEADER_TIME is expanded from...
configure.ac:177: the top level
configure.ac:181: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:181: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:181: the top level
configure.ac:188: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:188: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:188: the top level
configure.ac:245: warning: 'AM_CONFIG_HEADER': this macro is obsolete.
configure.ac:245: You should use the 'AC_CONFIG_HEADERS' macro instead.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
aclocal.m4:1099: AM_CONFIG_HEADER is expanded from...
configure.ac:245: the top level
configure.ac:246: warning: AC_OUTPUT should be used without arguments.
configure.ac:246: You should run autoupdate.
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:52: installing './ar-lib'
configure.ac:50: installing './compile'
configure.ac:18: installing './config.guess'
configure.ac:18: installing './config.sub'
configure.ac:19: installing './install-sh'
configure.ac:19: installing './missing'
Makefile.am: installing './depcomp'
configure.ac: installing './ylwrap'
parallel-tests: installing './test-driver'
autoreconf: Leaving directory '.'
$ CHECK_CFLAGS="-DPRINT_SAFE_BUFFER=1" ./configure --with-check
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking architecture... linux
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking for ar... ar
checking the archiver (ar) interface... ar
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for check >= 0.9.4... yes
checking netlink... yes
checking for library containing clock_gettime... none required
checking for library containing strlcpy... -lbsd
checking for rm... /usr/bin/rm
checking for sed... /usr/bin/sed
checking for ln... /usr/bin/ln
checking for bison... bison -y
checking for flex... flex
checking for lex output file root... lex.yy
checking for lex library... none needed
checking for library containing yywrap... -ll
checking whether yytext is a pointer... yes
checking for tar... /usr/bin/tar
checking for gzip... /usr/bin/gzip
checking where to put logfile... /var/log/radvd.log
checking where to put pidfile... /var/run/radvd.pid
checking where to find configfile... /etc/radvd.conf
checking which syslog facility to use... LOG_DAEMON
checking for inet_ntop in -lc... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for sys/time.h... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for getopt.h... yes
checking for ifaddrs.h... yes
checking for linux/if_arp.h... yes
checking for machine/limits.h... no
checking for machine/param.h... no
checking for net/if_arp.h... yes
checking for net/if_dl.h... no
checking for net/if_types.h... no
checking for sys/param.h... yes
checking for sys/sockio.h... no
checking for sys/time.h... (cached) yes
checking for time.h... yes
checking whether struct sockaddr_in6 has sin6_scope_id... yes
checking whether struct in6_addr has u6_addrXX and defines s6_addrXX... yes
checking for getopt_long... yes
checking for ppoll... yes
checking for sysctl... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating radvd.service
config.status: creating redhat/systemd/radvd.spec
config.status: creating redhat/SysV/radvd.spec
config.status: creating config.h
config.status: executing depfiles commands
Your build configuration:
CPPFLAGS =
CFLAGS = -g -O2
LDFLAGS =
Arch = linux
Extras: privsep-linux.o device-linux.o netlink.o
prefix: /usr/local
PID file: /var/run/radvd.pid
Log file: /var/log/radvd.log
Config file: /etc/radvd.conf
Radvd version: 2.19
$ make check
CC log.o
CC recv.o
CC socket.o
CC util.o
CC device-common.o
CC interface.o
CC process.o
CC radvd.o
CC send.o
CC timer.o
CC privsep-linux.o
CC device-linux.o
CC netlink.o
YACC gram.c
/home/mpontillo/src/radvd-project/radvd/ylwrap206769
updating gram.h
CC gram.o
LEX scanner.c
/home/mpontillo/src/radvd-project/radvd/ylwrap206840
CC scanner.o
AR libradvd-parser.a
ar: `u' modifier ignored since `D' is the default (see `U')
CCLD radvd
CC radvdump.o
CCLD radvdump
GEN radvd.8
GEN radvd.conf.5
GEN radvdump.8
make check_all
make[1]: Entering directory '/home/mpontillo/src/radvd-project/radvd'
CC test/check_all-print_safe_buffer.o
CC test/check_all-check.o
CC check_all-device-common.o
CC check_all-interface.o
CC check_all-log.o
CC check_all-send.o
In file included from test/send.c:3,
from send.c:72:
test/send.c: In function ‘test_add_ra_header_cease_adv0_fn’:
test/send.c:46:26: warning: format ‘%s’ expects argument of type ‘char *’, but argument 6 has type ‘char (*)[4096]’ [-Wformat=]
46 | ck_assert_msg(0, "\n// ra_header_info->AdvDefaultLifetime = %x\n%s", iface->ra_header_info.AdvDefaultLifetime, &buf);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~
| |
| char (*)[4096]
In file included from send.c:72:
test/send.c:46:74: note: format string is defined here
46 | ck_assert_msg(0, "\n// ra_header_info->AdvDefaultLifetime = %x\n%s", iface->ra_header_info.AdvDefaultLifetime, &buf);
| ~^
| |
| char *
In file included from test/send.c:3,
from send.c:72:
test/send.c: In function ‘test_add_ra_header_cease_adv1_fn’:
test/send.c:85:26: warning: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘char (*)[4096]’ [-Wformat=]
85 | ck_assert_msg(0, "\n%s", &buf);
| ^~~~~~ ~~~~
| |
| char (*)[4096]
In file included from send.c:72:
test/send.c:85:30: note: format string is defined here
85 | ck_assert_msg(0, "\n%s", &buf);
| ~^
| |
| char *
In file included from test/send.c:3,
from send.c:72:
test/send.c: In function ‘test_add_ra_options_prefix_fn’:
test/send.c:128:26: warning: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘char (*)[4096]’ [-Wformat=]
128 | ck_assert_msg(0, "\n%s", &buf);
| ^~~~~~ ~~~~
| |
| char (*)[4096]
In file included from send.c:72:
test/send.c:128:30: note: format string is defined here
128 | ck_assert_msg(0, "\n%s", &buf);
| ~^
| |
| char *
In file included from test/send.c:3,
from send.c:72:
test/send.c: In function ‘test_add_ra_options_route_fn’:
test/send.c:162:26: warning: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘char (*)[4096]’ [-Wformat=]
162 | ck_assert_msg(0, "\n%s", &buf);
| ^~~~~~ ~~~~
| |
| char (*)[4096]
In file included from send.c:72:
test/send.c:162:30: note: format string is defined here
162 | ck_assert_msg(0, "\n%s", &buf);
| ~^
| |
| char *
In file included from test/send.c:3,
from send.c:72:
test/send.c: In function ‘test_add_ra_options_rdnss_fn’:
test/send.c:193:26: warning: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘char (*)[4096]’ [-Wformat=]
193 | ck_assert_msg(0, "\n%s", &buf);
| ^~~~~~ ~~~~
| |
| char (*)[4096]
In file included from send.c:72:
test/send.c:193:30: note: format string is defined here
193 | ck_assert_msg(0, "\n%s", &buf);
| ~^
| |
| char *
In file included from test/send.c:3,
from send.c:72:
test/send.c: In function ‘test_add_ra_options_rdnss2_fn’:
test/send.c:227:26: warning: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘char (*)[4096]’ [-Wformat=]
227 | ck_assert_msg(0, "\n%s", &buf);
| ^~~~~~ ~~~~
| |
| char (*)[4096]
In file included from send.c:72:
test/send.c:227:30: note: format string is defined here
227 | ck_assert_msg(0, "\n%s", &buf);
| ~^
| |
| char *
In file included from test/send.c:3,
from send.c:72:
test/send.c: In function ‘test_add_ra_options_dnssl_fn’:
test/send.c:257:26: warning: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘char (*)[4096]’ [-Wformat=]
257 | ck_assert_msg(0, "\n%s", &buf);
| ^~~~~~ ~~~~
| |
| char (*)[4096]
In file included from send.c:72:
test/send.c:257:30: note: format string is defined here
257 | ck_assert_msg(0, "\n%s", &buf);
| ~^
| |
| char *
In file included from test/send.c:3,
from send.c:72:
test/send.c: In function ‘test_add_ra_option_mtu_fn’:
test/send.c:291:26: warning: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘char (*)[4096]’ [-Wformat=]
291 | ck_assert_msg(0, "\n%s", &buf);
| ^~~~~~ ~~~~
| |
| char (*)[4096]
In file included from send.c:72:
test/send.c:291:30: note: format string is defined here
291 | ck_assert_msg(0, "\n%s", &buf);
| ~^
| |
| char *
In file included from test/send.c:3,
from send.c:72:
test/send.c: In function ‘test_add_ra_option_sllao_fn’:
test/send.c:317:26: warning: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘char (*)[4096]’ [-Wformat=]
317 | ck_assert_msg(0, "\n%s", &buf);
| ^~~~~~ ~~~~
| |
| char (*)[4096]
In file included from send.c:72:
test/send.c:317:30: note: format string is defined here
317 | ck_assert_msg(0, "\n%s", &buf);
| ~^
| |
| char *
In file included from test/send.c:3,
from send.c:72:
test/send.c:338:26: warning: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘char (*)[4096]’ [-Wformat=]
338 | ck_assert_msg(0, "\n%s", &buf);
| ^~~~~~ ~~~~
| |
| char (*)[4096]
In file included from send.c:72:
test/send.c:338:30: note: format string is defined here
338 | ck_assert_msg(0, "\n%s", &buf);
| ~^
| |
| char *
In file included from test/send.c:3,
from send.c:72:
test/send.c: In function ‘test_add_ra_option_lowpanco_fn’:
test/send.c:362:26: warning: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘char (*)[4096]’ [-Wformat=]
362 | ck_assert_msg(0, "\n%s", &buf);
| ^~~~~~ ~~~~
| |
| char (*)[4096]
In file included from send.c:72:
test/send.c:362:30: note: format string is defined here
362 | ck_assert_msg(0, "\n%s", &buf);
| ~^
| |
| char *
In file included from test/send.c:3,
from send.c:72:
test/send.c: In function ‘test_add_ra_option_abro_fn’:
test/send.c:386:26: warning: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘char (*)[4096]’ [-Wformat=]
386 | ck_assert_msg(0, "\n%s", &buf);
| ^~~~~~ ~~~~
| |
| char (*)[4096]
In file included from send.c:72:
test/send.c:386:30: note: format string is defined here
386 | ck_assert_msg(0, "\n%s", &buf);
| ~^
| |
| char *
CC check_all-timer.o
CC check_all-util.o
CCLD check_all
make[1]: Leaving directory '/home/mpontillo/src/radvd-project/radvd'
make check-TESTS
make[1]: Entering directory '/home/mpontillo/src/radvd-project/radvd'
make[2]: Entering directory '/home/mpontillo/src/radvd-project/radvd'
FAIL: check_all
============================================================================
Testsuite summary for radvd 2.19
============================================================================
# TOTAL: 1
# PASS: 0
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
============================================================================
make[2]: *** [Makefile:1338: test-suite.log] Error 1
make[2]: Leaving directory '/home/mpontillo/src/radvd-project/radvd'
make[1]: *** [Makefile:1446: check-TESTS] Error 2
make[1]: Leaving directory '/home/mpontillo/src/radvd-project/radvd'
make: *** [Makefile:1661: check-am] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment