[uClibc]pppd 2.4.1 + pppoe
Erik Andersen
andersen at codepoet.org
Mon Mar 4 20:08:19 UTC 2002
On Mon Mar 04, 2002 at 08:52:20PM +0100, Karl Peters wrote:
> When I try to compile pppd 2.4.1, this error message(s) is shown:
>
> sys-linux.c:81: netipx/ipx.h: No such file or directory
> sys-linux.c: In function `sipxfaddr':
This is fixed in the latest version in CVS
> OK pppd 2.4.1 with pppoe patch doesn't compile too. Here is the abort
> before in the pppoe module:
>
> /usr/src/ppp-2.4.1.pppoe4/pppd/plugins/pppoe/pppoe_client.c:203:
> undefined reference to `error'
The error() function is provided by glibc in /usr/include/error.h
but has not been implemented in uClibc.
It looks to be trivial to implement though -- something like the
following should do (entirely untested):
extern void error (int status, int errnum, const char *format, ...)
{
va_list p;
va_start(p, format);
verror_msg(format, p);
fflush(stdout);
fprintf(stderr, "%s: ", applet_name);
vfprintf(stderr, format, p);
va_end(p);
if (errnum != 0) {
fprintf(stderr, ": %s\n, strerror(errno));
}
putc('\n', stderr);
if (status != 0) {
exit(errnum);
}
}
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
More information about the uClibc
mailing list