Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 574824

Summary: app-shells/zsh-5.2[gdbm,static] fails to build - db_gdbm.c:351:3: error: #error no gdbm due to missing dependency on sys-libs/gdbm[static-libs]
Product: Gentoo Linux Reporter: Lukas Oliva <plhu>
Component: Current packagesAssignee: Lars Wendler (Polynomial-C) <polynomial-c>
Status: CONFIRMED ---    
Severity: normal CC: np-hardass, selurvedu
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
Output of emerge --info
Use flags of zsh

Description Lukas Oliva 2016-02-15 22:05:45 UTC
While upgrading to current stable version of zsh, it failed on gdbm-related messages:

db_gdbm.c:351:3: error: #error no gdbm
 # error no gdbm
   ^
db_gdbm.c:355:5: error: ‘bintab’ undeclared here (not in a function)
     bintab, sizeof(bintab)/sizeof(*bintab),
     ^
In file included from db_gdbm.c:32:0:
db_gdbm.pro:3:12: warning: ‘bin_ztie’ declared ‘static’ but never defined [-Wunused-function]
 static int bin_ztie _((char*nam,char**args,Options ops,UNUSED(int func)));
            ^
db_gdbm.pro:4:12: warning: ‘bin_zuntie’ declared ‘static’ but never defined [-Wunused-function]
 static int bin_zuntie _((char*nam,char**args,Options ops,UNUSED(int func)));
            ^
db_gdbm.pro:5:13: warning: ‘gdbmgetfn’ declared ‘static’ but never defined [-Wunused-function]
 static char*gdbmgetfn _((Param pm));
             ^
db_gdbm.pro:6:13: warning: ‘gdbmsetfn’ declared ‘static’ but never defined [-Wunused-function]
 static void gdbmsetfn _((Param pm,char*val));
             ^
db_gdbm.pro:7:13: warning: ‘gdbmunsetfn’ declared ‘static’ but never defined [-Wunused-function]
 static void gdbmunsetfn _((Param pm,UNUSED(int um)));
             ^
db_gdbm.pro:8:17: warning: ‘getgdbmnode’ declared ‘static’ but never defined [-Wunused-function]
 static HashNode getgdbmnode _((HashTable ht,const char*name));
                 ^
db_gdbm.pro:9:13: warning: ‘scangdbmkeys’ declared ‘static’ but never defined [-Wunused-function]
 static void scangdbmkeys _((HashTable ht,ScanFunc func,int flags));
             ^
db_gdbm.pro:10:13: warning: ‘gdbmhashsetfn’ declared ‘static’ but never defined [-Wunused-function]
 static void gdbmhashsetfn _((Param pm,HashTable ht));
             ^
db_gdbm.pro:11:13: warning: ‘gdbmuntie’ declared ‘static’ but never defined [-Wunused-function]
 static void gdbmuntie _((Param pm));
             ^
db_gdbm.pro:12:13: warning: ‘gdbmhashunsetfn’ declared ‘static’ but never defined [-Wunused-function]
 static void gdbmhashunsetfn _((Param pm,UNUSED(int exp)));
             ^
Makefile:232: recipe for target 'db_gdbm.o' failed
make[3]: *** [db_gdbm.o] Error 1
make[3]: Leaving directory '/var/tmp/portage/app-shells/zsh-5.2/work/zsh-5.2/Src/Modules'
Makemod:374: recipe for target 'modobjs' failed
make[2]: *** [modobjs] Error 1
make[2]: Leaving directory '/var/tmp/portage/app-shells/zsh-5.2/work/zsh-5.2/Src'
Makefile:452: recipe for target 'modobjs' failed
make[1]: *** [modobjs] Error 2
make[1]: Leaving directory '/var/tmp/portage/app-shells/zsh-5.2/work/zsh-5.2/Src'
Makefile:190: recipe for target 'all' failed
make: *** [all] Error 1

Without gdbm all goes well. Complete build.log and emerge --info output attached.
Comment 1 Lukas Oliva 2016-02-15 22:10:00 UTC
Created attachment 425596 [details]
build.log
Comment 2 Lukas Oliva 2016-02-15 22:10:51 UTC
Created attachment 425598 [details]
Output of emerge --info
Comment 3 Lukas Oliva 2016-02-15 22:11:26 UTC
Created attachment 425600 [details]
Use flags of zsh
Comment 4 selurvedu 2016-06-14 06:23:27 UTC
Same here. Tested on app-shells/zsh-5.2 (stable), sys-libs/gdbm-1.11 (stable). Compilation is successful with USE="-gdbm".
Comment 5 Adam Feldman gentoo-dev 2016-08-01 09:03:59 UTC
Emerging zsh[gdbm,static] fails for me with the same error messages as OP.  Compilation succeeded when gdbm was compiled with USE=static-libs, so should only require that minor update to the dependencies.