Bug 238702

Summary: sysutils/plasma5-ksysguard: fix build with GCC-based architectures
Product: Ports & Packages Reporter: Piotr Kubaj <pkubaj>
Component: Individual Port(s)Assignee: freebsd-kde (group) <kde>
Status: Closed FIXED    
Severity: Affects Only Me CC: kde, linimon, tcberner
Priority: --- Flags: tcberner: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch pkubaj: maintainer-approval? (kde)

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 :)