Menu

#29 Does not compile with 64-bit Ubuntu 10.04. Patch included.

open
nobody
None
9
2014-08-27
2012-01-23
Tim Freeman
No

I'm using an Ubuntu install where /etc/lsb-release mentions "Ubuntu 10.04.3
LTS". It's a 64 bit machine. The gcc verson is 4.4.3. The palm-db-tools
version is 0_3_6.

it does not compile. The commands I gave were:

./configure
make

and the distinct errors I got were:

cc1plus: warnings being treated as errors
In file included from ../libpalm/Database.h:17,
from ../libflatfile/Database.h:13,
from strop.h:28,
from strop.cpp:26:
../libpalm/Block.h:179: error: extra ‘;’

In file included from pdbtools.h:11,
from pdbtools.cpp:1:
../libpalm/File.h:92: error: extra ‘;’

These extra semicolons stopped the process before some other errors caused by
reinterpret_cast no longer being willing to cast away const-ness, and problems
with shared libraries.

To fix the problems with shared libraries, start the process with "./configure
--enable-static" instead of "./configure".

To fix the compiler errors, apply the attached patch. I verified that pdb2csv
works in at least one case after taking these changes, and didn't test further.
Specifically, these commands gave a clean compile and a functioning pdb2csv:

# Save the attached patch into "patchfile".
tar xzf palm-db-tools-0_3_6.tar.gz
cd palm-db-tools
patch -p1 < ../patchfile
./configure --enable-static
make
flatfile/pdb2csv testfile.pdb

Discussion

  • Tim Freeman

    Tim Freeman - 2012-01-23

    Patch to fix the compiler errors

     
  • Tim Freeman

    Tim Freeman - 2012-01-23

    "Program does not compile" seems to deserve the highest priority.

     
  • Tim Freeman

    Tim Freeman - 2012-01-23
    • priority: 5 --> 9
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.