Skip to content

Fails to build on 32bit architectures #332

Open

Description

@daniel-baumann

Hi,

I've uploaded ipfixprobe to Debian, however, it fails to build on 32bit architectures, here are the links to the full build-logs:

other buildlogs are available from here:

https://buildd.debian.org/status/package.php?p=ipfixprobe

Regards,
Daniel

Activity

  1. mzi77 commented on Jul 13, 2026

    @mzi77

    @daniel-baumann - try attached patch, it builds and runs on i386 bookworm. Other warnings should be harmless (?).

    Still needs review from ipfixprobe author.

    i386-32bit-type-mismatches.patch

  2. daniel-baumann commented on Jul 13, 2026

    @daniel-baumann
    Author

    Hi Martin,

    @mzi77 thanks!

    bookworm is rather old (2022/2023; current oldstable).. with the patch attached, it builds neither on trixie (current stable) nor sid, it fails with:

                     from /usr/include/appFs.hpp:12,
                     from /build/ipfixprobe/src/core/ipfixprobe.hpp:43:
    /usr/include/fuse3/fuse_common.h:1157:20: error: negative width in bit-field ‘_fuse_off_t_must_be_64bit_dummy_struct::_fuse_off_t_must_be_64bit’
     1157 |         { unsigned _fuse_off_t_must_be_64bit:((sizeof(off_t) == 8) ? 1 : -1); };
          |                    ^~~~~~~~~~~~~~~~~~~~~~~~~
    

    Regards,
    Daniel

  3. mzi77 commented on Jul 13, 2026

    @mzi77

    This Is well known problem on 32bit platforms with fuse3. I will look at it.

  4. mzi77 commented on Jul 14, 2026

    @mzi77

    @daniel-baumann - I tried building both HEAD and ipfixprobe-5.7.0 in trixie chroot i386 environment (i386 architecture is not support as standalone anymore) with

    cmake .. -DENABLE_INPUT_PCAP=ON

    and it compiled without problems.

    Key define

    -D_FILE_OFFSET_BITS=64

    was detected and used during compilation.

    Architecture and Debian version used

    dpkg --print-architecture
    i386
    cat /etc/debian_version 
    13.6
    

    You can use attached patch which will define _FILE_OFFSET_BITS explicitly, but it was not necessary in my case.

    i386-fuse3-file-offset-bits.patch

  5. SiskaPavel commented on Jul 14, 2026

    @SiskaPavel
    Collaborator

    Hi,

    thanks @mzi77 for the patches and investigation.

    The first issue is probably caused by stricter checks in the newer GCC 15.3 toolchain used by Debian build infrastructure. I will integrate the patches and verify the build on supported architectures.

    Thanks!

    P.S. We are also working on a completely new version of ipfixprobe, with a lot of new features and improvements, which should be released in the near future. The current version is already in maintenance mode, and we are only making minimal changes and bug fixes to it.

  6. mzi77 commented on Jul 15, 2026

    @mzi77

    @SiskaPavel - this is great news about new version. If you want, I can help with testing / porting to 32bit architecture - I know this is not your primary target, but it's necessary for Debian package acceptance.

    @daniel-baumann - have you tried compiling with _FILE_OFFSET_BITS=64 set ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions