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

2006-01-31 Thread Phillip Pi
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 NEWSUnicode config configure 
features.conftest
AUTHORSMakefileREADME  acinclude.m4config.h   
configure.in  features.log
BUGS   Makefile.config SITES   aclocal.m4  config.h.incontrib   
po
COPYINGMakefile.config.in  THANKS  autogen.sh  config.log debian
ppc-off_t.patch
ChangeLog  Makefile.libTODOautom4te.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
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 

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

2006-01-31 Thread Zas
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 NEWSUnicode config 
 configure features.conftest
 AUTHORSMakefileREADME  acinclude.m4config.h   
 configure.in  features.log
 BUGS   Makefile.config SITES   aclocal.m4  config.h.incontrib 
   po
 COPYINGMakefile.config.in  THANKS  autogen.sh  config.log debian  
   ppc-off_t.patch
 ChangeLog  Makefile.libTODOautom4te.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


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

2006-01-31 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 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
  
  $ ls
  ABOUT-NLS  INSTALL NEWSUnicode config 
  configure features.conftest
  AUTHORSMakefileREADME  acinclude.m4config.h   
  configure.in  features.log
  BUGS   Makefile.config SITES   aclocal.m4  config.h.in
  contrib   po
  COPYINGMakefile.config.in  THANKS  autogen.sh  config.log 
  debianppc-off_t.patch
  ChangeLog  Makefile.libTODOautom4te.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

I re-extracted the source, repatched, and modified the time.h file to add a 
line. I recompiled:

$ ./configure
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

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

2006-01-31 Thread Phillip Pi
On Tue, Jan 31, 2006 at 04:06:50PM +0100, Jonas Fonseca wrote:
 Phillip Pi [EMAIL PROTECTED] wrote Tue, Jan 31, 2006:
  OK, I got the patch and tried it, but still failed:
 
 But yay, there is progress! :)
 
 Side note: you don't need to add the whole configure + make log every
 time. It was great in the start but onwards something equivalent to the
 below will do.

OK. I will post the last few lines with the error lines then.

 
[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
 
 As Zas replied I think we need to fix util/time.h, although I somehow
 doubt it will fix it. It seems we need to include elinks.h always before
 system headers.
 
  Also, I have not tried compiling this under Mac OS X 10.2.8 so I hope
  it can compile there too. I will try that later on like on the weekend
  or whatever.
 
 If you have the time, that will be great. I don't think the new build
 system and the other changes since 0.10 has been exercised on Mac OS X.

OK. Well, this was more of a surprise on a different Debian box. :) My Debian 
r3.1 box (Kernel 
2.6.14-K7) at home had no problems.
-- 
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-31 Thread Jonas Fonseca
Phillip Pi [EMAIL PROTECTED] wrote Tue, Jan 31, 2006:
 [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
 
 I re-extracted the source, repatched, and modified the time.h file to add a 
 line. I recompiled:
 
 $ ./configure
[snip]
 checking for char... yes
 checking size of char... configure: error: cannot compute sizeof (char), 77
 See `config.log' for more details.
 
 I didn't get very far. Heh.

This obviously doesn't make sense. Does it do this every time? Anyway
you don't have to unpack + patch + configure + make everytime. After
configuring the first time, make'll do.

-- 
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 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 | grep typedef

maybe removing '/sys' and '| grep typedef' if no results 

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 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?

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

-- 
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 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 ctype.h
+#include errno.h
 #include stdarg.h
+#include stdio.h
+#include stdlib.h
 #include string.h
 
 #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 ctype.h
+#include errno.h
 #include stdarg.h
+#include stdio.h
+#include stdlib.h
 #include string.h
 
 #include elinks.h
___
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users