[Pkg-electronics-devel] Bug#1019729: Please build librnd with large file support

Helge Deller deller at gmx.de
Wed Sep 14 10:58:35 BST 2022


Package: librnd
Version: 3.2.0-3
Tags: ftbfs, hppa, patch

librnd randomly fails to build on debian hppa buildd servers (and probably other
32bit architectures which run with 64bit kernels), because the check for the
readdir() syscall in scconfig/src/default/find_fscalls.c
fails if the temporary generated file is on a filesystem which isn't reachable
with a 32-bit struct dirent entry.

Such a failure can be seen here:
https://buildd.debian.org/status/fetch.php?pkg=librnd&arch=hppa&ver=3.2.0-3&stamp=1663095878&raw=0
The failure (apparently missing readdir syscall) will then be reported later on as:
os_dep_fs.c:129:2: error: #error no suitable readdir implementation
   129 | #error no suitable readdir implementation

The solution is simple, please just add

   CFLAGS   += -D_LARGE_FILE_SOURCE=1  -D_FILE_OFFSET_BITS=64

to the top of the debian/rules file.

Thanks,
Helge
-------------- next part --------------
A non-text attachment was scrubbed...
Name: doxygen.diff
Type: text/x-patch
Size: 513 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-electronics-devel/attachments/20220914/4a3fdb30/attachment.bin>


More information about the Pkg-electronics-devel mailing list