Jump to content
funtoo forums
  • 0
Sign in to follow this  
PeGa!

Unable to update app-arch/rpm to 5.4.0

Question

Hey folks,

 

I'm experiencing problems with a system upgrade, and when it comes the moment to upgrade rpm, this is what happens:

libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../lib -I../rpmdb -I../rpmio -I../misc -I../beecrypt/include -I../beecrypt/include -I../beecrypt -I../beecrypt -I../db -I../db -I../db/src -I../db/src -I../scripts -I../scripts -DRPM_OS_LINUX=031500 -DRPM_OS_LINUX=031500 -fopenmp -march=bdver2 -O2 -pipe -D_GNU_SOURCE -D_REENTRANT 
-c rpmdb.c  -fPIC -DPIC -o .libs/librpmdb_la-rpmdb.o
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../lib -I../rpmdb -I../rpmio -I../misc -I../beecrypt/include -I../beecrypt/include -I../beecrypt -I../beecrypt -I../db -I../db -I../db/src -I../db/src -I../scripts -I../scripts -DRPM_OS_LINUX=031500 -DRPM_OS_LINUX=031500 -fopenmp -march=bdver2 -O2 -pipe -D_GNU_SOURCE -D_REENTRANT 
-c rpmlio.c  -fPIC -DPIC -o .libs/librpmdb_la-rpmlio.o
In file included from dbconfig.c:14:0:
./rpmdb.h:433:5: error: unknown type name 'DB_SEQUENCE'
     DB_SEQUENCE * dbi_seq; /*!< Berkeley DB_SEQUENCE handle */
     ^
./rpmdb.h:490:5: error: unknown type name 'DB_LOGC'
     DB_LOGC * db_logc; /*!< Berkeley DB_LOGC handle */
     ^
./rpmdb.h:491:5: error: unknown type name 'DB_MPOOLFILE'
     DB_MPOOLFILE *db_mpf; /*!< Berkeley DB_MPOOLFILE handle */
     ^
./rpmdb.h: In function 'rpmlkId':
./rpmdb.h:875:9: error: 'DB_ENV' has no member named 'lock_id'
  ? dbenv->lock_id(dbenv, _idp) : ENOTSUP;
         ^
./rpmdb.h: In function 'rpmlkIdFree':
./rpmdb.h:886:9: error: 'DB_ENV' has no member named 'lock_id_free'
  ? dbenv->lock_id_free(dbenv, _id) : ENOTSUP;
         ^
./rpmdb.h: In function 'rpmlkGet':
./rpmdb.h:899:9: error: 'DB_ENV' has no member named 'lock_get'
  ? dbenv->lock_get(dbenv, _locker, _flags, _object, _lockmode, _lock)
         ^
In file included from dbconfig.c:14:0:
./rpmdb.h: In function 'rpmlkPut':
./rpmdb.h:911:9: error: 'DB_ENV' has no member named 'lock_put'
  ? dbenv->lock_put(dbenv, _lock)
         ^
./rpmdb.h: In function 'rpmlgcOpen':
./rpmdb.h:922:5: error: unknown type name 'DB_LOGC'
     DB_LOGC * _logc = NULL;
     ^
./rpmdb.h:925:9: error: 'DB_ENV' has no member named 'log_cursor'
  ? dbenv->log_cursor(dbenv, &_logc, _flags) : ENOTSUP;
         ^
./rpmdb.h: At top level:
./rpmdb.h:933:28: error: unknown type name 'DB_LSN'
 int rpmlgcGet(rpmdb rpmdb, DB_LSN * _lsn, DBT * data, uint32_t flags)
                            ^
./rpmdb.h: In function 'rpmlgcClose':
./rpmdb.h:945:5: error: unknown type name 'DB_LOGC'
     DB_LOGC * _logc = rpmdb->db_logc;
     ^
./rpmdb.h:947:28: error: request for member 'close' in something not a structure or union
     int rc = (_logc ? _logc->close(_logc, _flags) : ENOTSUP);
                            ^
./rpmdb.h: At top level:
./rpmdb.h:955:1: error: unknown type name 'DB_LSN'
 int rpmlgcFile(rpmdb rpmdb, const DB_LSN * _lsn, char * name, size_t len)
 ^
./rpmdb.h: In function 'rpmlgcFile':
./rpmdb.h:958:19: error: 'DB_ENV' has no member named 'log_file'
     int rc = dbenv->log_file(dbenv, _lsn, name, len);
                   ^
./rpmdb.h: At top level:
./rpmdb.h:965:1: error: unknown type name 'DB_LSN'
 int rpmlgcFlush(rpmdb rpmdb, const DB_LSN * _lsn)
 ^
./rpmdb.h: In function 'rpmlgcFlush':
./rpmdb.h:968:19: error: 'DB_ENV' has no member named 'log_flush'
     int rc = dbenv->log_flush(dbenv, _lsn);
                   ^
