Paul,
Mind, I'm I am cross compiling
So I cd-ed to:
/home/ron/novax-prs/tmp/work/x86_64-linux/m4-native/1.4.17-r0/build/lib/
and opened: ../../m4-1.4.17/lib/fseeko.c
but funny enough, I cannot find any function that is called "rpl_fseeko"
even though the error states:
| make[3]: Entering directory
'/home/ron/novax-prs/tmp/work/x86_64-linux/m4-native/1.4.17-r0/build/lib'
| gcc -I. -I../../m4-1.4.17/lib
-isystem/home/ron/novax-prs/tmp/sysroots/x86_64-linux/usr/include
-isystem/home/ron/novax-prs/tmp/sysroots/x86_64-linux/usr/include -O2
-pipe -c -o freadahead.o ../../m4-1.4.17/lib/freadahead.c
| gcc -I. -I../../m4-1.4.17/lib
-isystem/home/ron/novax-prs/tmp/sysroots/x86_64-linux/usr/include
-isystem/home/ron/novax-prs/tmp/sysroots/x86_64-linux/usr/include -O2
-pipe -c -o fseeko.o ../../m4-1.4.17/lib/fseeko.c
| ../../m4-1.4.17/lib/fseeko.c: In function ‘rpl_fseeko’:
| ../../m4-1.4.17/lib/fseeko.c:109:4: error: #error "Please port gnulib
fseeko.c to your platform! Look at the code in fseeko.c, then report
this to bug-gnulib."
| 109 | #error "Please port gnulib fseeko.c to your platform! Look
at the code in fseeko.c, then report this to bug-gnulib."
On 2020-12-23 4:17 p.m., Paul Eggert wrote:
On 12/23/20 1:56 PM, Ron Eggler wrote:
How can I patch these files to work with my platform?
Look in your stdio.h (commonly /usr/include/stdio.h), and the files it
includes, to see how it defines ungetc etc. Then use that knowledge to
update lib/freadahead.c and lib/fseeko.c. It'll require some expertise
in low-level C hacking.