From: Gray, T. <Tim...@ca...> - 2002-12-05 16:14:32
|
Ok I fixed it so that it runs under Slackware 8.0 in every program that refrences sys/time.h I changed it to time.h and in every instance where it defines myzone I change it to long int instead of trying to get it to be set from time.h (which is wierd because time.h does set timezone to be a long int.) it compiled, installed and ran. problem is that the program is incompatable with the latest firmware from ADI for the leopard. I'm going to have to downgrade and see if I can read and set variables again. -----Original Message----- From: Gray, Tim Sent: Thursday, December 05, 2002 10:31 AM To: 'mis...@li...' Subject: RE: [misterhouse-users] cpuxa and linux with MH here's the errors this is from trying to compile the libs.... gcc -O2 -fomit-frame-pointer -Wall -c -o cpuxa.o cpuxa.c cpuxa.c: In function `cpuxa_set_rtc': cpuxa.c:1111: storage size of `myzone' isn't known cpuxa.c:1120: warning: implicit declaration of function `gettimeofday' cpuxa.c:1111: warning: unused variable `myzone' cpuxa.c: In function `cpuxa_set_rtc_abs': cpuxa.c:1167: storage size of `myzone' isn't known cpuxa.c:1167: warning: unused variable `myzone' make: *** [cpuxa.o] Error 1 this is from trying to compile the server... gcc -Wall -O2 -fomit-frame-pointer -DDEBUG -I../lib -I. -DXA_PORT=2000 -DXA_HOST=\""localhost"\" -DXA_VER=\""0.47"\" -DXA_DEV=\"/dev/ocelot\" -DXA_LOCK=\"/var/lock/LCK..ocelot\" -DXA_ACCESS=\"/usr/local/etc/cpuxad.access\" -DXA_CHROOT=\"/usr/local/lib/cpuxad\" -DXA_LOG=\"/var/log/cpuxad\" -c cpuxad.c cpuxad.c: In function `timestamp': cpuxad.c:141: warning: implicit declaration of function `localtime' cpuxad.c:141: warning: assignment makes pointer from integer without a cast cpuxad.c:142: dereferencing pointer to incomplete type cpuxad.c:145: dereferencing pointer to incomplete type cpuxad.c:145: dereferencing pointer to incomplete type cpuxad.c:145: dereferencing pointer to incomplete type cpuxad.c:145: dereferencing pointer to incomplete type cpuxad.c:145: dereferencing pointer to incomplete type cpuxad.c:134: warning: `year' might be used uninitialized in this function make: *** [cpuxad.o] Error 1 -----Original Message----- From: Neil Cherry [mailto:nc...@co...] Sent: Thursday, December 05, 2002 10:15 AM To: mis...@li... Subject: Re: [misterhouse-users] cpuxa and linux with MH Gray, Tim wrote: > does anyone have an updaged version of the cpuxa software for linux? the > versions I find on the internet will not compile under redhat 8.0 due to > large amounts of syntax errors and trying to derefrence pointers the wrong > way. Argh! I don't have RH 8.0 (I guess I now have a reson) but I am the keeper of the code. Please send me the error output and I'll see if it's something simple like a header file. Otherwise I'll need access to a RH 8.0 box to figure it out. -- Linux Home Automation Neil Cherry nc...@co... http://mywebpages.comcast.net/ncherry/ (Text only) http://linuxha.sourceforge.net/ (SourceForge) http://hcs.sourceforge.net/ (HCS II) ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ________________________________________________________ To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ________________________________________________________ To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 |