FTBFS on riscv64 (undefined reference to `__init’)

Source: seq24

Version: 0.9.3-2

Severity: important

Tags: ftbfs patch

Justification: fails to build from source (but built successfully in the past)

X-Debbugs-Cc: i…@hack3r.moe

Dear maintainers,

I am currently porting packages to riscv64 platform. seq24 failed to build on
riscv64 as shown below:

configure:5898: checking for _init in -lgtkmm-2.4
configure:5921: gcc -o conftest -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,–as-needed -Wl,–as-needed conftest.c -lgtkmm-2.4 -lrt >&5
/usr/bin/ld: /tmp/ccm4bpJ8.o: in function `main’:
./conftest.c:21: undefined reference to `_init’
collect2: error: ld returned 1 exit status
configure:5921: $? = 1

Attached is a patch from openSUSE that fixes FTBFS on riscv64. Can you merge it
on Debian as well?


Read more here: Source link