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.
Created attachment 425596 [details] build.log
Created attachment 425598 [details] Output of emerge --info
Created attachment 425600 [details] Use flags of zsh
Same here. Tested on app-shells/zsh-5.2 (stable), sys-libs/gdbm-1.11 (stable). Compilation is successful with USE="-gdbm".
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.
Was this fixed by the commit earlier today fixing the dep?
Yes, closed as obsolete due to very old version, though I can agree regular 'Closes' on commit would be better.
s/very old/no longer in tree/
commit 650432e43bd7020b9c53f27c5f3e4d725d4c2115 Author: Piotr Karbowski <slashbeast@gentoo.org> Date: Sat Nov 26 22:57:07 2022 +0100 app-shells/zsh: 5.9-r3 revbump, static build fixes. Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org>