bugDatabase-driven manual pager suite - Bugs: bug #54425, man-db 2.8.4 build fails with libdb

 
 

bug #54425: man-db 2.8.4 build fails with libdb

Submitter:  Tomasz Kłoczko <kloczek>
Submitted:  Thu 02 Aug 2018 01:46:47 AM UTC
   
 
Category:  None Severity:  4 - Important
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  cjwatson
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 06 Jan 2019 09:52:27 AM UTC, comment #2: 

Fixed in man-db 2.8.5.

Colin Watson <cjwatson>
Group administrator
Thu 02 Aug 2018 10:11:16 AM UTC, comment #1: 
Colin Watson <cjwatson>
Group administrator
Thu 02 Aug 2018 01:46:47 AM UTC, original submission:  

Source code configured with --with-db=db5

Autoconf correctly finds db-5:

checking db5/db_185.h usability... no
checking db5/db_185.h presence... no
checking for db5/db_185.h... no
checking db_185.h usability... yes
checking db_185.h presence... yes
checking for db_185.h... yes
checking for dbopen from <db_185.h> in -ldb5... no
checking for dbopen from <db_185.h> in -ldb-5... yes

However compilation fails with:

Making all in libdb
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/man-db-2.8.4/libdb'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I../include -I../gl/lib -I../gl/lib -I../lib  -W -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wshadow -Wformat-security -Wredundant-decls -Wno-missing-field-initializers -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -Wall -c -o libmandb_la-db_btree.lo `test -f 'db_btree.c' || echo './'`db_btree.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../gl/lib -I../gl/lib -I../lib -W -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wshadow -Wformat-security -Wredundant-decls -Wno-missing-field-initializers -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -Wall -c db_btree.c  -fPIC -DPIC -o .libs/libmandb_la-db_btree.o
db_btree.c: In function ‘btree_findkey’:
db_btree.c:195:40: error: ‘free’ undeclared (first use in this function)
   loop_check_hash = hashtable_create (&free);
                                        ^~~~
db_btree.c:195:40: note: ‘free’ is defined in header ‘<stdlib.h>’; did you forget to ‘#include <stdlib.h>’?
db_btree.c:55:1:
+#include <stdlib.h>
 
db_btree.c:195:40:
   loop_check_hash = hashtable_create (&free);
                                        ^~~~
db_btree.c:195:40: note: each undeclared identifier is reported only once for each function it appears in
make[2]: * [Makefile:1566: libmandb_la-db_btree.lo] Error 1
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/man-db-2.8.4/libdb'
make[1]: * [Makefile:1533: all-recursive] Error 1
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/man-db-2.8.4'
make: * [Makefile:1461: all] Error 2

Tomasz Kłoczko <kloczek>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by cjwatson (Posted a comment)
  • -email is unavailable- added by kloczek (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-06 cjwatson StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2018-08-02 cjwatson Severity3 - Normal 4 - Important
        StatusNone Ready For Test
        Assigned toNone cjwatson

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code