Bug 395161 - Failing to compile on postmarketOs due to "undefined reference to `backtrace'"
Summary: Failing to compile on postmarketOs due to "undefined reference to `backtrace'"
Status: RESOLVED FIXED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-08 20:52 UTC by Bart Ribbers
Modified: 2018-06-12 20:03 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Build script (1.14 KB, text/plain)
2018-06-08 20:52 UTC, Bart Ribbers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bart Ribbers 2018-06-08 20:52:29 UTC
Created attachment 113158 [details]
Build script

I'm trying to package kdeconnect (the Plasma Mobile version) for postmarketOS (https://postmarketos.org), which is based on Alpine Linux. Although all dependencies are installed, it fails to compile with the following:


[ 13%] Linking CXX shared library ../bin/libkdeconnectcore.so
CMakeFiles/kdeconnectcore.dir/core_debug.cpp.o: In function `logBacktrace()':
core_debug.cpp:(.text+0xa7): undefined reference to `backtrace'
core_debug.cpp:(.text+0xb3): undefined reference to `backtrace_symbols'
core_debug.cpp:(.text+0xc5): undefined reference to `backtrace_symbols_fd'
collect2: error: ld returned 1 exit status
make[2]: *** [core/CMakeFiles/kdeconnectcore.dir/build.make:429: bin/libkdeconnectcore.so.1.3.1] Error 1
make[1]: *** [CMakeFiles/Makefile2:902: core/CMakeFiles/kdeconnectcore.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Attached is the APKBUILD I'm using to build it. It should explain itself.
What could cause this?
Comment 1 Nicolas Fella 2018-06-08 22:42:33 UTC
I think it fails because Alpine is using musl instead of glibc and those functions are specific to glibc. Not sure about it though