Compilation fails with GCC 8.3.0
I am not able to build oath-toolkit with GCC 8.3.0. It fails on complaint that it is missing support for the platform. Is there a way to fix this? Am I doing something wrong in the build process?
From the issues #7 (closed) and #9 (closed) I understand that this may be fixed with some minor code changes in oath-toolkit, and that there was some work on this but didn't make it in the release. And, IIUC, the fixes only work for GCC 7.
Building:
- Clone the repo, check out
master
. - Go into the checkout. Execute
make
.
oath-toolkit revision:
sh-4.4$ git show
commit 0dffdec9c5af5c89a5af43add29d8275eefe7414
Author: Simon Josefsson <simon@josefsson.org>
Date: Sat Sep 24 23:22:36 2016 +0200
Make it work for non-datefudge.
GCC version:
sh-4.4$ gcc --version
gcc (GCC) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Build-result:
make[7]: Entering directory '/run/build/liboath/liboath/gl'
CC base32.lo
CC c-ctype.lo
CC hmac-sha1.lo
CC hmac-sha256.lo
CC hmac-sha512.lo
CC sha1.lo
CC sha256.lo
CC sha512.lo
CC dirname-lgpl.lo
CC basename-lgpl.lo
CC stripslash.lo
CC fd-hook.lo
CC freading.lo
CC malloca.lo
CC memxor.lo
CC u64.lo
CC unistd.lo
CC xsize.lo
CC asnprintf.lo
CC fclose.lo
CC fflush.lo
CC fpurge.lo
CC fseek.lo
CC fseeko.lo
fseeko.c: In function 'rpl_fseeko':
fseeko.c:110:4: error: #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
#error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
^~~~~
make[7]: *** [Makefile:1407: fseeko.lo] Error 1
make[7]: Leaving directory '/run/build/liboath/liboath/gl'