bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: port freadahead.c & fseeko.c


From: Ron Eggler
Subject: Re: port freadahead.c & fseeko.c
Date: Mon, 28 Dec 2020 09:39:14 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]