4.2.1: Compile Error
Posted: Sat Dec 29, 2018 4:45 pm
Hello,
I went to upgrade our ircd's when I ran into the following error when trying to compile on Debian Stretch:
Thanks,
Ken
I went to upgrade our ircd's when I ran into the following error when trying to compile on Debian Stretch:
Code: Select all
vectr0n@ircd1:~/src/unrealircd-4.2.1$ make
Building src
make[1]: Entering directory '/home/vectr0n/src/unrealircd-4.2.1/src'
gcc -I/home/vectr0n/src/unrealircd-4.2.1/include -pthread -Wdate-time -D_FORTIFY_SOURCE=2 -pipe -g -O2 -funsigned-char -fno-strict-aliasing -Wno-pointer-sign -Wno-invalid-source-encoding -Wno-format-zero-length -Wno-format-truncation -fno-strict-overflow -D_FORTIFY_SOURCE=2 -fstack-protector-all -Wstack-protector --param ssp-buffer-size=1 -fPIE -c timesynch.c
gcc -I/home/vectr0n/src/unrealircd-4.2.1/include -pthread -Wdate-time -D_FORTIFY_SOURCE=2 -pipe -g -O2 -funsigned-char -fno-strict-aliasing -Wno-pointer-sign -Wno-invalid-source-encoding -Wno-format-zero-length -Wno-format-truncation -fno-strict-overflow -D_FORTIFY_SOURCE=2 -fstack-protector-all -Wstack-protector --param ssp-buffer-size=1 -fPIE -c res.c
gcc -I/home/vectr0n/src/unrealircd-4.2.1/include -pthread -Wdate-time -D_FORTIFY_SOURCE=2 -pipe -g -O2 -funsigned-char -fno-strict-aliasing -Wno-pointer-sign -Wno-invalid-source-encoding -Wno-format-zero-length -Wno-format-truncation -fno-strict-overflow -D_FORTIFY_SOURCE=2 -fstack-protector-all -Wstack-protector --param ssp-buffer-size=1 -fPIE -c s_bsd.c
gcc -I/home/vectr0n/src/unrealircd-4.2.1/include -pthread -Wdate-time -D_FORTIFY_SOURCE=2 -pipe -g -O2 -funsigned-char -fno-strict-aliasing -Wno-pointer-sign -Wno-invalid-source-encoding -Wno-format-zero-length -Wno-format-truncation -fno-strict-overflow -D_FORTIFY_SOURCE=2 -fstack-protector-all -Wstack-protector --param ssp-buffer-size=1 -fPIE -c auth.c
auth.c: In function ‘authcheck_argon2’:
auth.c:318:14: error: ‘Argon2_id’ undeclared (first use in this function)
hashtype = Argon2_id;
^~~~~~~~~
auth.c:318:14: note: each undeclared identifier is reported only once for each function it appears in
auth.c: In function ‘mkpass_argon2’:
auth.c:687:8: warning: implicit declaration of function ‘argon2id_hash_encoded’ [-Wimplicit-function-declaration]
ret = argon2id_hash_encoded(UNREALIRCD_ARGON2_DEFAULT_TIME_COST,
^~~~~~~~~~~~~~~~~~~~~
auth.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-format-truncation’
cc1: warning: unrecognized command line option ‘-Wno-invalid-source-encoding’
Makefile:98: recipe for target 'auth.o' failed
make[1]: *** [auth.o] Error 1
make[1]: Leaving directory '/home/vectr0n/src/unrealircd-4.2.1/src'
Makefile:140: recipe for target 'build' failed
make: *** [build] Error 2
Ken