From: =?iso-8859-1?Q?<mar...@la...> - 2003-01-06 13:54:31
|
Perhaps there is a trouble with autoconf. the last=0D=0Amodification was = made on Windows and i didn't test on Linux after.=0D=0A=0D=0Atry to run t= he "autogen.sh" script in the root directory of=0D=0Athe sources. You nee= d to install "autoconf".=0D=0A=0D=0A> All:=0D=0A> =0D=0A> I am trying to = compile the source in the db-tools package on=0D=0Aa Mandrake =0D=0A> Lin= ux 9.0 box, and here are the steps outlined in the README=0D=0Afile that = =0D=0A> comes with the tar.gz package:=0D=0A> =0D=0A> [README excerpt]=0D= =0A> Compiling on UNIX=0D=0A> -----------------=0D=0A> =0D=0A> You will n= eed a C++ compiler on your system which supports=0D=0Athe STL and=0D=0A> = exceptions. Then run the following commands to compile the=0D=0Autilities= :=0D=0A> =0D=0A> ./configure=0D=0A> make=0D=0A> =0D=0A> In the "flatf= ile" directory, you will find the "csv2pdb"=0D=0Aprogram which=0D=0A> is = used to convert from text files to Palm Pilot format and the=0D=0A> "pdb2= csv" program which is used to convert from a Palm Pilot=0D=0Aformat=0D=0A= > back to text files.=0D=0A> [/README excerpt]=0D=0A> =0D=0A> The problem= is that I can't even get past the "./configure"=0D=0Astep. =0D=0A> Firs= t, I chmod'ed the ./configure file to 755 to make it=0D=0Aexecutable, =0D= =0A> but even with this change, typing ./configure gave me a=0D=0A"comman= d not =0D=0A> found" error. So I fell back to trying "sh ./configure",=0D= =0Aand here is =0D=0A> the output:=0D=0A> =0D=0A> <root@nikita palm-db-to= ols> sh ./configure=0D=0A> : command not found:=0D=0A> '/configure: line = 14: syntax error near unexpected token `in=0D=0A> '/configure: line 14: `= case X$UNAME in=0D=0A> =0D=0A> Any suggestions or explanations? Has an= yone successfully=0D=0Acompiled this =0D=0A> package on a Linux box? If = so, which distribution? Maybe=0D=0AMandrake is =0D=0A> doing something w= rong.=0D=0A> =0D=0A> Dan=0D=0A> =0D=0A> =0D=0A> =0D=0A> -----------------= --------------------------------------=0D=0A> This sf.net email is sponso= red by:ThinkGeek=0D=0A> Welcome to geek heaven.=0D=0A> http://thinkgeek.c= om/sf=0D=0A> _______________________________________________=0D=0A> Pilot= -db-list mailing list=0D=0A> Pil...@li...=0D=0A> h= ttps://lists.sourceforge.net/lists/listinfo/pilot-db-list=0D=0A> =0A=0AAc= c=E9dez au courrier =E9lectronique de La Poste : www.laposte.net ; =0A361= 5 LAPOSTENET (0,13 =80/mn) ; t=E9l : 08 92 68 13 50 (0,34=80/mn)"=0A=0A |
From: Elijah <des...@so...> - 2003-01-06 14:34:53
|
Hi again, I've followed the steps in compiling the palm-db-tools for my palmm100 but it just won't compile. It gives me errors of bad interpreters, $UNAME errors, etc. Someone just replied to the last messages that those tarballs doesn't work (?). I love db, but ever since I left windows and am now using linux I was never able to convert a thing and haven't update my databases ever since the tarball is not working for compile. Can I request to anyone who successfully compiled the tools (csv2pdb, pdb2csv, etc.) from linux to send me a copy? will it work on my linux box? ... pretty please? des...@so... Thanks for your time, Elijah |
From: Chris R. <cro...@ho...> - 2003-01-07 06:06:09
|
Seem like there's a lot of sloppy coding and not much quality control on this project. Here are the changes I made to get it to compile (sorry it's not in the form of a patch...). Didn't do me any good; I still can't get Pilot-DB to read databases generated by csv2pdb, and the pre-built DOS csv2pdb doesn't work either. (see below for my test cases). To build under UNIX (Mac OS X 10.2 in my case:) 1. All files in the tarball have lines ending in CR-LF (an MS-DOS-ism) which seems to cause problems on some unices (like OSX). I stripped out the trailing ^M's of all the files with a simple script, something like: #!/bin/sh for f in `find . -type f -print` ; do tr -d '\015' <$f > foo mv foo $f done 2. I also had to "chmod +x configure config.sub". That let me do a "./configure" and a "make". 3. I had to add #include <time.h> to libsupport/strop.cpp to get rid of "forward declaration of `struct StrOps::tm'" error. 4. I had to fix a lot of comparison between signed and unsigned errors: (the -Werror flag they're using forces gcc to treat them as errors -- a good idea, but I don't understand then why there are so many problems with this release!). Basically change the variable declaration to be unsigned instead of int. Also, there were a bunch of scoping problems where variable 'j' was being used outside of its scope (looks like somebody doesn't understand the concept of scope...) libsupport/csvfile.cpp, line 120 libflatfile/Database.cpp, line 146 libflatfile/OldDB.cpp: line 210: get rid of the "int" declaration of j and move it to line 144 (as unsigned) libflatfile/MobileDB.cpp: line 454: move j's declaration to line 363 (as unsigned). libflatfile/ListDB.cpp: line 150 same again; move j's declaration to function scope libflatfile/JFile3.cpp:316 same again With gcc 3.1, I couldn't get it to compile; I got: In file included from clp.cpp:1: clp.h:21: looser throw specifier for `virtual CLP::option_error::~option_error()' clp.h:16: overriding `virtual CLP::parse_error::~parse_error() throw ()' which I'm at a loss to figure out... With gcc 2.95, I got it to compile, but I had to get a version of sstream from: http://gcc.gnu.org/ml/libstdc++/2000-q2/msg00700/sstream which I had to edit to typecast the signed/unsigned comparison on line 171: if( buf.size() - rpos != (unsigned) n) ---------------------- After all that, it compiles and runs, but it doesn't WORK! The db generated by csv2pdb isn't able to be read by DB (v1.1b1 db-standard): I get an "Unable to open database." dialog. pdb2csv can read it fine however. Here are my test files: ============= Test.info ============= title "Test" field "Category" string field "Item" string view "Category" "Category" 46 "Item" 30 csvfile "Test.csv" ============= Test.csv ============= "Car","Brush" "Car","Coolers" "Engines","Helmets" "Engines","Oil" "Engines","Gas" "Bike","Clothes" ========================== -- Chris |