[uClibc] pppd problem

Manuel Novoa III mjn3 at codepoet.org
Sat Aug 9 06:33:00 UTC 2003


On Tue, Aug 05, 2003 at 05:39:03PM -0700, joe at cityofsanmateo.org wrote:
> i traced the error to a call to getword() which is returning the empty 
> string '' 
> instead of the file contents, when i look at the getword() function in
> pppd/options.c i see a bunch of calls to getc() and ungetc(), is there
> uclibc compilation options ive missed that would cause a problem
> with getc() and ungetc() ??? has anyone else compiled and run
> pppd successfully with an options file??

The only reported problem involving getc() was caused by building an
application using headers from a wide-char-enabled version of uClibc
and running the dynamicly linked app on a target using a
wide-char-disabled verion of the shared lib.  The selection of wide
char support changes the layout of the FILE struct, which can cause
the getc() macro to look at the wrong addresses.

Manuel



More information about the uClibc mailing list