Re: Trouble executing example translator from Hurd Hacking Guide

2019-07-27 Thread Samuel Thibault
Hello, Andrew Eggenberger, le ven. 26 juil. 2019 20:36:20 -0500, a ecrit: > I've been trying to compile and run the trivfs example [1] in the Hurd > Hacking Guide. It compiles with the slightly amended command: > > gcc -g -o one -ltrivfs -lports Indeed, it is using a libports function an

Re: Trouble executing example translator from Hurd Hacking Guide

2019-07-27 Thread Samuel Thibault
Samuel Thibault, le sam. 27 juil. 2019 11:09:56 +0200, a ecrit: > The issue here is actually that the source code is missing > > #define _FILE_OFFSET_BITS 64 > > at the very top of the file. Or you can make the hooks use loff_t instead of off_t. Samuel

Shipping and including _S.h files? [Was: Trouble executing example translator from Hurd Hacking Guide]

2019-07-27 Thread Samuel Thibault
Hello, Samuel Thibault, le sam. 27 juil. 2019 11:32:44 +0200, a ecrit: > Samuel Thibault, le sam. 27 juil. 2019 11:09:56 +0200, a ecrit: > > The issue here is actually that the source code is missing > > > > #define _FILE_OFFSET_BITS 64 > > > > at the very top of the file. > > Or you can make t