Re: [elinks-users] Can't compile eLinks Debian (PowerMac; Kernel 2.4.22)

2006-01-30 Thread Jonas Fonseca
Phillip Pi <[EMAIL PROTECTED]> wrote Sun, Jan 29, 2006:
> Hello, I just downloaded and tried to compile eLinks v0.11.1 but make failed:

Hello, thanks for reporting this.

First a little general note that someone else will hopefully see.  You
_don't_ have to subscribe to post. I know this is a showstopper for some
(not for you Phillip but for other). If you just send a message to the
list it will go through our human filter and hopefully show up after a
day or so depending on when messages from non-subscribers are checked.

I've added a note about this on the community page.

> $ uname -a
> Linux dustball 2.4.22-pmac-benh-dm-evms_sorta-1 #4 Mon Oct 20 21:58:29 PDT 
> 2003 ppc 
> GNU/Linux

Is this really Debian? I am using (the Debian-based) Ubuntu and do not
have this problem.

> $ ./configure ; make 
[...]
> checking for special C compiler options needed for large files... no
> checking for _FILE_OFFSET_BITS value needed for large files... 64
> checking for _LARGE_FILES value needed for large files... no
> checking for size_t... yes
> checking for off_t... yes

So off_t is found. Good.

[...]
> 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'

But off_t is not defined before used here and in cache.h below.