./rpmdb.h: In function 'rpmlgcPrintf':
./rpmdb.h:979:19: error: 'DB_ENV' has no member named 'log_printf'
     int rc = dbenv->log_printf(dbenv, _txnid, fmt, _A1, _A2, _A3, _A4, _A5);
                   ^
./rpmdb.h: At top level:
./rpmdb.h:986:28: error: unknown type name 'DB_LSN'
 int rpmlgcPut(rpmdb rpmdb, DB_LSN * _lsn, const DBT * data, uint32_t flags)
                            ^
./rpmdb.h: In function 'rpmmpfSyncAll':
./rpmdb.h:999:5: error: unknown type name 'DB_LSN'
     DB_LSN * _lsn = NULL;
     ^
./rpmdb.h:1001:9: error: 'DB_ENV' has no member named 'memp_sync'
  ? dbenv->memp_sync(dbenv, _lsn) : ENOTSUP;
         ^
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../lib -I../rpmdb -I../rpmio -I../misc -I../beecrypt/include -I../beecrypt/include -I../beecrypt -I../beecrypt -DRPM_OS_LINUX=031500 -fopenmp -march=bdver2 -O2 -pipe -D_GNU_SOURCE -D_REENTRANT -c libsqldb.c -o libsqldb.o >/dev/null 2>&1
./rpmdb.h: In function 'rpmmpfTrickle':
./rpmdb.h:1014:9: error: 'DB_ENV' has no member named 'memp_trickle'
  ? dbenv->memp_trickle(dbenv, _percent, &_nwrote) : ENOTSUP;
         ^
./rpmdb.h: In function 'rpmmpfClose':
./rpmdb.h:1023:5: error: unknown type name 'DB_MPOOLFILE'
     DB_MPOOLFILE * mpf = rpmdb->db_mpf;
     ^
./rpmdb.h:1025:24: error: request for member 'close' in something not a structure or union
     int rc = (mpf ? mpf->close(mpf, _flags) : ENOTSUP);
                        ^
./rpmdb.h: In function 'rpmmpfGet':
./rpmdb.h:1035:5: error: unknown type name 'DB_MPOOLFILE'
     DB_MPOOLFILE * mpf = rpmdb->db_mpf;
     ^
./rpmdb.h:1037:17: error: request for member 'get' in something not a structure or union
     int rc = mpf->get(mpf, _pgnop, _txnid, _flags, _pagep);
                 ^
./rpmdb.h: In function 'rpmmpfOpen':
./rpmdb.h:1047:5: error: unknown type name 'DB_MPOOLFILE'
     DB_MPOOLFILE * mpf = NULL;
     ^
./rpmdb.h:1052:9: error: 'DB_ENV' has no member named 'memp_fcreate'
  ? dbenv->memp_fcreate(dbenv, &mpf, _fcreate_flags) : ENOTSUP;                                                                                                                                                                                                                                                                                                                   [268/1930]
         ^
./rpmdb.h:1057:13: error: request for member 'open' in something not a structure or union
     rc = mpf->open(mpf, fn, flags, _perms, _pagesize);
             ^
./rpmdb.h: In function 'rpmmpfPut':
./rpmdb.h:1069:5: error: unknown type name 'DB_MPOOLFILE'
     DB_MPOOLFILE * mpf = rpmdb->db_mpf;
     ^
./rpmdb.h:1070:26: error: 'DB_PRIORITY_DEFAULT' undeclared (first use in this function)
     uint32_t _priority = DB_PRIORITY_DEFAULT;
                          ^
./rpmdb.h:1070:26: note: each undeclared identifier is reported only once for each function it appears in
./rpmdb.h:1071:17: error: request for member 'put' in something not a structure or union
     int rc = mpf->put(mpf, _page, _priority, flags);
                 ^
./rpmdb.h: In function 'rpmmpfSync':
./rpmdb.h:1080:5: error: unknown type name 'DB_MPOOLFILE'
     DB_MPOOLFILE * mpf = rpmdb->db_mpf;
     ^
./rpmdb.h:1081:24: error: request for member 'sync' in something not a structure or union
     int rc = (mpf ? mpf->sync(mpf) : ENOTSUP);
                        ^
In file included from rpmlio.c:13:0:
./rpmdb.h:433:5: error: unknown type name 'DB_SEQUENCE'
     DB_SEQUENCE * dbi_seq; /*!< Berkeley DB_SEQUENCE handle */
     ^
./rpmdb.h:490:5: error: unknown type name 'DB_LOGC'
     DB_LOGC * db_logc; /*!< Berkeley DB_LOGC handle */
     ^
./rpmdb.h:491:5: error: unknown type name 'DB_MPOOLFILE'
     DB_MPOOLFILE *db_mpf; /*!< Berkeley DB_MPOOLFILE handle */
     ^
