Intosia.com Things about stuff

21Sep/100

Compiling Newspost usenet poster (on ARM)

Newspost is a commandline tool for posting files to Usenet (im using it on my Sheevaplug). Since Debian removed this package from the (ARM architecture) repository compiling from source is the only option. This gave the following error:

utils.h:29: error: conflicting types for âgetlineâ

To fix this, open '/usr/include/stdio.h' with a texteditor.

Find the following block of code:

extern _IO_ssize_t getline (char **__restrict __lineptr,
size_t *__restrict __n,
FILE *__restrict __stream) __wur;

Change the word 'getline' to 'parseline'.

extern _IO_ssize_t parseline (char **__restrict __lineptr,
size_t *__restrict __n,
FILE *__restrict __stream) __wur;

Save the file and compile again! Dont forget to change it back after compiling!

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.