[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
mdb2rec using mdbtools 1.0.0 (recutils 1.9 release)
From: |
Juan Lasca |
Subject: |
mdb2rec using mdbtools 1.0.0 (recutils 1.9 release) |
Date: |
Mon, 25 Apr 2022 12:03:27 -0300 |
Hi,
while trying to build recutils 1.9 (the mdb2rec utility specifically)
I've found the following problems:
1) configure script didn't detect the libmdb library
2) if forced to use it (via editing configure ), mdb2rec fails to compile
The problem seems to be that in between versions of the library, the
API has changed without retaining backwards compatibility (It has also
changed website, the current version being hosted at
https://github.com/mdbtools/mdbtools)
I've written a couple of patches that fix the compatibility issue
(after autoreconf), and fixed a minor bug (all output field names are
repeated, same as the las column name of the table being selected)
configure.ac.patch:
126c126
< AC_CHECK_LIB([mdb],[mdb_init],[have_mdb=yes],)
---
> AC_CHECK_LIB([mdb],[mdb_get_version],[have_mdb=yes],)
mdb2rec.c.patch:
391a392,393
> col = g_ptr_array_index (table->columns, i);
> column_name = col->name;
431,432d432
< mdb_init();
< mdb_set_date_fmt ("%Y-%m-%dT%H:%M:%S%z"); /* ISO 8601 */
441a442,443
>
> mdb_set_date_fmt (mdb, "%Y-%m-%dT%H:%M:%S%z"); /* ISO 8601 */
Best regards,
Juan
configure.ac.patch
Description: Text Data
mdb2rec.c.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- mdb2rec using mdbtools 1.0.0 (recutils 1.9 release),
Juan Lasca <=