From: Heiko Z. <he...@zu...> - 2004-09-08 01:38:26
|
Hey guys, just tried to compile lcd4linux v0.9.11 with gcc 3.4.1 (+ glibc 2.3.4 + nptl) and ran into an error: make[1]: Entering directory `/data/build/tmp/lcd4linux-0.9.11' gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -Wall -g -O2 -c lcd4linux.c gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -Wall -g -O2 -c debug.c gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -Wall -g -O2 -c cfg.c gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -Wall -g -O2 -c lock.c gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -Wall -g -O2 -c pid.c gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -Wall -g -O2 -c parser.c gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -Wall -g -O2 -c processor.c gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -Wall -g -O2 -c system.c In file included from /usr/include/linux/ppp_defs.h:45, from /usr/include/net/ppp_defs.h:8, from /usr/include/net/if_ppp.h:56, from system.c:219: /usr/include/linux/crc-ccitt.h:6: error: syntax error before "const" /usr/include/linux/crc-ccitt.h:8: error: parse error before "crc_ccitt" /usr/include/linux/crc-ccitt.h:8: error: parse error before "crc" /usr/include/linux/crc-ccitt.h:10: error: parse error before "crc_ccitt_byte" /usr/include/linux/crc-ccitt.h:10: error: parse error before "crc" /usr/include/linux/crc-ccitt.h: In function `crc_ccitt_byte': /usr/include/linux/crc-ccitt.h:12: error: `crc' undeclared (first use in this function) /usr/include/linux/crc-ccitt.h:12: error: (Each undeclared identifier is reported only once /usr/include/linux/crc-ccitt.h:12: error: for each function it appears in.) /usr/include/linux/crc-ccitt.h:12: error: `c' undeclared (first use in this function) make[1]: *** [system.o] Error 1 make[1]: Leaving directory `/data/build/tmp/lcd4linux-0.9.11' I'm not on the mailinglist, so please CC me to any responses. Thanks for the help! -- Regards Heiko Zuerker http://www.devil-linux.org |
From: Michael R. <re...@eu...> - 2004-09-09 03:06:48
|
Hi Heiko, > just tried to compile lcd4linux v0.9.11 with gcc 3.4.1 (+ glibc 2.3.4 + > nptl) and ran into an error: I'm using gcc-3.3.4 here > make[1]: Entering directory `/data/build/tmp/lcd4linux-0.9.11' > gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -Wall -g -O2 -c > lcd4linux.c > [...] > gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -Wall -g -O2 -c system.c > In file included from /usr/include/linux/ppp_defs.h:45, > from /usr/include/net/ppp_defs.h:8, > from /usr/include/net/if_ppp.h:56, > from system.c:219: > /usr/include/linux/crc-ccitt.h:6: error: syntax error before "const" I don't think this is related to gcc, but your header files. system.c includes if_ppp.h, which triggers this error. Maybe one needs to inclode some other header before if_ppp.... If you take a look at the crc-ccitt.h file, at line 6, what is there "before const"? Next, try where this symbol gets defined, and try to include this file manually. btw, you could and should try the CVS version of lcd4linux. The code is stable, it just lacks documentation... bye, Michael -- Michael Reinelt ICQ #288386781 e-mail: re...@eu... Tel: +43 676 3079941 Geisslergasse 4, A-8045 Graz, Austria GPG/PGP-Key: 0xDF13BA50 |
From: Heiko Z. <he...@zu...> - 2004-09-09 13:05:14
|
Hi Michael, Michael Reinelt wrote: > Hi Heiko, > >> just tried to compile lcd4linux v0.9.11 with gcc 3.4.1 (+ glibc 2.3.4 >> + nptl) and ran into an error: > > I'm using gcc-3.3.4 here > >> make[1]: Entering directory `/data/build/tmp/lcd4linux-0.9.11' >> gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -Wall -g -O2 -c >> lcd4linux.c > > > [...] > >> gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -Wall -g -O2 -c >> system.c >> In file included from /usr/include/linux/ppp_defs.h:45, >> from /usr/include/net/ppp_defs.h:8, >> from /usr/include/net/if_ppp.h:56, >> from system.c:219: >> /usr/include/linux/crc-ccitt.h:6: error: syntax error before "const" > > I don't think this is related to gcc, but your header files. system.c > includes if_ppp.h, which triggers this error. Maybe one needs to > inclode some other header before if_ppp.... If you take a look at the > crc-ccitt.h file, at line 6, what is there "before const"? Next, try > where this symbol gets defined, and try to include this file manually. > This is the crc-ccit.h file: --- snip --- #ifndef _LINUX_CRC_CCITT_H #define _LINUX_CRC_CCITT_H #include <linux/types.h> extern u16 const crc_ccitt_table[256]; extern u16 crc_ccitt(u16 crc, const u8 *buffer, size_t len); static inline u16 crc_ccitt_byte(u16 crc, const u8 c) { return (crc >> 8) ^ crc_ccitt_table[(crc ^ c) & 0xff]; } #endif /* _LINUX_CRC_CCITT_H */ --- snap --- the types u16 and u8 are not defined. I replaced them with __u8 and __u16 and everything works fine. > btw, you could and should try the CVS version of lcd4linux. The code > is stable, it just lacks documentation... I tried the CVS version, but it had the same problem. Of course I forgott to mention 1 'small' little detail, I'm using Kernel 2.6.8.1. Thanks for the help ! -- Regards Heiko Zuerker http://www.devil-linux.org |
From: Michael R. <re...@eu...> - 2004-09-11 20:03:11
|
Hi Heiko, >>> In file included from /usr/include/linux/ppp_defs.h:45, >>> from /usr/include/net/ppp_defs.h:8, >>> from /usr/include/net/if_ppp.h:56, >>> from system.c:219: >>> /usr/include/linux/crc-ccitt.h:6: error: syntax error before "const" > the types u16 and u8 are not defined. I replaced them with __u8 and > __u16 and everything works fine. Hmmm... modifying some glibc (or kernel) include files just to get lcd4linux working... hmmm.... I'd not consider this 'clean' :-) maybe you could search for where u16 and u8 are defined. Maybe it's sufficient to include this file just before if_ppp.h. On the other hand, maybe if_ppp.h should include these necessary files itself... > Of course I forgott to mention 1 'small' little detail, I'm using > Kernel 2.6.8.1. This should be no problem, as I'm using the same kernel here. bye, Michael -- Michael Reinelt ICQ #288386781 e-mail: re...@eu... Tel: +43 676 3079941 Geisslergasse 4, A-8045 Graz, Austria GPG/PGP-Key: 0xDF13BA50 |
From: Michael R. <re...@eu...> - 2004-09-16 00:43:50
|
Hi Jan, > i use lcd4linux but since there is kernel 2.6 there is much lack. I dont > get any CPU nice %, nor any disk R/W on my lcd. > I thought i could find a patch at your download site, but the is nothing > that would help me. > Is there any way to get lcd4linux ported to 2.6? Well, I must say that I never tried the latest "official" lcd4linxu release 0.9.11 with Kernel 2.6 The upcoming 0.10 release is nearly finished, the code seems stable, but it lacks documentation. Maybe you wanna try the CVS version? (but be warned: it changed a lot!) bye, Michael -- Michael Reinelt ICQ #288386781 e-mail: re...@eu... Tel: +43 676 3079941 Geisslergasse 4, A-8045 Graz, Austria GPG/PGP-Key: 0xDF13BA50 |
From: Michael R. <re...@eu...> - 2004-09-17 14:59:52
|
Hi Jan, > well it would be great to know how to parse the file /proc/diskstats, > the stats may have gone there :) i tried to goole etc for that but found > no docu or help. anybody out there maybe know some help? As I already wrote, the CVS versieon (which will be 0.10) has support for kernel 2.6, and therefore parses /proc/diskstat. bye, Michael -- Michael Reinelt ICQ #288386781 e-mail: re...@eu... Tel: +43 676 3079941 Geisslergasse 4, A-8045 Graz, Austria GPG/PGP-Key: 0xDF13BA50 |
From: Jan K. <ja...@ph...> - 2004-09-20 08:59:06
|
hi LCDers! Am Fr, den 17.09.2004 schrieb Michael Reinelt um 16:59: > Hi Jan, > > > well it would be great to know how to parse the file /proc/diskstats, > > the stats may have gone there :) i tried to goole etc for that but found > > no docu or help. anybody out there maybe know some help? > > As I already wrote, the CVS versieon (which will be 0.10) has support > for kernel 2.6, and therefore parses /proc/diskstat. > > bye, Michael I have tried the CVS version but i didnt get it to work :( I don't know why, I have tried my HD44 in 4 and 8 bit mode, and changed the wirings too, but my HD keeps doing nothing in any Layout - style. I just choose to change some lines in my downloaded v0.9.11 instead and that works fine now. I will provide a diff if anyone needs it. have a nice day, janK |
From: Michael R. <re...@eu...> - 2004-09-21 19:21:03
|
Hi Jan, > I have tried the CVS version but i didnt get it to work :( I don't know > why, I have tried my HD44 in 4 and 8 bit mode, and changed the wirings > too, but my HD keeps doing nothing in any Layout - style. Strange. Could you please post your (currently working) 0.9 .conf, and the (not working) CVS .conf? And an output of "lcd4linux -Fvv" from the CVS version? > I just choose to change some lines in my downloaded v0.9.11 instead and > that works fine now. > > I will provide a diff if anyone needs it. I really would like to take a look at it! bye, Michael -- Michael Reinelt <re...@eu...> http://members.eunet.at/reinelt GPG-Key 0xDF13BA50 ICQ #288386781 |