Bug#1019318: seq24: FTBFS on riscv64 (undefined reference to `__init')

Eric Long i at hack3r.moe
Wed Sep 7 11:04:12 BST 2022


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 at 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?

Thanks,
Eric
-------------- next part --------------
Description: Fix FTBFS on riscv64
Origin: https://build.opensuse.org/package/view_file/openSUSE:Factory:RISCV/seq24/riscv.patch

Index: seq24-0.9.3/configure.ac
===================================================================
--- seq24-0.9.3.orig/configure.ac
+++ seq24-0.9.3/configure.ac
@@ -54,7 +54,7 @@ dnl Checks for libraries.
 AC_CHECK_LIB(rt, main, ,    
     AC_MSG_ERROR([POSIX.1b RealTime Library Missing -lrt]))
 
-AC_CHECK_LIB(gtkmm-2.4, _init,,
+AC_CHECK_LIB(gtkmm-2.4, main,,
     AC_MSG_ERROR(Essential library libgtkmm-2.4 not found))
 
 AC_CHECK_LIB(sigc-2.0, main,,


More information about the pkg-multimedia-maintainers mailing list