[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fileutils-4.1
From: |
Sir Ace |
Subject: |
fileutils-4.1 |
Date: |
Sun, 9 Dec 2001 13:27:38 -0800 (PST) |
Problem.... Impossible to build whit a cross compiler....
The configure script exits on a cross build, so I took the source
it is supposed to run and attempted to compile it, and test it on the
system.
It generates the following errors:
bash-2.05# cat test.cpp
#include "confdefs.h"
#include <stdio.h>
/* If setvbuf has the reversed format, exit 0. */
int
main ()
{
/* This call has the arguments reversed.
A reversed system may check and see that the address of main
is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
exit(1);
putc('\r', stdout);
exit(0); /* Non-reversed systems segv here. */
}
bash-2.05# sh4-linux-gcc test.cpp
test.cpp:1:22: confdefs.h: No such file or directory
test.cpp: In function `int main()':
test.cpp:10: cannot convert `int' to `char*' for argument `2' to `int
setvbuf(FILE*, char*, int, unsigned int)'
test.cpp:11: `exit' undeclared (first use this function)
test.cpp:11: (Each undeclared identifier is reported only once for each
function it appears in.)
Aparently {and I checked} there is no confdefs.h on my system.
This kinda really sucks scince it is holding up a port... Please let me
know what would be a feasible work around.. I'll attempt to dig up
the confdefs.h myself in the meantime.
- fileutils-4.1,
Sir Ace <=