[uClibc]FILE->bufpos

trevor twoerner at el-equip.com
Wed Apr 3 15:23:23 UTC 2002


hi everyone,

first off, thanks for uClibc, lots of fun! secondly, sorry for my ignorance. 
i wish i knew this stuff better but i don't (although i hope to catch on 
eventually! :-).

i'm trying to build ruby-1.6.7 against uClibc-0.9.10 and i've ended up with 
the following problem. basically the ruby sources are aware of uClibc and 
define a macro for FILE handling:

--- from io.c ---
#elif defined(__UCLIBC__)
#  define READ_DATA_PENDING(fp) ((fp)->bufpos < (fp)->bufend)
--- end ---

problem is that during the compile i get errors like the following:

../ruby-1.6.7/io.c: In function `rb_read_pending':
../ruby-1.6.7/io.c:178: structure has no member named `bufpos'

relevant lines from io.c are:

--- from io.c ---
int
rb_read_pending(fp)
    FILE *fp;
{
    return READ_DATA_PENDING(fp);
}
--- end ---

performing a "grep -r -i bufpos *" at the base of my uClibc "include" 
directory doesn't turn anything up.

best regards,
	trevor



More information about the uClibc mailing list