[Pkg-db-devel] Bug#339337: db4.2: Please compile with -D__USE_GNU

Florian Weimer fw at deneb.enyo.de
Tue Nov 15 16:42:43 UTC 2005


* Joerg Wendland:

> benefit from that. Using DB_ENV->set_flags(DB_DIRECT_DB) for example
> yields the following error:
>
>   direct I/O is not supported by this platform
>
> But it definitely is. If you compile the package with -D__USE_GNU,
> O_DIRECT will be defined in {asm,bits}/fcntl.h and db4.2's
> __os_have_direct() of os/os_open.c will return true so that the call to
> set_flags as shown above will succeed.

I tried this, but it didn't work in the past because of the alignment
constraints the kernel enforced on O_DIRECT read/write operations.




More information about the Pkg-db-devel mailing list