Closed VorpalBlade closed 1 week ago
There does seem to be additional issues on 32-bit, I cannot get the unit tests to pass. But that should probably be a separate bug.
that is a duplicate of #50 but since the comment https://github.com/solsticedhiver/pacutils/commit/60465531d515894c82308526fa4d22edad4c8f4b#commitcomment-74619227 in the related PR https://github.com/solsticedhiver/pacutils/commit/60465531d515894c82308526fa4d22edad4c8f4b nothing happened
pkg-config libalpm --cflags
should now be providing the required _FILE_OFFSET_BITS definition. If your build system is explicitly setting CFLAGS such that the Makefile isn't setting it, you can set it manually.
This happens with the version from this repo as well as from the Arch32 package.
Analysis with gdb:
Rebuilding like this fixes the issue:
Presumably
-D_FILE_OFFSET_BITS=64
needs to be set on 32-bit platforms. Maybe it is a mismatch in build flags between libalpm and pacutils?Downstream Arch32 bug: https://bugs.archlinux32.org/index.php?do=details&task_id=317