On Tue, Jan 31, 2006 at 06:09:28AM -0800, Phillip Pi wrote:
> On Mon, Jan 30, 2006 at 11:02:51PM -0800, Phillip Pi wrote:
> > > > > > > > > > Hello, I just downloaded and tried to compile eLinks 
> > > > > > > > > > v0.11.1 but make failed:
> > > > > > > I must say, I do not have any idea what is wrong, but if you have 
> > > > > > > time
> > > > > > > to debug here are a few things to try out:
> > > > > > > 
> > > > > > >  - Try to run: ./configure --disable-largefile; make
> > > > > > 
> > > > > > I extracted the source to start clean to compile...
> > > > > > 
> > > > > > $ ./configure --disable-largefile; make
> > > > > [snip]
> > > > > > checking for off_t... yes
> > > > > [snip]
> > > > > > make[4]: Leaving directory 
> > > > > > `/u00/home/ant/download/elinks-0.11.1/src/document/html/parser'
> > > > > >       [CC]   src/document/html/frames.o
> > > > > >       [CC]   src/document/html/parser.o
> > > > > >       [CC]   src/document/html/renderer.o
> > > > > > In file included from ../../.././src/cache/cache.h:6,
> > > > > >                  from renderer.c:13:
> > > > > > ../../.././src/util/time.h:44: error: syntax error before 'n'
> > > > > > In file included from renderer.c:13:
> > > > > [more of the same errors reported before]
> > > > > 
> > > > > > >  - Try to move the line 
> > > > > > > 
> > > > > > > #include "elinks.h"
> > > > > > > 
> > > > > > >    above the line
> > > > > > > 
> > > > > > > #include <ctype.h>
> > > > > > > 
> > > > > > >    So the system headers cannot control what is included by 
> > > > > > > elinks.h.
> > > > > > > 
> > > > > > >  - Along the same line as the above, try to add the lines:
> > > > > > > 
> > > > > > > #include <errno.h>
> > > > > > > #include <stdio.h>
> > > > > > > #include <stdlib.h>
> > > > > > > 
> > > > > > >    between '#include "config.h"' and '#include <ctype.h>' in
> > > > > > >    src/document/html/renderer.c.
> > > > > > >  
> > > > > > >    src/document/html/frames.c includes cache/cache.h as it's first
> > > > > > >    ELinks header file and compiles ok. Could it be that one of the
> > > > > > >    system header files it includes does some magic?
> > > > > > 
> > > > > > Which file(s) are this/these in? And is this right after I extract 
> > > > > > the contents from the 
> > > > > > source?
> > > > > 
> > > > > Sorry, I am sitting here buried in my own incomprehension. I want you 
> > > > > to
> > > > > try and change the file src/document/html/renderer.c on a clean 
> > > > > version.
> > > > > 
> > > > > [ "Clean" as the file unpacked from tar.gz or tar.bz2 file. I assume
> > > > >   that is what you mean by extracting the contents from the source. ]
> > > > 
> > > > Correct. I didn't want to work on containmented files. :)
> > > 
> > > Ok, please try the attached patch (which does what I wrote in the two
> > > last 'long shots'). First cd into the top-level elinks directory (in
> > > your case it looks like that is /u00/home/ant/download/elinks-0.11.1/).
> > > Then apply it by running the following command:
> > > 
> > >   patch -p1 < /path/to/attached.patch
> 
> OK, I got the patch and tried it, but still failed:
> 
> $ ls
> ABOUT-NLS  INSTALL             NEWS    Unicode         config         
> configure     features.conf    test
> AUTHORS    Makefile            README  acinclude.m4    config.h       
> configure.in  features.log
> BUGS       Makefile.config     SITES   aclocal.m4      config.h.in    contrib 
>       po
> COPYING    Makefile.config.in  THANKS  autogen.sh      config.log     debian  
>       ppc-off_t.patch
> ChangeLog  Makefile.lib        TODO    autom4te.cache  config.status  doc     
>       src
> $ patch -p1 < ppc-off_t.patch
> patching file src/document/html/renderer.c
> $ ./configure
> checking for aclocal... aclocal
> checking for autoconf... autoconf
> checking for autoheader... autoheader

[SNIP]
>       [CC]   src/main/event.o
>       [CC]   src/main/interlink.o
>       [CC]   src/main/main.o
>       [CC]   src/main/module.o
>       [CC]   src/main/select.o
>       [CC]   src/main/timer.o
> In file included from ../.././src/main/timer.h:4,
>                  from timer.c:10:
> ../.././src/util/time.h:44: error: syntax error before 'n'
> make[2]: *** [timer.o] Error 1
> make[2]: Leaving directory `/u00/home/ant/download/elinks-0.11.1/src/main'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/u00/home/ant/download/elinks-0.11.1/src'
> make: *** [all-recursive] Error 1
> 


Try to insert that line:

#include <sys/types.h>

before 

#ifdef HAVE_SYS_TIME_H

in file src/util/time.h line 3

Regards,

-- 

Zas
_______________________________________________
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users

Reply via email to