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-de...@kde.org
          Reporter: bribb...@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 watching all bug changes.

Reply via email to