Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 625302 - sys-libs/gdbm-1.13[exporter]: /.../gdbmdefs.h:248:32: error: GDBM_NEED_RECOVERY undeclared (first use in this function)
Summary: sys-libs/gdbm-1.13[exporter]: /.../gdbmdefs.h:248:32: error: GDBM_NEED_RECOV...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-16 16:52 UTC by Toralf Förster
Modified: 2018-01-02 22:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,14.11 KB, text/plain)
2017-07-16 16:52 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,4.89 KB, text/plain)
2017-07-16 16:52 UTC, Toralf Förster
Details
environment (environment,116.01 KB, text/plain)
2017-07-16 16:52 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,21.95 KB, application/x-bzip)
2017-07-16 16:52 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,19.75 KB, application/x-bzip)
2017-07-16 16:53 UTC, Toralf Förster
Details
sys-libs:gdbm-1.13:20170716-161331.log (sys-libs:gdbm-1.13:20170716-161331.log,73.51 KB, text/plain)
2017-07-16 16:53 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,35.47 KB, application/x-bzip)
2017-07-16 16:53 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-07-16 16:52:44 UTC
   GDBM_ASSERT_CONSISTENCY (dbf, -1);
   ^~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/sys-libs/gdbm-1.13/work/gdbm-1.13/export/../src/gdbmdefs.h:248:32: error: ‘GDBM_NEED_RECOVERY’ undeclared (first use in this function)
           GDBM_SET_ERRNO (dbf, GDBM_NEED_RECOVERY, TRUE); \
                                ^
/var/tmp/portage/sys-libs/gdbm-1.13/work/gdbm-1.13/export/../src/gdbmdefs.h:317:66: note: in definition of macro ‘GDBM_SET_ERRNO2’

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-no-multilib_20170716-132601

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)
Comment 1 Toralf Förster gentoo-dev 2017-07-16 16:52:48 UTC
Created attachment 485092 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-07-16 16:52:51 UTC
Created attachment 485094 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-07-16 16:52:54 UTC
Created attachment 485096 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2017-07-16 16:52:57 UTC
Created attachment 485098 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-07-16 16:53:00 UTC
Created attachment 485100 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-07-16 16:53:03 UTC
Created attachment 485102 [details]
sys-libs:gdbm-1.13:20170716-161331.log
Comment 7 Toralf Förster gentoo-dev 2017-07-16 16:53:06 UTC
Created attachment 485104 [details]
temp.tbz2
Comment 8 Rolf Eike Beer archtester 2018-01-02 20:23:30 UTC
Similar thing on sparc:

/var/tmp/portage/sys-libs/gdbm-1.13-r1/work/gdbm-1.13/export/../src/gdbmexp.c: In function ‘gdbm_export_to_file’:
/var/tmp/portage/sys-libs/gdbm-1.13-r1/work/gdbm-1.13/export/../src/gdbmdefs.h:246:14: error: ‘struct <anonymous>’ has no member named ‘need_recovery’
       if (dbf->need_recovery)     \
              ^
/var/tmp/portage/sys-libs/gdbm-1.13-r1/work/gdbm-1.13/export/../src/gdbmexp.c:37:3: note: in expansion of macro ‘GDBM_ASSERT_CONSISTENCY’
   GDBM_ASSERT_CONSISTENCY (dbf, -1);
   ^~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/sys-libs/gdbm-1.13-r1/work/gdbm-1.13/export/../src/gdbmdefs.h:317:45: warning: implicit declaration of function ‘gdbm_set_errno’ [-Wimplicit-function-declaration]
 # define GDBM_SET_ERRNO2(dbf, ec, fatal, m) gdbm_set_errno (dbf, ec, fatal)


tatt build matrix:
USE='-berkdb exporter nls -readline -static-libs' failed for =sys-libs/gdbm-1.13-r1
USE='-berkdb -exporter -nls readline -static-libs' failed for =sys-libs/gdbm-1.13-r1
USE='berkdb -exporter -nls readline -static-libs'  succeeded for =sys-libs/gdbm-1.13-r1
USE='-berkdb exporter nls readline -static-libs' failed for =sys-libs/gdbm-1.13-r1
USE='berkdb exporter nls readline -static-libs' failed for =sys-libs/gdbm-1.13-r1
    log has been saved as /root/tatt/logs/sys-libs_gdbm-1.13-r1_use_Fte1B
USE='-berkdb exporter -nls -readline static-libs' failed for =sys-libs/gdbm-1.13-r1
USE='-berkdb -exporter nls -readline static-libs' failed for =sys-libs/gdbm-1.13-r1
USE='-berkdb exporter nls -readline static-libs' failed for =sys-libs/gdbm-1.13-r1
USE='berkdb exporter nls -readline static-libs' failed for =sys-libs/gdbm-1.13-r1
    log has been saved as /root/tatt/logs/sys-libs_gdbm-1.13-r1_use_Cg3R7
USE='berkdb exporter -nls readline static-libs' failed for =sys-libs/gdbm-1.13-r1
    log has been saved as /root/tatt/logs/sys-libs_gdbm-1.13-r1_use_SwLVM
USE='-berkdb exporter nls readline static-libs' failed for =sys-libs/gdbm-1.13-r1
USE='berkdb exporter nls readline static-libs' failed for =sys-libs/gdbm-1.13-r1
    log has been saved as /root/tatt/logs/sys-libs_gdbm-1.13-r1_use_5AIaP


Those marked as "log has been saved" are all errors of the given kind, the other build failures are in some dependencies.
Comment 9 Thomas Deutschmann (RETIRED) gentoo-dev 2018-01-02 21:50:07 UTC
Use flag "exporter" is causing the problem. Can't reproduce with gdbm-1.14.
Comment 10 Larry the Git Cow gentoo-dev 2018-01-02 22:11:17 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a21f609aeffc23219b35a5546e543111b709ff7

commit 2a21f609aeffc23219b35a5546e543111b709ff7
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2018-01-02 22:10:43 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2018-01-02 22:10:54 +0000

    sys-libs/gdbm: Fix building with USE flag "exporter"
    
    Ebuild changes:
    ===============
    - Patch: Add patch to fix build with --enable-gdbm-export. [Bug 625302] [Link 1]
    
    - Already introduced a sub slot to help upgrading to 1.14 later. [Bug 643188]
    
    Link 1: http://git.gnu.org.ua/cgit/gdbm.git/commit/?id=272713d611c55effeaf1d2b45fbb2c69d70e4c74
    Closes: https://bugs.gentoo.org/625302
    Bug: https://bugs.gentoo.org/643188
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 ...bm-1.13-fix-build-with-enable-gdbm-export.patch | 57 ++++++++++++++++++++++
 .../{gdbm-1.13-r1.ebuild => gdbm-1.13-r2.ebuild}   |  5 +-
 2 files changed, 60 insertions(+), 2 deletions(-)