[okular] [Bug 398338] New: Compilation failure on Musl due to use of vasprintf
Bart Ribbers
bugzilla_noreply at kde.org
Thu Sep 6 21:09:56 BST 2018
https://bugs.kde.org/show_bug.cgi?id=398338
Bug ID: 398338
Summary: Compilation failure on Musl due to use of vasprintf
Product: okular
Version: unspecified
Platform: Other
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
Assignee: okular-devel at kde.org
Reporter: bribbers at disroot.org
Target Milestone: ---
If building Okular on a Musl based system (like Alpine Linux or postmarketOS),
compilation will fail:
okular-18.08.1/core/synctex/synctex_parser.c:8202:13: error: implicit
declaration of function 'vasprintf' [-Werror=implicit-function-declaration]
if (vasprintf(&buffer, format, va) < 0) {
^~~~~~~~~
This is due to the use of "vasprintf()" which is not part of POSIX
(https://linux.die.net/man/3/vasprintf). It can be quite easily resolved by
using "vsprintf()" instead, but I'm guessing this will cause problems during
runtime due to missing the terminating null byte.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Okular-devel
mailing list