./rpmdb.h: In function 'rpmlkId':
./rpmdb.h:875:9: error: 'DB_ENV' has no member named 'lock_id'
  ? dbenv->lock_id(dbenv, _idp) : ENOTSUP;
         ^
./rpmdb.h: In function 'rpmlkIdFree':
./rpmdb.h:886:9: error: 'DB_ENV' has no member named 'lock_id_free'
  ? dbenv->lock_id_free(dbenv, _id) : ENOTSUP;
         ^
./rpmdb.h: In function 'rpmlkGet':
./rpmdb.h:899:9: error: 'DB_ENV' has no member named 'lock_get'
  ? dbenv->lock_get(dbenv, _locker, _flags, _object, _lockmode, _lock)
         ^
In file included from rpmlio.c:13:0:
./rpmdb.h: In function 'rpmlkPut':
./rpmdb.h:911:9: error: 'DB_ENV' has no member named 'lock_put'
  ? dbenv->lock_put(dbenv, _lock)
         ^
./rpmdb.h: In function 'rpmlgcOpen':
./rpmdb.h:922:5: error: unknown type name 'DB_LOGC'
     DB_LOGC * _logc = NULL;
     ^
./rpmdb.h:925:9: error: 'DB_ENV' has no member named 'log_cursor'
  ? dbenv->log_cursor(dbenv, &_logc, _flags) : ENOTSUP;
         ^
./rpmdb.h: At top level:
./rpmdb.h:933:28: error: unknown type name 'DB_LSN'
 int rpmlgcGet(rpmdb rpmdb, DB_LSN * _lsn, DBT * data, uint32_t flags)
                            ^
./rpmdb.h: In function 'rpmlgcClose':
./rpmdb.h:945:5: error: unknown type name 'DB_LOGC'
     DB_LOGC * _logc = rpmdb->db_logc;
     ^
./rpmdb.h:947:28: error: request for member 'close' in something not a structure or union
     int rc = (_logc ? _logc->close(_logc, _flags) : ENOTSUP);
                            ^
./rpmdb.h: At top level:
./rpmdb.h:955:1: error: unknown type name 'DB_LSN'
 int rpmlgcFile(rpmdb rpmdb, const DB_LSN * _lsn, char * name, size_t len)
 ^
./rpmdb.h: In function 'rpmlgcFile':
./rpmdb.h:958:19: error: 'DB_ENV' has no member named 'log_file'
     int rc = dbenv->log_file(dbenv, _lsn, name, len);
                   ^
./rpmdb.h: At top level:
./rpmdb.h:965:1: error: unknown type name 'DB_LSN'
 int rpmlgcFlush(rpmdb rpmdb, const DB_LSN * _lsn)
 ^
./rpmdb.h: In function 'rpmlgcFlush':
./rpmdb.h:968:19: error: 'DB_ENV' has no member named 'log_flush'
     int rc = dbenv->log_flush(dbenv, _lsn);
                   ^
./rpmdb.h: In function 'rpmlgcPrintf':
./rpmdb.h:979:19: error: 'DB_ENV' has no member named 'log_printf'
     int rc = dbenv->log_printf(dbenv, _txnid, fmt, _A1, _A2, _A3, _A4, _A5);
                   ^
./rpmdb.h: At top level:
./rpmdb.h:986:28: error: unknown type name 'DB_LSN'
 int rpmlgcPut(rpmdb rpmdb, DB_LSN * _lsn, const DBT * data, uint32_t flags)
                            ^
./rpmdb.h: In function 'rpmmpfSyncAll':
./rpmdb.h:999:5: error: unknown type name 'DB_LSN'
     DB_LSN * _lsn = NULL;
     ^
./rpmdb.h:1001:9: error: 'DB_ENV' has no member named 'memp_sync'
  ? dbenv->memp_sync(dbenv, _lsn) : ENOTSUP;
         ^
./rpmdb.h: In function 'rpmmpfTrickle':
./rpmdb.h:1014:9: error: 'DB_ENV' has no member named 'memp_trickle'
  ? dbenv->memp_trickle(dbenv, _percent, &_nwrote) : ENOTSUP;
         ^
./rpmdb.h: In function 'rpmmpfClose':
./rpmdb.h:1023:5: error: unknown type name 'DB_MPOOLFILE'
     DB_MPOOLFILE * mpf = rpmdb->db_mpf;
     ^
./rpmdb.h:1025:24: error: request for member 'close' in something not a structure or union
     int rc = (mpf ? mpf->close(mpf, _flags) : ENOTSUP);
                        ^
./rpmdb.h: In function 'rpmmpfGet':
./rpmdb.h:1035:5: error: unknown type name 'DB_MPOOLFILE'
     DB_MPOOLFILE * mpf = rpmdb->db_mpf;
     ^
./rpmdb.h:1037:17: error: request for member 'get' in something not a structure or union
     int rc = mpf->get(mpf, _pgnop, _txnid, _flags, _pagep);
                 ^
