Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 784488 - net-mail/dbmail-3.2.3-r3: configure: error: Could not find ZDB library.
Summary: net-mail/dbmail-3.2.3-r3: configure: error: Could not find ZDB library.
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Thomas Raschbacher
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-20 15:13 UTC by Joonas Niilola
Modified: 2023-10-09 08:54 UTC (History)
0 users

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


Attachments
build.log (dbmail-3.2.3-r3:20210420-151125.log,5.68 KB, text/plain)
2021-04-20 15:13 UTC, Joonas Niilola
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joonas Niilola gentoo-dev 2021-04-20 15:13:58 UTC
Created attachment 701226 [details]
build.log

build.log attached.
Comment 1 Thomas Raschbacher gentoo-dev 2021-05-01 12:30:48 UTC
strange. I shall look into this later
Comment 2 Bram Verweij 2021-12-30 08:35:58 UTC
I'm also hit by this issue.

Here is the relevant bit of config.log:

configure:5170: gcc -c -g -O2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread  -I/usr/include/gmime-2.6 -D_LARGEFILE64_SOURCE -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/lib64/libffi/include -I/usr/include/libmount -I/usr/include/blkid -pthread  -I/usr/local/include/zdb -I/usr/include/zdb  conftest.c >&5
In file included from conftest.c:31:
/usr/include/zdb/ResultSet.h:185:1: error: unknown type name 'bool'
  185 | bool ResultSet_next(T R);
      | ^~~~
/usr/include/zdb/ResultSet.h:29:1: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
   28 | #include <time.h>
   29 | 
/usr/include/zdb/ResultSet.h:203:1: error: unknown type name 'bool'
  203 | bool ResultSet_isnull(T R, int columnIndex);
      | ^~~~
/usr/include/zdb/ResultSet.h:203:1: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
In file included from conftest.c:33:
/usr/include/zdb/Connection.h:160:1: error: unknown type name 'bool'
  160 | bool Connection_ping(T C);
      | ^~~~
/usr/include/zdb/Connection.h:1:1: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
    1 | /*
/usr/include/zdb/Connection.h:316:1: error: unknown type name 'bool'
  316 | bool Connection_isSupported(const char *url);
      | ^~~~
/usr/include/zdb/Connection.h:316:1: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?


Indeed, when manually editing the configure script to include <stdbool.h>, configuration succeeds.
Comment 3 Stefan Hoefer 2023-10-09 08:54:20 UTC
The same problem popped up for me around a month ago with dbmail-3.2.3-r5. Strangely enough, the same package had been installed before on the same machine without any problems. I have a faint suspicion that it could have something to do with gcc and include files that are or are not included by default, depending on the version of gcc and/or portage configuration.

In case you need a "clean" workaround for this (thanks, Bram, for the hint with stdbool.h):

1. Create a file /etc/portage/env/dbmail-cflags with the following contents:

CFLAGS="${CFLAGS} -include stdbool.h"

2. Put the following line into /etc/portage/package.env:

net-mail/dbmail dbmail-cflags

It solves the problem.