[elinks-users] renderer.c:1685: error: 'struct cache_entry' has no member named 'cache_mode' when compiling eLinks v0.11.3 in Debian (PowerPC)

Phillip Pi ant at zimage.com
Sat Jun 30 19:48:13 PDT 2007

> > In file included from ../../.././src/cache/cache.h:6,
> >                  from renderer.c:13:
> > ../../.././src/util/time.h:47: error: expected ')' before 'n'
> > In file included from renderer.c:13:
> > ../../.././src/cache/cache.h:47: error: expected 
> > specifier-qualifier-list before 'off_t'
> This looks like ELinks bug 936: off_t is not defined.
> http://bugzilla.elinks.cz/show_bug.cgi?id=936
> However, elinks-0.11.3/src/util/time.h contains:
> #include <sys/types.h>
> #endif
> And <sys/types.h> should define off_t.  So presumably something
> went wrong in configure and made it not define HAVE_SYS_TYPES_H.
> > The rest of the log can be found here: http://pastebin.ca/597412 ... 
>    42. checking for sys/types.h... yes
> I don't know what happened.  Please post your config.log and config.h,

I don't want to get an account for eLink's bugzilla but I did post the 
two config files in a zip file: http://www.savefile.com/files/854658 ...

> or attach them to bug 936.  And please try compiling this test program:
> #include <sys/types.h>
> int main(void)
> {
>   return (off_t) 0;
> }
> Just to see whether <sys/types.h> is defining off_t as expected.

I edited my elinks-0.11.3/src/util/time.h file with the above 
suggestion. The beginning of the file looks like this:

#ifndef EL__UTIL_TIME_H
#define EL__UTIL_TIME_H

#include <sys/types.h>  
int main(void)  
   return (off_t) 0; 
#include <sys/time.h>
#ifdef HAVE_TIME_H
#include <time.h>

typedef long milliseconds_T;

I hope that was correct. However, I got errors again: 
http://pastebin.ca/598156 ... Again, config files as a zip file if you 
need them: http://www.savefile.com/files/854708 ...

I hope they helped. :)

P.S. I hope I can compile this version on my old MacOS X 10.2.8 on an 
old PowerBook G4. [grin]
"It is not enough to be industrious; so are the ants. What are you 
industrious about?" --Henry David Thoreau
 / /\ /\ \     Phillip (Ant) @ http://antfarm.ma.cx (Personal Web Site)
| |o   o| |         Ant's Quality Foraged Links (AQFL): http://aqfl.net
   \ _ /                 E-mail: philpi at earthlink.net or ant at zimage.com
    ( )

More information about the elinks-users mailing list