./rpmdb.h: In function 'rpmmpfOpen':
Makefile:861: recipe for target 'librpmdb_la-dbconfig.lo' failed
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../lib -I../rpmdb -I../rpmio -I../misc -I../beecrypt/include -I../beecrypt/include -I../beecrypt -I../beecrypt -I../db -I../db -I../db/src -I../db/src -I../scripts -I../scripts -DRPM_OS_LINUX=031500 -DRPM_OS_LINUX=031500 -fopenmp -march=bdver2 -O2 -pipe -D_GNU_SOURCE -D_REENTRANT 
-c poptDB.c -o librpmdb_la-poptDB.o >/dev/null 2>&1
make[4]: *** [librpmdb_la-dbconfig.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
./rpmdb.h:1047:5: error: unknown type name 'DB_MPOOLFILE'
     DB_MPOOLFILE * mpf = NULL;
     ^
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../lib -I../rpmdb -I../rpmio -I../misc -I../beecrypt/include -I../beecrypt/include -I../beecrypt -I../beecrypt -I../db -I../db -I../db/src -I../db/src -I../scripts -I../scripts -DRPM_OS_LINUX=031500 -DRPM_OS_LINUX=031500 -fopenmp -march=bdver2 -O2 -pipe -D_GNU_SOURCE -D_REENTRANT 
-c header_internal.c -o librpmdb_la-header_internal.o >/dev/null 2>&1
./rpmdb.h:1052:9: error: 'DB_ENV' has no member named 'memp_fcreate'
  ? dbenv->memp_fcreate(dbenv, &mpf, _fcreate_flags) : ENOTSUP;
         ^
./rpmdb.h:1057:13: error: request for member 'open' in something not a structure or union
     rc = mpf->open(mpf, fn, flags, _perms, _pagesize);
             ^
./rpmdb.h: In function 'rpmmpfPut':
./rpmdb.h:1069:5: error: unknown type name 'DB_MPOOLFILE'
     DB_MPOOLFILE * mpf = rpmdb->db_mpf;
     ^
./rpmdb.h:1070:26: error: 'DB_PRIORITY_DEFAULT' undeclared (first use in this function)
     uint32_t _priority = DB_PRIORITY_DEFAULT;
                          ^
./rpmdb.h:1070:26: note: each undeclared identifier is reported only once for each function it appears in
./rpmdb.h:1071:17: error: request for member 'put' in something not a structure or union
     int rc = mpf->put(mpf, _page, _priority, flags);
                 ^
./rpmdb.h: In function 'rpmmpfSync':
./rpmdb.h:1080:5: error: unknown type name 'DB_MPOOLFILE'
     DB_MPOOLFILE * mpf = rpmdb->db_mpf;
     ^
./rpmdb.h:1081:24: error: request for member 'sync' in something not a structure or union
     int rc = (mpf ? mpf->sync(mpf) : ENOTSUP);
                        ^
Makefile:959: recipe for target 'librpmdb_la-rpmlio.lo' failed
make[4]: *** [librpmdb_la-rpmlio.lo] Error 1
In file included from rpmdb.c:28:0:
rpmdb.h:433:5: error: unknown type name 'DB_SEQUENCE'
     DB_SEQUENCE * dbi_seq; /*!< Berkeley DB_SEQUENCE handle */
     ^
rpmdb.h:490:5: error: unknown type name 'DB_LOGC'
     DB_LOGC * db_logc; /*!< Berkeley DB_LOGC handle */
     ^
rpmdb.h:491:5: error: unknown type name 'DB_MPOOLFILE'
     DB_MPOOLFILE *db_mpf; /*!< Berkeley DB_MPOOLFILE handle */
     ^
rpmdb.h: In function 'rpmlkId':
rpmdb.h:875:9: error: 'DB_ENV' has no member named 'lock_id'
  ? dbenv->lock_id(dbenv, _idp) : ENOTSUP;
         ^
rpmdb.h: In function 'rpmlkIdFree':
rpmdb.h:886:9: error: 'DB_ENV' has no member named 'lock_id_free'
  ? dbenv->lock_id_free(dbenv, _id) : ENOTSUP;
         ^
rpmdb.h: In function 'rpmlkGet':
rpmdb.h:899:9: error: 'DB_ENV' has no member named 'lock_get'
  ? dbenv->lock_get(dbenv, _locker, _flags, _object, _lockmode, _lock)
         ^
In file included from rpmdb.c:28:0:
rpmdb.h: In function 'rpmlkPut':
rpmdb.h:911:9: error: 'DB_ENV' has no member named 'lock_put'
  ? dbenv->lock_put(dbenv, _lock)
         ^
rpmdb.h: In function 'rpmlgcOpen':
rpmdb.h:922:5: error: unknown type name 'DB_LOGC'
     DB_LOGC * _logc = NULL;
     ^
rpmdb.h:925:9: error: 'DB_ENV' has no member named 'log_cursor'
  ? dbenv->log_cursor(dbenv, &_logc, _flags) : ENOTSUP;
         ^
rpmdb.h: At top level:
rpmdb.h:933:28: error: unknown type name 'DB_LSN'
 int rpmlgcGet(rpmdb rpmdb, DB_LSN * _lsn, DBT * data, uint32_t flags)
                            ^
rpmdb.h: In function 'rpmlgcClose':
rpmdb.h:945:5: error: unknown type name 'DB_LOGC'
     DB_LOGC * _logc = rpmdb->db_logc;
     ^
rpmdb.h:947:28: error: request for member 'close' in something not a structure or union
     int rc = (_logc ? _logc->close(_logc, _flags) : ENOTSUP);
                            ^
rpmdb.h: At top level:
rpmdb.h:955:1: error: unknown type name 'DB_LSN'
 int rpmlgcFile(rpmdb rpmdb, const DB_LSN * _lsn, char * name, size_t len)
 ^
rpmdb.h: In function 'rpmlgcFile':
rpmdb.h:958:19: error: 'DB_ENV' has no member named 'log_file'
     int rc = dbenv->log_file(dbenv, _lsn, name, len);
                   ^
rpmdb.h: At top level:
rpmdb.h:965:1: error: unknown type name 'DB_LSN'
 int rpmlgcFlush(rpmdb rpmdb, const DB_LSN * _lsn)
 ^
rpmdb.h: In function 'rpmlgcFlush':
rpmdb.h:968:19: error: 'DB_ENV' has no member named 'log_flush'
     int rc = dbenv->log_flush(dbenv, _lsn);
                   ^
rpmdb.h: In function 'rpmlgcPrintf':
rpmdb.h:979:19: error: 'DB_ENV' has no member named 'log_printf'
     int rc = dbenv->log_printf(dbenv, _txnid, fmt, _A1, _A2, _A3, _A4, _A5);
                   ^
rpmdb.h: At top level:
rpmdb.h:986:28: error: unknown type name 'DB_LSN'
 int rpmlgcPut(rpmdb rpmdb, DB_LSN * _lsn, const DBT * data, uint32_t flags)
                            ^
rpmdb.h: In function 'rpmmpfSyncAll':
rpmdb.h:999:5: error: unknown type name 'DB_LSN'
     DB_LSN * _lsn = NULL;
     ^
rpmdb.h:1001:9: error: 'DB_ENV' has no member named 'memp_sync'
  ? dbenv->memp_sync(dbenv, _lsn) : ENOTSUP;
         ^
rpmdb.h: In function 'rpmmpfTrickle':
rpmdb.h:1014:9: error: 'DB_ENV' has no member named 'memp_trickle'
  ? dbenv->memp_trickle(dbenv, _percent, &_nwrote) : ENOTSUP;
         ^
rpmdb.h: In function 'rpmmpfClose':
rpmdb.h:1023:5: error: unknown type name 'DB_MPOOLFILE'
     DB_MPOOLFILE * mpf = rpmdb->db_mpf;
     ^
rpmdb.h:1025:24: error: request for member 'close' in something not a structure or union
     int rc = (mpf ? mpf->close(mpf, _flags) : ENOTSUP);
                        ^
rpmdb.h: In function 'rpmmpfGet':
rpmdb.h:1035:5: error: unknown type name 'DB_MPOOLFILE'
     DB_MPOOLFILE * mpf = rpmdb->db_mpf;
     ^
rpmdb.h:1037:17: error: request for member 'get' in something not a structure or union
     int rc = mpf->get(mpf, _pgnop, _txnid, _flags, _pagep);
                 ^
rpmdb.h: In function 'rpmmpfOpen':
rpmdb.h:1047:5: error: unknown type name 'DB_MPOOLFILE'
     DB_MPOOLFILE * mpf = NULL;
     ^
rpmdb.h:1052:9: error: 'DB_ENV' has no member named 'memp_fcreate'
  ? dbenv->memp_fcreate(dbenv, &mpf, _fcreate_flags) : ENOTSUP;
         ^
rpmdb.h:1057:13: error: request for member 'open' in something not a structure or union
     rc = mpf->open(mpf, fn, flags, _perms, _pagesize);
             ^
rpmdb.h: In function 'rpmmpfPut':
rpmdb.h:1069:5: error: unknown type name 'DB_MPOOLFILE'
     DB_MPOOLFILE * mpf = rpmdb->db_mpf;
     ^
rpmdb.h:1070:26: error: 'DB_PRIORITY_DEFAULT' undeclared (first use in this function)
     uint32_t _priority = DB_PRIORITY_DEFAULT;
                          ^
rpmdb.h:1070:26: note: each undeclared identifier is reported only once for each function it appears in
rpmdb.h:1071:17: error: request for member 'put' in something not a structure or union
     int rc = mpf->put(mpf, _page, _priority, flags);
                 ^
rpmdb.h: In function 'rpmmpfSync':
rpmdb.h:1080:5: error: unknown type name 'DB_MPOOLFILE'
     DB_MPOOLFILE * mpf = rpmdb->db_mpf;
     ^
rpmdb.h:1081:24: error: request for member 'sync' in something not a structure or union
     int rc = (mpf ? mpf->sync(mpf) : ENOTSUP);
                        ^
rpmdb.c: In function 'dbiMireKeys':
rpmdb.c:1234:4: error: 'DBT' has no member named 'doff'
   k.doff = 0;
    ^
rpmdb.c:1250:16: error: 'DB_DBT_PARTIAL' undeclared (first use in this function)
      k.flags = DB_DBT_PARTIAL;
                ^
rpmdb.c:1251:7: error: 'DBT' has no member named 'dlen'
      k.dlen = nb;
       ^
rpmdb.c:1254:15: error: 'DB_SET_RANGE' undeclared (first use in this function)
      _flags = DB_SET_RANGE;
               ^
rpmdb.c:1276:33: error: 'DB_NEXT_DUP' undeclared (first use in this function)
  if (_flags == DB_SET) _flags = DB_NEXT_DUP;
                                 ^
rpmdb.c:1286:43: error: 'DB_CURRENT' undeclared (first use in this function)
   xx = dbiPget(dbi, dbcursor, &k, &p, &v, DB_CURRENT);
                                           ^
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../lib -I../rpmdb -I../rpmio -I../misc -I../beecrypt/include -I../beecrypt/include -I../beecrypt -I../beecrypt -I../db -I../db -I../db/src -I../db/src -I../scripts -I../scripts -DRPM_OS_LINUX=031500 -DRPM_OS_LINUX=031500 -fopenmp -march=bdver2 -O2 -pipe -D_GNU_SOURCE -D_REENTRANT 
-c rpmdpkg.c -o librpmdb_la-rpmdpkg.o >/dev/null 2>&1
rpmdb.c: In function 'rpmmiGet':
rpmdb.c:2075:15: error: 'DB_DBT_USERMEM' undeclared (first use in this function)
  vp->flags |= DB_DBT_USERMEM;
               ^
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../lib -I../rpmdb -I../rpmio -I../misc -I../beecrypt/include -I../beecrypt/include -I../beecrypt -I../beecrypt -I../db -I../db -I../db/src -I../db/src -I../scripts -I../scripts -DRPM_OS_LINUX=031500 -DRPM_OS_LINUX=031500 -fopenmp -march=bdver2 -O2 -pipe -D_GNU_SOURCE -D_REENTRANT 
-c legacy.c -o librpmdb_la-legacy.o >/dev/null 2>&1
rpmdb.c:2077:12: error: 'DB_BUFFER_SMALL' undeclared (first use in this function)
  if (rc == DB_BUFFER_SMALL) {
            ^
rpmdb.c:2086:8: error: 'DBT' has no member named 'ulen'
      vp->ulen = (u_int32_t)uhlen;
        ^
rpmdb.c: In function 'rpmmiNext':
rpmdb.c:2157:26: error: 'DB_NEXT_DUP' undeclared (first use in this function)
  _flags = (mi->mi_setx ? DB_NEXT_DUP : DB_SET);
                          ^
Makefile:938: recipe for target 'librpmdb_la-rpmdb.lo' failed
make[4]: *** [librpmdb_la-rpmdb.lo] Error 1
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../lib -I../rpmdb -I../rpmio -I../misc -I../beecrypt/include -I../beecrypt/include -I../beecrypt -I../beecrypt -I../db -I../db -I../db/src -I../db/src -I../scripts -I../scripts -DRPM_OS_LINUX=031500 -DRPM_OS_LINUX=031500 -fopenmp -march=bdver2 -O2 -pipe -D_GNU_SOURCE -D_REENTRANT 
-c hdrNVR.c -o librpmdb_la-hdrNVR.o >/dev/null 2>&1
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../lib -I../rpmdb -I../rpmio -I../misc -I../beecrypt/include -I../beecrypt/include -I../beecrypt -I../beecrypt -I../db -I../db -I../db/src -I../db/src -I../scripts -I../scripts -DRPM_OS_LINUX=031500 -DRPM_OS_LINUX=031500 -fopenmp -march=bdver2 -O2 -pipe -D_GNU_SOURCE -D_REENTRANT 
-c fprint.c -o librpmdb_la-fprint.o >/dev/null 2>&1
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../lib -I../rpmdb -I../rpmio -I../misc -I../beecrypt/include -I../beecrypt/include -I../beecrypt -I../beecrypt -I../db -I../db -I../db/src -I../db/src -I../scripts -I../scripts -DRPM_OS_LINUX=031500 -DRPM_OS_LINUX=031500 -fopenmp -march=bdver2 -O2 -pipe -D_GNU_SOURCE -D_REENTRANT 
-c package.c -o librpmdb_la-package.o >/dev/null 2>&1
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../lib -I../rpmdb -I../rpmio -I../misc -I../beecrypt/include -I../beecrypt/include -I../beecrypt -I../beecrypt -I../db -I../db -I../db/src -I../db/src -I../scripts -I../scripts -DRPM_OS_LINUX=031500 -DRPM_OS_LINUX=031500 -fopenmp -march=bdver2 -O2 -pipe -D_GNU_SOURCE -D_REENTRANT 
-c merge.c -o librpmdb_la-merge.o >/dev/null 2>&1
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../lib -I../rpmdb -I../rpmio -I../misc -I../beecrypt/include -I../beecrypt/include -I../beecrypt -I../beecrypt -I../db -I../db -I../db/src -I../db/src -I../scripts -I../scripts -DRPM_OS_LINUX=031500 -DRPM_OS_LINUX=031500 -fopenmp -march=bdver2 -O2 -pipe -D_GNU_SOURCE -D_REENTRANT 
-c rpmevr.c -o librpmdb_la-rpmevr.o >/dev/null 2>&1
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../lib -I../rpmdb -I../rpmio -I../misc -I../beecrypt/include -I../beecrypt/include -I../beecrypt -I../beecrypt -I../db -I../db -I../db/src -I../db/src -I../scripts -I../scripts -DRPM_OS_LINUX=031500 -DRPM_OS_LINUX=031500 -fopenmp -march=bdver2 -O2 -pipe -D_GNU_SOURCE -D_REENTRANT 
-c pkgio.c -o librpmdb_la-pkgio.o >/dev/null 2>&1
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../lib -I../rpmdb -I../rpmio -I../misc -I../beecrypt/include -I../beecrypt/include -I../beecrypt -I../beecrypt -I../db -I../db -I../db/src -I../db/src -I../scripts -I../scripts -DRPM_OS_LINUX=031500 -DRPM_OS_LINUX=031500 -fopenmp -march=bdver2 -O2 -pipe -D_GNU_SOURCE -D_REENTRANT 
-c header.c -o librpmdb_la-header.o >/dev/null 2>&1
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build -I../lib -I../lib -I../rpmdb -I../rpmio -I../misc -I../beecrypt/include -I../beecrypt/include -I../beecrypt -I../beecrypt -I../db -I../db -I../db/src -I../db/src -I../scripts -I../scripts -DRPM_OS_LINUX=031500 -DRPM_OS_LINUX=031500 -fopenmp -march=bdver2 -O2 -pipe -D_GNU_SOURCE -D_REENTRANT 
-c hdrfmt.c -o librpmdb_la-hdrfmt.o >/dev/null 2>&1
make[4]: Leaving directory '/var/tmp/portage/app-arch/rpm-5.4.0/work/rpm-5.4.0/rpmdb'
Makefile:1057: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/app-arch/rpm-5.4.0/work/rpm-5.4.0/rpmdb'
Makefile:694: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/var/tmp/portage/app-arch/rpm-5.4.0/work/rpm-5.4.0/rpmdb'
Makefile:971: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-arch/rpm-5.4.0/work/rpm-5.4.0'
Makefile:699: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: app-arch/rpm-5.4.0 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-arch/rpm-5.4.0'`,
 * the complete build log and the output of `emerge -pqv '=app-arch/rpm-5.4.0'`.
 * This ebuild is from an overlay named 'mva': '/var/lib/layman/mva/'
 * The complete build log is located at '/var/tmp/portage/app-arch/rpm-5.4.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-arch/rpm-5.4.0/temp/environment'.
 * Working directory: '/var/tmp/portage/app-arch/rpm-5.4.0/work/rpm-5.4.0'
 * S: '/var/tmp/portage/app-arch/rpm-5.4.0/work/rpm-5.4.0'

>>> Failed to emerge app-arch/rpm-5.4.0, Log file:

>>>  '/var/tmp/portage/app-arch/rpm-5.4.0/temp/build.log'

I've recently upgraded my hardware, so I changed some CFLAGS based on the SAFE_CFLAGS's Gentoo wiki entry. At first, I thought I was having hardware issues, but I've been perfectly able to install inkscape today, so I tried and played a bit with the settings.

 

This is what I've got now:

CFLAGS="-march=bdver2 -O2 -pipe"
# -mprefer-avx128 -mvzeroupper -O2 -pipe" 
CXXFLAGS="${CFLAGS}"

This is my CPU:

[...]
processor       : 7
vendor_id       : AuthenticAMD
cpu family      : 21
model           : 2
model name      : AMD FX(tm)-8350 Eight-Core Processor           
stepping        : 0
microcode       : 0x6000822
cpu MHz         : 4000.000
cache size      : 2048 KB
physical id     : 0
siblings        : 8
core id         : 7
cpu cores       : 4
apicid          : 23
initial apicid  : 7
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb arat cpb hw_pstate npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold bmi1
bogomips        : 8037.38
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate cpb eff_freq_ro 

Some more info:

Portage 2.3.6-r8 (funtoo/1.0/linux-gnu/arch/x86-64bit, gcc-4.8.2, glibc-2.18-r1, 3.15.0-pf4 x86_64)
=================================================================
System uname: Linux-3.15.0-pf4-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.2.0
KiB Mem:    12249544 total,   7746968 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Unknown
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45-r1
dev-lang/python:          2.7.8-r1000, 3.3.5-r1000
dev-util/cmake:           2.8.12.2-r1
sys-apps/baselayout:      2.2.0-r6
sys-apps/openrc:          0.12.3-r3
sys-apps/sandbox:         2.6-r2
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.2-r3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.18-r1
Repositories: gentoo owncloud-client gamerlay mva
Installed sets: @kde-light-custom
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=bdver2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=bdver2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="en_GB en"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/owncloud-client /var/lib/layman/gamerlay /var/lib/layman/mva"
SYNC="git://github.com/funtoo/ports-2012.git"
SYNC_USER="root"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 amr ao bash-completion berkdb bluetooth bluray bzip2 cairo calendar cdda cddb cdparanoia cdr cjk colordiff cracklib crypt css cups cxx dbus dhcpcd dri dts dvd dvdr dvdread encode exif flac fontconfig ftp fuse gamin gd gdbm gif gimp git glamor glitz gnutls gphoto2 gpm gstreamer gtk iconv icq icu imagemagick imap imlib jabber jingle joystick jpeg jpeg2k kde lame libav libgda libnotify lm_sensors loop-aes mad matroska mime mmx modules mp3 mpeg mplayer msn mtp mudflap multilib musepack musicbrainz ncurses networkmanager nls nptl nvidia offensive ogg openal opengl openmp oscar pam pcre pdf plasma png policykit posix python qt qt3support qt4 quicktime rdesktop readline resolvconf rss samba scanner sdl semantic-desktop sftp smp sqlite sqlite3 sse sse2 ssl startup-notification subversion svg symlink syslog sysvipc szip taglib theora threads tiff truetype udev udisks unicode upower usb vaapi vcd vdpau video vim-syntax vnc vorbis wavpack wifi win32codecs x264 xattr xcb xcomposite xine xinerama xml xosd xpm xprint xscreensaver xv xvid xvmc yahoo zlib" ABI_X86="64" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias authn_core authz_core socache_shmcb unixd" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_ABIS="2.7 3.3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC_UMASK
 

Thanks in advance.

 

UPDATE: I masked 5.4.0 and it keeps failing with 5.3.11, but the error is different:

>>> Emerging (1 of 1) app-arch/rpm-5.3.11 from mva
 * rpm-5.3.11-0.20110602.src.rpm SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                                 [ ok ]
 * If you are upgrading from an rpm version of 5.0.0 or lower, 
 * your database will not be updated. Please back up your rpm 
 * database, and run: 
 *     rpm --rebuilddb 
>>> Unpacking source...
>>> Unpacking rpm-5.3.11-0.20110602.src.rpm to /var/tmp/portage/app-arch/rpm-5.3.11/work
>>> Unpacking ./cpu-os-macros.tar.gz to /var/tmp/portage/app-arch/rpm-5.3.11/work
>>> Unpacking ./rpm-5.3.11.tar.gz to /var/tmp/portage/app-arch/rpm-5.3.11/work
>>> Source unpacked in /var/tmp/portage/app-arch/rpm-5.3.11/work
>>> Preparing source in /var/tmp/portage/app-arch/rpm-5.3.11/work/rpm-5.3.11 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-arch/rpm-5.3.11/work/rpm-5.3.11 ...
/var/tmp/portage/app-arch/rpm-5.3.11/temp/environment: line 5418: --without-dmalloc: command not found
 * ERROR: app-arch/rpm-5.3.11 failed (configure phase):
 *   python_pkg_setup() not called
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_configure
 *   environment, line 5419:  Called python_get_libdir
 *   environment, line 4184:  Called _python_check_python_pkg_setup_execution
 *   environment, line  697:  Called die
 * The specific snippet of code:
 *           die "python_pkg_setup() not called";

Thank you!

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

For the record, you should be talking to the people maintaining the mva overlay about this since both Funtoo and Gentoo use RPM from http://www.rpm.org/ whereas you are dealing with RPM vs http://rpm5.org/ so don't file a bug about this. To elaborate, Funtoo and Gentoo puts the RPM from rpm.org at app-arch/rpm and the one from rpm5.org at app-arch/rpm5, the mva overlay squashes it all together.

That said, if this worked before and currently doesn't then it is most likely due to the recent sys-libs/db update. Try downgrading that package to 4.8 and see if rpm will build against it. Otherwise it would probably be easier to just mask >=app-arch/rpm-5*, unless you want it for some reason.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...