gnome-libs-1.2.13 / db problem



Hi,

So far, I have not been able to get gnome-libs-1.2.13 to compile....

First, using Berkeley DB 3.3.11, I get the following results:

  In file included from gnome-metadata.c:67:
  /usr/local/include/db_185.h:171: parse error before `*'
  /usr/local/include/db_185.h:171: warning: data definition has no type or
  storage class
  gnome-metadata.c: In function `init':
  gnome-metadata.c:177: warning: assignment from incompatible pointer type
  gnome-metadata.c: In function `scan_app_file':
  gnome-metadata.c:685: warning: subscript has type `char'
  gnome-metadata.c: In function `maybe_scan_app_dir':
  gnome-metadata.c:784: warning: passing arg 3 of `scandir' from incompatible
  pointer type
  *** Error code 1
  make: Fatal error: Command failed for target `gnome-metadata.lo'
  Current working directory /work/gnome/base/gnome-libs-1.2.13/libgnome
  *** Error code 1


My DB include files are linked in /usr/local/include, ie:

nimrod /usr/local/include 654#ll db*
lrwxrwxrwx 1 root other 38 Aug 7 17:09 db.h -> /usr/local/BerkeleyDB.3.3/include/db.h lrwxrwxrwx 1 root other 42 Aug 7 17:09 db_185.h -> /usr/local/BerkeleyDB.3.3/include/db_185.h lrwxrwxrwx 1 root other 42 Aug 7 17:09 db_cxx.h -> /usr/local/BerkeleyDB.3.3/include/db_cxx.h


If you look at db_185.h, the end of the file looks like:

  /* DO NOT EDIT: automatically built by dist/s_include. */
  #if defined(__cplusplus)
  extern "C" {
  #endif
  #define dbopen __db185_open
  DB185 *__db185_open __P((const char *, int, int, DBTYPE, const void *));
  #if defined(__cplusplus)
  }
  #endif

  #endif /* !_DB_185_H_ */


The problem is that DB185 is never defined, so the line:

DB185 *__db185_open __P((const char *, int, int, DBTYPE, const void *));

fails with an undeclared data type....


Soooooooooo.....  I tried db 2.7.7, and it compiles - at least past this
problem, BUT...  complains about libdb not being shared.


Has anyone successfully compiled this on Solaris 8?  If so, how?

Is there a version of gnome-libs that uses the current version of db,
rather than 1.85 compatability?

Can I just use 2.7.7, and ignore the message about libdb not being shared?
(I did not see any option in configure to build a shared version.)

Tia,
Bill

















[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]