Subject: | Compilation error on FreeBSD systems |
SPVM-0.0415 and 0.0416 does not compile anymore on FreeBSD:
...
cc -I/usr/local/lib/perl5/5.28/mach/CORE -DPIC -fPIC -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -I/usr/home/cpansand/.cpan/build/2019021906/SPVM-0.0416-2/blib/lib/SPVM/Builder/include -I/usr/home/cpansand/.cpan/build/2019021906/SPVM-0.0416-2/blib/lib -std=c99 -Ispvm_build/inlcude -O3 -o spvm_build/work/tmp/SPVM/CORE.o lib/SPVM/CORE.c
lib/SPVM/CORE.c:37:18: error: member reference base type 'void' is not a structure or union
int32_t ch = getc(fh);
^~~~~~~~
/usr/include/stdio.h:498:35: note: expanded from macro 'getc'
#define getc(fp) (!__isthreaded ? __sgetc(fp) : (getc)(fp))
^~~~~~~~~~~
/usr/include/stdio.h:455:26: note: expanded from macro '__sgetc'
#define __sgetc(p) (--(p)->_r < 0 ? __srget(p) : (int)(*(p)->_p++))
~~~^ ~~
lib/SPVM/CORE.c:37:18: error: member reference base type 'void' is not a structure or union
int32_t ch = getc(fh);
^~~~~~~~
...