From bogus@does.not.exist.com Fri Oct 23 11:09:19 2009 From: bogus@does.not.exist.com () Date: Fri, 23 Oct 2009 15:09:19 -0000 Subject: No subject Message-ID: libraries, or more specifically, the four functions Tk_FindPhoto, Tk_Init, Tk_MainLoop and Tk_PhotoPutBlock in pilot-debug.c As a quick hack, I added #undef TK to pilot-debug.c and pd-tty.c The code now complies and I just ran pilot-xfer /dev/ttya -l and got a list of stuff, so far, so good. If anyone can think of what I need to do to get the code to compile without the hack, please let me know. Thanks George From chrisdeam at deam.digitalhomeport.com Fri Oct 23 11:09:19 2009 From: chrisdeam at deam.digitalhomeport.com (chrisdeam at deam.digitalhomeport.com) Date: 16 Tue Apr 2002, 17:06:07 EDT Subject: pilot-addresses problems Message-ID: <200204162106.g3GL67V11217@deam.digitalhomeport.com> I cannot get this to work correctly. I am trying to grab data from mysql and upload it to the palm using pilot-addresses. Here are the steps I did: 1. Create a full address in the palm. 2. pilot-addresses -p /dev/palm -w address.out (To see what kind of file the palm expects.) 3. Less address.out (Looks pretty straightforward) 4. pilot-xfer -d AddressDB /dev/palm (To blank the address db) 5. pilot-addresses -p /dev/palm -w address.out (Just to see if it works correctly with its own generated file) IT DIDN\'T WORK!!!! 6. Vi address.out remove all quotes. 7. pilot-addresses -p /dev/palm -w address.out (Works without quotes) 8. write perl script that grabs data from mysql table and generates an output file without quotes and a single newline at the end of each row. 9. pilot-addresses -p /dev/palm -w /tmp/address.out IT DOESN\'T WORK!!!!!! all that shows up is some of the first record (there are 14 records). It\'s almost like it doesn\'t like the newlines, but I can\'t figure out why that would be. What am I doing wrong. I have a palm III. Here is perl script: #!/usr/bin/perl use DBI; #use Getopt::Long; # set the data source name # format: dbi:db type:db name:host:port # mysqls default port is 3306 # if you are running mysql on another host or port, # you must change it my $dsn = \'dbi:mysql:homeport:192.168.0.189:3306\'; # set the user and password my $user = \'\'; my $pass = \'\'; # now connect and get a database handle my $dbh = DBI->connect($dsn, $user, $pass) or die \"Can\'t connect to the DB: $DBI::errstr\\n\"; $username = shift(@ARGV); my $query = $dbh->prepare(\"select user_id from users where user=\'$username\'\"); $query->execute(); $user_id = $query->fetchrow_array(); print \"$user_id\\n\"; $sth = $dbh->prepare(\"select name,firstname,title,company,telwork,telhome,faxwork,mobile,email,address,city,state,zip,country,custom1,custom2,custom3,custom4,note from addresses where owner=\'$user_id\'\"); $sth->execute; open (OPEN, \"+>/tmp/address.out.$username\"); while ( my (@row) = $sth->fetchrow_array()){ print OPEN \"$row[0],\"; print OPEN \"$row[1],\"; print OPEN \"$row[2],\"; print OPEN \"$row[3],\"; print OPEN \"$row[4],\"; print OPEN \"$row[5],\"; print OPEN \"$row[6],\"; print OPEN \"$row[7],\"; print OPEN \"$row[8],\"; print OPEN \"$row[9],\"; print OPEN \"$row[10],\"; print OPEN \"$row[11],\"; print OPEN \"$row[12],\"; print OPEN \"$row[13],\"; print OPEN \"$row[14],\"; print OPEN \"$row[15],\"; print OPEN \"$row[16],\"; print OPEN \"$row[17],\"; print OPEN \"$row[18],\"; print OPEN \"0\\n\"; } close OPEN; From bogus@does.not.exist.com Fri Oct 23 11:09:19 2009 From: bogus@does.not.exist.com () Date: Fri, 23 Oct 2009 15:09:19 -0000 Subject: No subject Message-ID: wrong chipset (uhci vs ohci) or the bus is confused and needs to be reloaded. I am pretty sure I've got the right chipset -- this is a VIA KT133 and I'm using uhci.o. So I've tried removing the modules and reloading them. Unfortunately, usbcore refuses to unload, saying the device is busy (though I can see nothing using it in the modules list and the cradle is unplugged from the port). Because usbcore won't unload, the only effect all of this has is to reset the address count. Is a reboot my only remaining answer? Thanks, -- Jack Coates Monkeynoodle: A Scientific Venture... From bogus@does.not.exist.com Fri Oct 23 11:09:19 2009 From: bogus@does.not.exist.com () Date: Fri, 23 Oct 2009 15:09:19 -0000 Subject: No subject Message-ID: NOTICE: Please update your address book to use the above address instead of "yaztromo at idirect.com". Voytek Eymont SBT Information Systems Pty Ltd http://www.sbt.net.au/links/ phone +61-2 9310-1144 fax +61-2 9310-1118 From bogus@does.not.exist.com Fri Oct 23 11:09:19 2009 From: bogus@does.not.exist.com () Date: Fri, 23 Oct 2009 15:09:19 -0000 Subject: No subject Message-ID: $ ./pilot-xfer -i ../../../MT3D_C8_demo.prc No $PILOTPORT specified and no -p given. Defaulting to '/dev/pilot' Listening to port: /dev/pilot Please press the HotSync button now... Connected Installing ../../../MT3D_C8_demo.prc Segmentation fault (core dumped) Doing a backtrace on the core file generated by the binary in ./src/.libs/pilot-xfer, I see:- (gdb) bt #0 0x400ad730 in free () from /lib/libc.so.6 #1 0x400ad6d3 in free () from /lib/libc.so.6 #2 0x40025f1b in dlp_arg_free () from /usr/lib/libpisock.so.8 #3 0x400264de in dlp_response_free () from /usr/lib/libpisock.so.8 #4 0x40029d20 in dlp_WriteResource () from /usr/lib/libpisock.so.8 #5 0x40032f88 in pi_file_install () from /usr/lib/libpisock.so.8 #6 0x0804a3ea in Install (filename=0xbffffab1 "../../../MT3D_C8_demo.prc") at pilot-xfer.c:855 #7 0x0804aae4 in main (argc=3, argv=0xbffff984) at pilot-xfer.c:1116 (gdb) quit My glibc packages are:- ii libc6 2.2.5-14.3 ii libc6-dev 2.2.5-14.3 Has anyone else seen this? Are there known problems with some glibc versions? Anything I can do about it? Mike.