Update: I was playing around with g_debug(); and gcget gets called
from babel.c. The parameters are coming from acquire.c. I noticed a --
between the -p and password. That's it, that -- is breaking the script.
Where is that -- coming from? Should I rewrite this and submit it as a
bug report?
Mark
________________________________
From: Mark Coulter <i_offr...@yahoo.com>
To: viking-devel@lists.sourceforge.net
Sent: Wed, April 14, 2010 10:02:16 AM
Subject: Debugging HELP!
I run the configure script with the --enable-geocaches option enabled. Viking
has just what I want for geocaching, however its been broken for awhile. I
fixed the GCGET script, it works now when executed from the command line.
mcoul...@mcoulter-desktop ~ $ gcget -u warspyder -p notmyrealpassword
41.09126,-111.939731 100 100 > acquire.loc
ok found 10552, getting min(10552,100) gcs
iiiii
When I try to acquire geocaches from with viking the script fails.
** (viking:17229): DEBUG: a_babel_convert_from_shellcommand: gcget -u
'warspyder' -p -- 'notmyrealpassword' '38.606044,-109.579131' 100 100.00 >
/tmp/tmp-viking.IOL9AV
Traceback (most recent call last):
File "/usr/local/bin/gcget", line 74, in <module>
lon = ll[1]
IndexError: list index out of range
I believe the parameters are not getting passed to gcget correctly. I am not
familiar enough with debug (gdb) to check. I dont know where gcget gets called.
I think it is acquire.c and babel.c, from my Cobol experience this code makes
my head hurt. (Just kidding!)
I have attached a working version of gcget. I noticed that make install did not
copy gcget with viking into /usr/local/bin not a problem for most of us.
Mark
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/