Skip to content

[Yara 4.5.0][Build error] --- pread64 not found on Alpine Linux #2050

@nivscadafence

Description

@nivscadafence

Yara build on Alpine Linux fails:

libyara/proc/linux.c: In function 'yr_process_fetch_memory_block_data': libyara/proc/linux.c:252:9: warning: implicit declaration of function 'pread64'; did you mean 'pread'? [-Wimplicit-function-declaration] 252 | if (pread64( | ^~~~~~~ | pread CCLD libyara.la copying selected object files to avoid basename conflicts... CCLD yara /usr/lib/gcc/x86_64-alpine-linux-musl/13.2.1/../../../../x86_64-alpine-linux-musl/bin/ld: ./.libs/libyara.so: undefined reference to pread64'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:1735: yara] Error 1
make[1]: Leaving directory '/tmp/sources/yara-4.5.0'
make: *** [Makefile:1190: all] Error 2
The command '/bin/sh -c cd /tmp/sources && tar -zxf yara-${YARA_VERSION}.tar.gz && cd yara-${YARA_VERSION} && ./bootstrap.sh && ./configure --with-crypto --enable-magic && make && make install && make check' returned a non-zero code: 2`

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