> In file included from renderer.c:13:
> ../../.././src/cache/cache.h:47: error: syntax error before 'off_t'
> ../../.././src/cache/cache.h:47: warning: no semicolon at end of struct or 
> union
> ../../.././src/cache/cache.h:48: warning: type defaults to 'int' in 
> declaration of 
> 'data_size'
> ../../.././src/cache/cache.h:48: warning: data definition has no type or 
> storage class
> ../../.././src/cache/cache.h:54: error: syntax error before ':' token
> ../../.././src/cache/cache.h:55: error: syntax error before ':' token
> ../../.././src/cache/cache.h:56: error: syntax error before ':' token
> ../../.././src/cache/cache.h:57: error: syntax error before ':' token
> ../../.././src/cache/cache.h:58: error: syntax error before ':' token
> ../../.././src/cache/cache.h:63: error: syntax error before ':' token
> ../../.././src/cache/cache.h:66: error: syntax error before '}' token
> ../../.././src/cache/cache.h:71: error: syntax error before 'off_t'
> ../../.././src/cache/cache.h:71: warning: no semicolon at end of struct or 
> union
> ../../.././src/cache/cache.h:72: warning: type defaults to 'int' in 
> declaration of 
> 'length'
> ../../.././src/cache/cache.h:72: warning: data definition has no type or 
> storage class
> ../../.././src/cache/cache.h:73: error: syntax error before 'real_length'
> ../../.././src/cache/cache.h:73: warning: type defaults to 'int' in 
> declaration of 
> 'real_length'
> ../../.././src/cache/cache.h:73: warning: data definition has no type or 
> storage class
> ../../.././src/cache/cache.h:75: error: syntax error before '}' token
> ../../.././src/cache/cache.h:106: error: syntax error before 'off_t'
> ../../.././src/cache/cache.h:116: error: syntax error before 'off_t'
> ../../.././src/cache/cache.h:118: error: syntax error before 'off_t'
> renderer.c: In function 'html_special':
> renderer.c:1679: error: dereferencing pointer to incomplete type
> renderer.c:1680: error: dereferencing pointer to incomplete type
> renderer.c:1688: error: dereferencing pointer to incomplete type
> renderer.c:1691: error: dereferencing pointer to incomplete type
> renderer.c:1692: error: dereferencing pointer to incomplete type
> renderer.c: In function 'render_html_document':
> renderer.c:1940: error: dereferencing pointer to incomplete type
> renderer.c:1940: error: dereferencing pointer to incomplete type
> renderer.c:1945: error: dereferencing pointer to incomplete type
> make[3]: *** [renderer.o] Error 1
> make[3]: Leaving directory 
> `/u00/home/ant/download/elinks-0.11.1/src/document/html'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/u00/home/ant/download/elinks-0.11.1/src/document'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/u00/home/ant/download/elinks-0.11.1/src'
> make: *** [all-recursive] Error 1

> I did not have problems with the previous versions (before v0.11.0).
> What's wrong? Thank you in advance. :)

During 0.11 development we began to use off_t to better support large
files. By the looks of the output of configure the off_t type is
available but the correct system header files are not included.
src/elinks.h (which is always included before any other ELinks header
file) includes various files in src/osdep/ that should define off_t.

Could you dig out in what file the off_t type it is found on your
system running something like this:

find /usr/include/sys -name '*.h' | xargs grep off_t |

Re: [elinks-users] Can't compile eLinks Debian (PowerMac; Kernel 2.4.22)

2006-01-30 Thread Phillip Pi
On Tue, Jan 31, 2006 at 03:02:52AM +0100, Jonas Fonseca wrote:
> Phillip Pi <[EMAIL PROTECTED]> wrote Sun, Jan 29, 2006:
> > Hello, I just downloaded and tried to compile eLinks v0.11.1 but make 
> > failed:
> 
> Hello, thanks for reporting this.
> 
> First a little general note that someone else will hopefully see.  You
> _don't_ have to subscribe to post. I know this is a showstopper for some
> (not for you Phillip but for other). If you just send a message to the
> list it will go through our human filter and hopefully show up after a
> day or so depending on when messages from non-subscribers are checked.

Ahh, I didn't know that. I always thought mailing lists required a subscription 
and valdiation. 
 
> I've added a note about this on the community page.

Good! I did not even recall seeing one. So, does the replies go back to my 
e-mail address?


> > $ uname -a
> > Linux dustball 2.4.22-pmac-benh-dm-evms_sorta-1 #4 Mon Oct 20 21:58:29 PDT 
> > 2003 ppc 
> > GNU/Linux
> 
> Is this really Debian? I am using (the Debian-based) Ubuntu and do not
> have this problem.

Yes, but on a PowerMac. That's the KEY thing. Not the latest or common platform 
as you can see.


> > $ ./configure ; make 
> [...]
> > checking for special C compiler options needed for large files... no
> > checking for _FILE_OFFSET_BITS value needed for large files... 64
> > checking for _LARGE_FILES value needed for large files... no
> > checking for size_t... yes
> > checking for off_t... yes
> 
> So off_t is found. Good.
> 
> [...]
> > 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'
> 
> But off_t is not defined before used here and in cache.h below.
> 
> > In file included from renderer.c:13:
> > ../../.././src/cache/cache.h:47: error: syntax error before 'off_t'
> > ../../.././src/cache/cache.h:47: warning: no semicolon at end of struct or 
> > union
> > ../../.././src/cache/cache.h:48: warning: type defaults to 'int' in 
> > declaration of 
> > 'data_size'
> > ../../.././src/cache/cache.h:48: warning: data definition has no type or 
> > storage class
> > ../../.././src/cache/cache.h:54: error: syntax error before ':' token
> > ../../.././src/cache/cache.h:55: error: syntax error before ':' token
> > ../../.././src/cache/cache.h:56: error: syntax error before ':' token
> > ../../.././src/cache/cache.h:57: error: syntax error before ':' token
> > ../../.././src/cache/cache.h:58: error: syntax error before ':' token
> > ../../.././src/cache/cache.h:63: error: syntax error before ':' token
> > ../../.././src/cache/cache.h:66: error: syntax error before '}' token
> > ../../.././src/cache/cache.h:71: error: syntax error before 'off_t'
> > ../../.././src/cache/cache.h:71: warning: no semicolon at end of struct or 
> > union
> > ../../.././src/cache/cache.h:72: warning: type defaults to 'int' in 
> > declaration of 
> > 'length'
> > ../../.././src/cache/cache.h:72: warning: data definition has no type or 
> > storage class
> > ../../.././src/cache/cache.h:73: error: syntax error before 'real_length'
> > ../../.././src/cache/cache.h:73: warning: type defaults to 'int' in 
> > declaration of 
> > 'real_length'
> > ../../.././src/cache/cache.h:73: warning: data definition has no type or 
> > storage class
> > ../../.././src/cache/cache.h:75: error: syntax error before '}' token
> > ../../.././src/cache/cache.h:106: error: syntax error before 'off_t'
> > ../../.././src/cache/cache.h:116: error: syntax error before 'off_t'
> > ../../.././src/cache/cache.h:118: error: syntax error before 'off_t'
> > renderer.c: In function 'html_special':
> > renderer.c:1679: error: dereferencing pointer to incomplete type
> > renderer.c:1680: error: dereferencing pointer to incomplete type
> > renderer.c:1688: error: dereferencing pointer to incomplete type
> > renderer.c:1691: error: dereferencing pointer to incomplete type
> > renderer.c:1692: error: dereferencing pointer to incomplete type
> > renderer.c: In function 'render_html_document':
> > renderer.c:1940: error: dereferencing pointer to incomplete type
> > renderer.c:1940: error: dereferencing pointer to incomplete type
> > renderer.c:1945: error: dereferencing pointer to incomplete type
> > make[3]: *** [renderer.o] Error 1
> > make[3]: Leaving directory 
> > `/u00/home/ant/download/elinks-0.11.1/src/document/html'
> > make[2]: *** [all-recursive] Error 1
> > make[2]: Leaving directory 
> > `/u00/home/ant/download/elinks-0.11.1/src/document'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/u00/home/ant/download/elinks-0.11.1/src'
> > make: *** [all-recursive] Error 1
> 
> > I did not have problems with the previous versions (before v0

Re: [elinks-users] Can't compile eLinks Debian (PowerPC; Kernel 2.4.22)

2006-01-30 Thread Phillip Pi
> > > Hello, I just downloaded and tried to compile eLinks v0.11.1 but make 
> > > failed:
> > 
> > Hello, thanks for reporting this.
> > 
> > First a little general note that someone else will hopefully see.  You
> > _don't_ have to subscribe to post. I know this is a showstopper for some
> > (not for you Phillip but for other). If you just send a message to the
> > list it will go through our human filter and hopefully show up after a
> > day or so depending on when messages from non-subscribers are checked.
> 
> Ahh, I didn't know that. I always thought mailing lists required a 
> subscription and valdiation. 
>  
> > I've added a note about this on the community page.
> 
> Good! I did not even recall seeing one. So, does the replies go back to my 
> e-mail address?
> 
> 
> > > $ uname -a
> > > Linux dustball 2.4.22-pmac-benh-dm-evms_sorta-1 #4 Mon Oct 20 21:58:29 
> > > PDT 2003 ppc 
> > > GNU/Linux
> > 
> > Is this really Debian? I am using (the Debian-based) Ubuntu and do not
> > have this problem.
> 
> Yes, but on a PowerMac. That's the KEY thing. Not the latest or common 
> platform as you can see.

Oops! I meant to say PowerPC (PPC), not Mac! I am getting confused with the 
names!
 
 
> > > $ ./configure ; make 
> > [...]
> > > checking for special C compiler options needed for large files... no
> > > checking for _FILE_OFFSET_BITS value needed for large files... 64
> > > checking for _LARGE_FILES value needed for large files... no
> > > checking for size_t... yes
> > > checking for off_t... yes
> > 
> > So off_t is found. Good.
> > 
> > [...]
> > > 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'
> > 
> > But off_t is not defined before used here and in cache.h below.
> > 
> > > In file included from renderer.c:13:
> > > ../../.././src/cache/cache.h:47: error: syntax error before 'off_t'
> > > ../../.././src/cache/cache.h:47: warning: no semicolon at end of struct 
> > > or union
> > > ../../.././src/cache/cache.h:48: warning: type defaults to 'int' in 
> > > declaration of 
> > > 'data_size'
> > > ../../.././src/cache/cache.h:48: warning: data definition has no type or 
> > > storage class
> > > ../../.././src/cache/cache.h:54: error: syntax error before ':' token
> > > ../../.././src/cache/cache.h:55: error: syntax error before ':' token
> > > ../../.././src/cache/cache.h:56: error: syntax error before ':' token
> > > ../../.././src/cache/cache.h:57: error: syntax error before ':' token
> > > ../../.././src/cache/cache.h:58: error: syntax error before ':' token
> > > ../../.././src/cache/cache.h:63: error: syntax error before ':' token
> > > ../../.././src/cache/cache.h:66: error: syntax error before '}' token
> > > ../../.././src/cache/cache.h:71: error: syntax error before 'off_t'
> > > ../../.././src/cache/cache.h:71: warning: no semicolon at end of struct 
> > > or union
> > > ../../.././src/cache/cache.h:72: warning: type defaults to 'int' in 
> > > declaration of 
> > > 'length'
> > > ../../.././src/cache/cache.h:72: warning: data definition has no type or 
> > > storage class
> > > ../../.././src/cache/cache.h:73: error: syntax error before 'real_length'
> > > ../../.././src/cache/cache.h:73: warning: type defaults to 'int' in 
> > > declaration of 
> > > 'real_length'
> > > ../../.././src/cache/cache.h:73: warning: data definition has no type or 
> > > storage class
> > > ../../.././src/cache/cache.h:75: error: syntax error before '}' token
> > > ../../.././src/cache/cache.h:106: error: syntax error before 'off_t'
> > > ../../.././src/cache/cache.h:116: error: syntax error before 'off_t'
> > > ../../.././src/cache/cache.h:118: error: syntax error before 'off_t'
> > > renderer.c: In function 'html_special':
> > > renderer.c:1679: error: dereferencing pointer to incomplete type
> > > renderer.c:1680: error: dereferencing pointer to incomplete type
> > > renderer.c:1688: error: dereferencing pointer to incomplete type
> > > renderer.c:1691: error: dereferencing pointer to incomplete type
> > > renderer.c:1692: error: dereferencing pointer to incomplete type
> > > renderer.c: In function 'render_html_document':
> > > renderer.c:1940: error: dereferencing pointer to incomplete type
> > > renderer.c:1940: error: dereferencing pointer to incomplete type
> > > renderer.c:1945: error: dereferencing pointer to incomplete type
> > > make[3]: *** [renderer.o] Error 1
> > > make[3]: Leaving directory 
> > > `/u00/home/ant/download/elinks-0.11.1/src/document/html'
> > > make[2]: *** [all-recursive] Error 1
> > > make[2]: Leaving directory 
> > > `/u00/home/ant/download/elinks-0.11.1/src/document'
> > > make[1]: *** [all-recursive] Error 1
> > > ma

Re: [elinks-users] Can't compile eLinks Debian (PowerMac; Kernel 2.4.22)

2006-01-30 Thread Jonas Fonseca
Phillip Pi <[EMAIL PROTECTED]> wrote Mon, Jan 30, 2006:
> On Tue, Jan 31, 2006 at 03:02:52AM +0100, Jonas Fonseca wrote:
> > Phillip Pi <[EMAIL PROTECTED]> wrote Sun, Jan 29, 2006:
> > > Hello, I just downloaded and tried to compile eLinks v0.11.1 but make 
> > > failed:
> > 
> > Hello, thanks for reporting this.
> > 
> > First a little general note that someone else will hopefully see.  You
> > _don't_ have to subscribe to post. I know this is a showstopper for some
> > (not for you Phillip but for other). If you just send a message to the
> > list it will go through our human filter and hopefully show up after a
> > day or so depending on when messages from non-subscribers are checked.
> 
> Ahh, I didn't know that. I always thought mailing lists required a 
> subscription and valdiation. 
>  
> > I've added a note about this on the community page.
> 
> Good! I did not even recall seeing one. So, does the replies go back to my 
> e-mail address?

No, you have to request that you be CC'ed on replies.

> > > $ uname -a
> > > Linux dustball 2.4.22-pmac-benh-dm-evms_sorta-1 #4 Mon Oct 20 21:58:29 
> > > PDT 2003 ppc 
> > > GNU/Linux
> > 
> > Is this really Debian? I am using (the Debian-based) Ubuntu and do not
> > have this problem.
> 
> Yes, but on a PowerMac. That's the KEY thing. Not the latest or common 
> platform as you can see.

But it looks like you have off_t the same place I do.
 
> > Could you dig out in what file the off_t type it is found on your
> > system running something like this:
> > 
> > find /usr/include/sys -name '*.h' | xargs grep off_t | grep typedef
> 
> $  find /usr/include/sys -name '*.h' | xargs grep off_t grep typedef
> /usr/include/sys/types.h:typedef __loff_t loff_t;
> /usr/include/sys/types.h:typedef __off_t off_t;
> /usr/include/sys/types.h:typedef __off64_t off_t;
> /usr/include/sys/stat.h:typedef __off_t off_t;
> /usr/include/sys/stat.h:typedef __off64_t off_t;
> /usr/include/sys/mman.h:typedef __off_t off_t;
> /usr/include/sys/mman.h:typedef __off64_t off_t;

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

 - Try to move the line 

#include "elinks.h"

   above the line

#include 

   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 
#include 
#include 

   between '#include "config.h"' and '#include ' 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?

> > maybe removing '/sys' and '| grep typedef' if no results are found.
> 
> Did not try unless you want me to do so. :)

That's not necessary.

-- 
Jonas Fonseca
___
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users


Re: [elinks-users] Can't compile eLinks Debian (PowerMac; Kernel 2.4.22)

2006-01-30 Thread Phillip Pi
> > > > Hello, I just downloaded and tried to compile eLinks v0.11.1 but make 
> > > > failed:
> > > 
> > > Hello, thanks for reporting this.

> > > > $ uname -a
> > > > Linux dustball 2.4.22-pmac-benh-dm-evms_sorta-1 #4 Mon Oct 20 21:58:29 
> > > > PDT 2003 ppc 
> > > > GNU/Linux
> > > 
> > > Is this really Debian? I am using (the Debian-based) Ubuntu and do not
> > > have this problem.
> > 
> > Yes, but on a PowerMac. That's the KEY thing. Not the latest or common 
> > platform as you can see.
> 
> But it looks like you have off_t the same place I do.
>  
> > > Could you dig out in what file the off_t type it is found on your
> > > system running something like this:
> > > 
> > >   find /usr/include/sys -name '*.h' | xargs grep off_t | grep typedef
> > 
> > $  find /usr/include/sys -name '*.h' | xargs grep off_t grep typedef
> > /usr/include/sys/types.h:typedef __loff_t loff_t;
> > /usr/include/sys/types.h:typedef __off_t off_t;
> > /usr/include/sys/types.h:typedef __off64_t off_t;
> > /usr/include/sys/stat.h:typedef __off_t off_t;
> > /usr/include/sys/stat.h:typedef __off64_t off_t;
> > /usr/include/sys/mman.h:typedef __off_t off_t;
> > /usr/include/sys/mman.h:typedef __off64_t off_t;
> 
> 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
checking for aclocal... aclocal
checking for autoconf... autoconf
checking for autoheader... autoheader
checking for gnumake... no
checking for gmake... no
checking for make... /usr/bin/make
checking for previous build to clean... done
checking for "./features.conf"... yes
checking for "/home/ant/download/elinks-0.11.1/features.conf"... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for gawk... gawk
checking for gawk... /usr/bin/gawk
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking for cg-commit-id... no
checking for sparse... no
checking for asciidoc... no
checking for xmlto... no
checking for jw... no
checking for pod2html... /usr/bin/pod2html
checking for BEOS... no
checking for RISCOS... no
checking for WIN32... no
checking for EMX... no
checking for UNIX... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking sigaction.h usability... no
checking sigaction.h presence... no
checking for sigaction.h... no
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/in_systm.h usability... yes
checking netinet/in_systm.h presence... yes
checking for netinet/in_systm.h... yes
checking netinet/in_system.h usability... no
checking netinet/in_system.h presence... no
checking for netinet/in_system.h... no
checking netinet/ip.h usability... yes
checking netinet/ip.h presence... yes
checking for netinet/ip.h... yes
checking net/if.h usability... yes
checking net/if.h presence... yes
checking for net/if.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking netinet/in6_var.h usability... no
checking netinet/in6_var.h presence... no
checking for netinet/in6_var.h... no
checking ifaddrs.h usability... yes
checking ifaddrs.h presence... yes
checking for ifaddrs.h... yes
checking sys/cygwin.h usability... no
checking sys/cygwin.h presence... no
checking for sys/cygwin.h... no
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking sys/fmutex.h usability... no
checking sys/fmutex.h presence... no
checking for sy

Re: [elinks-users] Can't compile eLinks Debian (PowerMac; Kernel 2.4.22)

2006-01-30 Thread Jonas Fonseca
Phillip Pi <[EMAIL PROTECTED]> wrote Mon, Jan 30, 2006:
> > > > > 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 
> > 
> >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 
> > #include 
> > #include 
> > 
> >between '#include "config.h"' and '#include ' 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. ]

I can make patches if you don't want to edit the source.

-- 
Jonas Fonseca
___
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users


Re: [elinks-users] Can't compile eLinks Debian (PowerMac; Kernel 2.4.22)

2006-01-30 Thread Phillip Pi
On Tue, Jan 31, 2006 at 07:32:10AM +0100, Jonas Fonseca wrote:
> Phillip Pi <[EMAIL PROTECTED]> wrote Mon, Jan 30, 2006:
> > > > > > 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 
> > > 
> > >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 
> > > #include 
> > > #include 
> > > 
> > >between '#include "config.h"' and '#include ' 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. :)


> I can make patches if you don't want to edit the source.

Sure, patches would be fine. Please do tell me how to use them since I am not a 
coder/prgorammer/developer. :)
-- 
"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: [EMAIL PROTECTED] or [EMAIL PROTECTED]
( )
___
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users


Re: [elinks-users] Can't compile eLinks Debian (PowerMac; Kernel 2.4.22)

2006-01-30 Thread Jonas Fonseca
Phillip Pi <[EMAIL PROTECTED]> wrote Mon, Jan 30, 2006:
> On Tue, Jan 31, 2006 at 07:32:10AM +0100, Jonas Fonseca wrote:
> > Phillip Pi <[EMAIL PROTECTED]> wrote Mon, Jan 30, 2006:
> > > > > > > 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 
> > > > 
> > > >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 
> > > > #include 
> > > > #include 
> > > > 
> > > >between '#include "config.h"' and '#include ' 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

-- 
Jonas Fonseca
___
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users


Re: [elinks-users] Can't compile eLinks Debian (PowerMac; Kernel 2.4.22)

2006-01-30 Thread Phillip Pi
> > > > > > > > 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 
> > > > > 
> > > > >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 
> > > > > #include 
> > > > > #include 
> > > > > 
> > > > >between '#include "config.h"' and '#include ' 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

Um, where's the attached file? :)
-- 
"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: [EMAIL PROTECTED] or [EMAIL PROTECTED]
( )
___
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users


Re: [elinks-users] Can't compile eLinks Debian (PowerMac; Kernel 2.4.22)

2006-01-30 Thread Jonas Fonseca
Phillip Pi <[EMAIL PROTECTED]> wrote Mon, Jan 30, 2006:
> Um, where's the attached file? :)

Yes, I forgot to attached, but tried to sent a quick follow up ...
anyway here it is again.

-- 
Jonas Fonseca
diff --git a/src/document/html/renderer.c b/src/document/html/renderer.c
index 5422693..c8f4173 100644
--- a/src/document/html/renderer.c
+++ b/src/document/html/renderer.c
@@ -4,8 +4,13 @@
 #include "config.h"
 #endif
 
+#include "elinks.h"
+
 #include 
+#include 
 #include 
+#include 
+#include 
 #include 
 
 #include "elinks.h"
___
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users


Re: [elinks-users] Can't compile eLinks Debian (PowerMac; Kernel 2.4.22)

2006-01-30 Thread Jonas Fonseca
And the famous last words: here is the patch!

-- 
Jonas Fonseca
diff --git a/src/document/html/renderer.c b/src/document/html/renderer.c
index 5422693..c8f4173 100644
--- a/src/document/html/renderer.c
+++ b/src/document/html/renderer.c
@@ -4,8 +4,13 @@
 #include "config.h"
 #endif
 
+#include "elinks.h"
+
 #include 
+#include 
 #include 
+#include 
+#include 
 #include 
 
 #include "elinks.h"
___
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users