| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| AntiqueCarNut 
 
 
 Joined: 21 Nov 2005
 Posts: 2
 
 
 | 
			
				|  Posted: Mon Nov 21, 2005 8:21 pm    Post subject: Trouble getting CWOP and Wunderground going... |   |  
				| 
 |  
				| Hi Mark: 
 Mac OS X 10.4.2:
 
 I'm able to view the pages locally - so far so good. So, I stopped wview and then re-ran ran the setup script, enabling CWOP and Wunderground with a 5 minute archive interval.
 
 I'm attempting to get CWOP and Wunderground working, but not having much success. I don't see anything in /var/logs/messages either - in fact the /messages directory doesn't exist. Should I look elsewhere?
 
 Here's what I did - and got a bunch of errors. Not sure what's happening, here.
 
 Adam-G5:~/Documents/WView_stuff Adam$ cd wview-1.8.4
 
 Adam-G5:~/Documents/WView_stuff/wview-1.8.4 Adam$ sudo ./configure --enable-wunderground
 
 checking for a BSD-compatible install... /usr/bin/install -c
 checking whether build environment is sane... yes
 checking for gawk... no
 checking for mawk... no
 checking for nawk... no
 checking for awk... awk
 checking whether make sets $(MAKE)... yes
 checking for style of include used by make... GNU
 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 dependency style of gcc... gcc3
 checking whether byte ordering is bigendian... yes
 checking whether struct tm is in sys/time.h or time.h... time.h
 checking for struct tm.tm_zone... yes
 checking for g++... g++
 checking whether we are using the GNU C++ compiler... yes
 checking whether g++ accepts -g... yes
 checking dependency style of g++... gcc3
 checking for gcc... (cached) gcc
 checking whether we are using the GNU C compiler... (cached) yes
 checking whether gcc accepts -g... (cached) yes
 checking for gcc option to accept ANSI C... (cached) none needed
 checking dependency style of gcc... (cached) gcc3
 checking for strncpy in -lc... yes
 checking for gdImageCreate in -lgd... no
 checking for exp in -lm... yes
 checking for png_write_chunk in -lpng... no
 checking for radSystemGetUpTimeMS in -lrad... no
 checking for inflate in -lz... yes
 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 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 for stdlib.h... (cached) yes
 checking for string.h... (cached) yes
 checking sys/time.h usability... yes
 checking sys/time.h presence... yes
 checking for sys/time.h... yes
 checking termios.h usability... yes
 checking termios.h presence... yes
 checking for termios.h... yes
 checking for unistd.h... (cached) yes
 checking for an ANSI C-conforming const... yes
 checking for pid_t... yes
 checking whether time.h and sys/time.h may both be included... yes
 checking whether struct tm is in sys/time.h or time.h... (cached) time.h
 checking for unistd.h... (cached) yes
 checking vfork.h usability... no
 checking vfork.h presence... no
 checking for vfork.h... no
 checking for fork... yes
 checking for vfork... yes
 checking for working fork... yes
 checking for working vfork... (cached) yes
 checking for stdlib.h... (cached) yes
 checking for sys/time.h... (cached) yes
 checking for unistd.h... (cached) yes
 checking for alarm... yes
 checking for working mktime... yes
 checking return type of signal handlers... void
 checking whether lstat dereferences a symlink specified with a trailing slash... no
 checking whether stat accepts an empty string... no
 checking for localtime_r... yes
 checking for memset... yes
 checking for mkdir... yes
 checking for pow... yes
 checking for strrchr... yes
 configure: creating ./config.status
 config.status: creating Makefile
 config.status: creating daemon/Makefile
 config.status: creating htmlgenerator/Makefile
 config.status: creating alarms/Makefile
 config.status: creating cwop/Makefile
 config.status: creating wunderground/Makefile
 config.status: creating ftp/Makefile
 config.status: creating ssh/Makefile
 config.status: creating vpconfig/Makefile
 config.status: creating wviewconfig/Makefile
 config.status: creating config.h
 config.status: config.h is unchanged
 config.status: executing depfiles commands
 
 
 Adam-G5:~/Documents/WView_stuff/wview-1.8.4 Adam$ sudo make install
 
 Making install in daemon
 test -z "/usr/local/bin" || /Users/Adam/Documents/WView_stuff/wview-1.8.4/install-sh -d "/usr/local/bin"
 /usr/bin/install -c 'wviewd' '/usr/local/bin/wviewd'
 make[2]: Nothing to be done for `install-data-am'.
 Making install in htmlgenerator
 test -z "/usr/local/bin" || /Users/Adam/Documents/WView_stuff/wview-1.8.4/install-sh -d "/usr/local/bin"
 /usr/bin/install -c 'htmlgend' '/usr/local/bin/htmlgend'
 make[2]: Nothing to be done for `install-data-am'.
 Making install in alarms
 test -z "/usr/local/bin" || /Users/Adam/Documents/WView_stuff/wview-1.8.4/install-sh -d "/usr/local/bin"
 /usr/bin/install -c 'wvalarmd' '/usr/local/bin/wvalarmd'
 make[2]: Nothing to be done for `install-data-am'.
 Making install in cwop
 test -z "/usr/local/bin" || /Users/Adam/Documents/WView_stuff/wview-1.8.4/install-sh -d "/usr/local/bin"
 /usr/bin/install -c 'wvcwopd' '/usr/local/bin/wvcwopd'
 make[2]: Nothing to be done for `install-data-am'.
 Making install in ftp
 test -z "/usr/local/bin" || /Users/Adam/Documents/WView_stuff/wview-1.8.4/install-sh -d "/usr/local/bin"
 /usr/bin/install -c 'wviewftpd' '/usr/local/bin/wviewftpd'
 make[2]: Nothing to be done for `install-data-am'.
 Making install in ssh
 test -z "/usr/local/bin" || /Users/Adam/Documents/WView_stuff/wview-1.8.4/install-sh -d "/usr/local/bin"
 /usr/bin/install -c 'wviewsshd' '/usr/local/bin/wviewsshd'
 make[2]: Nothing to be done for `install-data-am'.
 Making install in vpconfig
 test -z "/usr/local/bin" || /Users/Adam/Documents/WView_stuff/wview-1.8.4/install-sh -d "/usr/local/bin"
 /usr/bin/install -c 'vpconfig' '/usr/local/bin/vpconfig'
 test -z "/usr/local/bin" || /Users/Adam/Documents/WView_stuff/wview-1.8.4/install-sh -d "/usr/local/bin"
 /usr/bin/install -c 'vpinstall' '/usr/local/bin/vpinstall'
 make[2]: Nothing to be done for `install-data-am'.
 Making install in wviewconfig
 test -z "/usr/local/bin" || /Users/Adam/Documents/WView_stuff/wview-1.8.4/install-sh -d "/usr/local/bin"
 /usr/bin/install -c 'wviewconfig' '/usr/local/bin/wviewconfig'
 make[2]: Nothing to be done for `install-data-am'.
 Making install in wunderground
 if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../common -I/usr/local/include -I/usr/include -I/usr/local/include -D_GNU_SOURCE -DBUILD_WVWUNDERGROUND     -g -O2 -MT wvutils.o -MD -MP -MF ".deps/wvutils.Tpo" -c -o wvutils.o `test -f '../common/wvutils.c' || echo './'`../common/wvutils.c; \
 then mv -f ".deps/wvutils.Tpo" ".deps/wvutils.Po"; else rm -f ".deps/wvutils.Tpo"; exit 1; fi
 ../common/wvutils.c:42:23: error: radmsgLog.h: No such file or directory
 ../common/wvutils.c:43:25: error: radconffile.h: No such file or directory
 In file included from ../common/wvutils.c:46:
 ../common/sysdefs.h:29:24: error: radsysdefs.h: No such file or directory
 In file included from ../common/wvutils.c:46:
 ../common/sysdefs.h:124: error: parse error before 'vptimeSunrise'
 ../common/wvutils.c: In function 'wvutilsSetVerbosity':
 ../common/wvutils.c:60: error: 'CF_ID' undeclared (first use in this function)
 ../common/wvutils.c:60: error: (Each undeclared identifier is reported only once
 ../common/wvutils.c:60: error: for each function it appears in.)
 ../common/wvutils.c:60: error: parse error before 'configFileId'
 ../common/wvutils.c:70: error: 'configFileId' undeclared (first use in this function)
 ../common/wvutils.c:81: error: 'ERROR' undeclared (first use in this function)
 ../common/wvutils.c:94: error: 'OK' undeclared (first use in this function)
 ../common/wvutils.c: At top level:
 ../common/wvutils.c:242: error: parse error before 'vptimeSunrise'
 ../common/wvutils.c: In function 'wvutilsIsDayTime':
 ../common/wvutils.c:249: error: 'FALSE' undeclared (first use in this function)
 ../common/wvutils.c:255: error: 'vptimeSunrise' undeclared (first use in this function)
 ../common/wvutils.c:257: error: 'vptimeSunset' undeclared (first use in this function)
 ../common/wvutils.c:265: error: 'TRUE' undeclared (first use in this function)
 make[1]: *** [wvutils.o] Error 1
 make: *** [install-recursive] Error 1
 
 Adam-G5:~/Documents/WView_stuff/wview-1.8.4 Adam$ sudo /sbin/SystemStarter start
 
 Adam-G5:~/Documents/WView_stuff/wview-1.8.4 Adam$ sudo /sbin/SystemStarter start "wview"
 >
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| mteel 
 
  
 Joined: 30 Jun 2005
 Posts: 435
 Location: Collinsville, TX
 
 | 
			
				|  Posted: Mon Nov 21, 2005 10:11 pm    Post subject: |   |  
				| 
 |  
				| It appears you aren't keeping the wview-Quick-Start-MacOSX.html file handy   
 
  	  | Quote: |  	  | 2)  Configure the distribution: 
 cd radlib-x.y.z
 ./configure --prefix=/opt/local
 | 
 Even if you are enabling wunderground, you still have to set the prefix to /opt/local as well: ./configure --prefix=/opt/local --enable-wunderground
 This should help...
 
 Also from wview-Quick-Start-MacOSX.html:
 
  	  | Quote: |  	  | 12) See wview startup and run logs: 
 sudo tail -n 100 -f /var/log/system.log
 | 
 
 Mark
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| AntiqueCarNut 
 
 
 Joined: 21 Nov 2005
 Posts: 2
 
 
 | 
			
				|  Posted: Tue Nov 22, 2005 12:40 am    Post subject: |   |  
				| 
 |  
				| I kinda figured this out since I had posted the help query, earlier. RTFM, I guess.   
 Both CWOP and APRS are working now! Somehow, I'm not seeing the packets being sent to CWOP or APRS in the system log. I have logging enabled. I used the error page on FindU.com to determine what the problem was with the packets that I was sending.
 
 OK, I'd like to understand why there are two instances of each of the wview daemons running:
 
 22229	 wvwunderd	root	0.00	1	1.48 MB	27.57 MB
 22231	 wvwunderd	root	0.00	1	504.00 KB	27.57 MB
 22218	 wviewd	root	0.00	1	948.00 KB	27.65 MB
 22219	 wviewd	root	0.00	1	460.00 KB	27.64 MB
 22228	 wvcwopd	root	0.00	1	460.00 KB	27.57 MB
 22226	 wvcwopd	root	0.00	1	896.00 KB	27.57 MB
 
 Next to tweak the web page layouts a bit and get them to upload.
 
 Mark, I really appreciate your help and the work you've put into this code.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| mteel 
 
  
 Joined: 30 Jun 2005
 Posts: 435
 Location: Collinsville, TX
 
 | 
			
				|  Posted: Tue Nov 22, 2005 7:08 am    Post subject: |   |  
				| 
 |  
				| From the full User Manual: 
  	  | Quote: |  	  | 19. Troubleshooting 
 19.1  wview Processes
 
 Please note there are two unix processes for each wview daemon: this is
 normal radlib operation. One is the actual daemon and the other is a
 "reflector" process which allows the daemon to send events to itself and
 to open the message queue FIFO properly. Don't let that bother you.
 
 Here are the processes running on my server (no ssh/ftp because I don't
 need it):
 
 root@dmzweb:/root# ps aux | grep wv
 root     58042  0.0  0.4  2700 2104  ??  Ss    6:52PM   0:02.41 /usr/local/bin/wviewd
 root     58044  0.0  0.3  2288 1616  ??  I     6:52PM   0:00.00 /usr/local/bin/wviewd
 root     58051  0.0  0.2  2044 1080  ??  Ss    6:52PM   0:00.03 /usr/local/bin/wvalarmd
 root     58052  0.0  0.2  2024  840  ??  I     6:52PM   0:00.00 /usr/local/bin/wvalarmd
 root@dmzweb:/root# ps aux | grep htmlgen
 root     58046  0.0  0.4  3568 1976  ??  Is    6:52PM   0:45.78 /usr/local/bin/htmlgend
 root     58048  0.0  0.3  3504 1272  ??  I     6:52PM   0:00.00 /usr/local/bin/htmlgend
 root@dmzweb:/root#
 
 This indicates I have 3 wview daemons running: wviewd, htmlgend and
 wvalarmd.
 | 
 Having said that, be sure you are getting everything shutdown by calling your start script as described in the MacOSX manual when you stop wview.
 
 I don't log the successful CWOP or Wunderground transmissions to cut down on the number of message logs generated... It will log if there is a failure transmitting them.
 
 Be sure to see section 18. Setting Up FTP Transfers in the User Manual to set up FTP on your Mac.
 
 Thanks for the kind words and have fun!
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  |