Bug 238702 - sysutils/plasma5-ksysguard: fix build with GCC-based architectures
Summary: sysutils/plasma5-ksysguard: fix build with GCC-based architectures
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-19 08:50 UTC by Piotr Kubaj
Modified: 2019-07-05 15:37 UTC (History)
3 users (show)

See Also:
tcberner: maintainer-feedback+


Attachments
patch (336 bytes, patch)
2019-06-19 08:50 UTC, Piotr Kubaj
pkubaj: maintainer-approval? (kde)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kubaj freebsd_committer freebsd_triage 2019-06-19 08:50:28 UTC
Created attachment 205216 [details]
patch

Linking with INOTIFY enabled (on by default) requires -lnotify to fix:
ksysguardd.c:(.text+0x14): undefined reference to `inotify_init'
/usr/local/bin/ld: ksysguardd.c:(.text+0x4c): undefined reference to `inotify_add_watch'
collect2: error: ld returned 1 exit status
Comment 1 Tobias C. Berner freebsd_committer freebsd_triage 2019-06-23 11:49:55 UTC
That should not be needed, as it is set by FindInotify.cmake from kf5-extra-cmake-modules.

Could you check the output of cmake when building, and look what the inotify related variables are?

mfg Tobias
Comment 2 Piotr Kubaj freebsd_committer freebsd_triage 2019-06-23 19:29:41 UTC
(In reply to Tobias C. Berner from comment #1)
There is this:
-- Looking for include file sys/inotify.h
-- Looking for include file sys/inotify.h - found

And this all.
Comment 3 Tobias C. Berner freebsd_committer freebsd_triage 2019-06-23 19:55:46 UTC
You have to check the variables set by cmake in its cache :)