Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922345 - kde-apps/okular-23.08.5 fails to compile (MUSL-SYSTEM): synctex_parser.c:8059:13: error: implicit declaration of function vasprintf
Summary: kde-apps/okular-23.08.5 fails to compile (MUSL-SYSTEM): synctex_parser.c:8059...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2024-01-18 08:26 UTC by Agostino Sarubbo
Modified: 2024-04-22 16:32 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,299.07 KB, text/plain)
2024-01-18 08:26 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-01-18 08:26:19 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: kde-apps/okular-23.08.4 fails to compile (MUSL-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
(MUSL-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc but this bug MAY or MAY NOT BE related to musl.
Comment 1 Agostino Sarubbo gentoo-dev 2024-01-18 08:26:21 UTC
Created attachment 882514 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-01-18 08:26:22 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


FAILED: CMakeFiles/okularcore.dir/core/synctex/synctex_parser.c.o 
/var/tmp/portage/kde-apps/okular-23.08.4/work/okular-23.08.4/core/synctex/synctex_parser.c:8059:13: error: implicit declaration of function 'vasprintf'; did you mean 'vsprintf'? [-Werror=implicit-function-declaration]
Comment 3 Agostino Sarubbo gentoo-dev 2024-02-25 08:29:26 UTC
tinderbox_musl has reproduced this issue with version 23.08.5 - Updating summary.
Comment 4 jonys 2024-03-30 20:45:51 UTC
There's an old upstream issue about it here: https://bugs.kde.org/show_bug.cgi?id=398338
I added some new info to it.

Since the ultimate upstream for this code is SyncTeX, I filed an issue there as well: https://github.com/jlaurens/synctex/issues/80
Comment 6 hugegameartgd 2024-04-02 14:52:00 UTC
(In reply to hugegameartgd from comment #5)

I meant https://invent.kde.org/graphics/okular/-/merge_requests/722, sorry
Comment 7 Larry the Git Cow gentoo-dev 2024-04-22 16:32:21 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83c1a0cd60ab8af045d8662c965635a863644cf2

commit 83c1a0cd60ab8af045d8662c965635a863644cf2
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2024-04-21 13:24:56 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2024-04-22 16:22:28 +0000

    kde-apps/okular: Fix musl build (implicit vasprintf decl)
    
    KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=398338
    Upstream MR: https://invent.kde.org/graphics/okular/-/merge_requests/722
    
    Cherry-picked from upstream's upstream:
    https://github.com/jlaurens/synctex/commit/4b0590e7d1817b004c71635f9e721edf1e368228
    
    Closes: https://bugs.gentoo.org/922345
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../files/okular-23.08.5-implicit-vasprintf.patch  | 29 ++++++++++++++++++++++
 kde-apps/okular/okular-23.08.5.ebuild              |  1 +
 kde-apps/okular/okular-24.02.2.ebuild              |  1 +
 3 files changed, 31 insertions(+)