X-Rcpt-Trace: gkrellm at lists.netservicesgroup.com
Received-SPF: pass (Last token {mx} (res=PASS)) client-ip=188.40.129.132; envelope-from=<stefan+gkrellm@srcbox.net>; x-ip-name=box.srcbox.net;
X-Received: from box.srcbox.net (unverified [188.40.129.132])
by mailproc.sbbsnet.net (Network-Services-Group-Email) with ESMTP (TLS) id 4246918-1928206
for <gkrellm@lists.netservicesgroup.com>; Thu, 11 Apr 2019 19:53:56 -0400
X-Return-Path: stefan+gkrellm
X-Received: from [IPv6:2a04:4540:6c1a:401:526b:7499:2e0c:9ae7] (unknown [IPv6:2a04:4540:6c1a:401:526b:7499:2e0c:9ae7])
by box.srcbox.net (Postfix) with ESMTPSA id 5CE1247E04C8
for <gkrellm@lists.netservicesgroup.com>; Fri, 12 Apr 2019 01:53:52 +0200 (CEST)
Subject: Re: [Gkrellm] Problem with gkrellfire plugin
To: gkrellm@lists.netservicesgroup.com
References: <2LGCKQC2.P6XIC4U4.QZJXVSJX@WNYAIQJQ.O7PT356F.QWNDNDHK>
From: Stefan Gehn
Message-ID: <f840c201-aac6-0217-b15d-a41b2ce45459@srcbox.net>
Date: Fri, 12 Apr 2019 01:53:51 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <2LGCKQC2.P6XIC4U4.QZJXVSJX@WNYAIQJQ.O7PT356F.QWNDNDHK>
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
X-Originating-IP: 188.40.129.132
X-Country: code=DE country="Germany" ip=188.40.129.132
X-Rcpt-To: <gkrellm@lists.netservicesgroup.com>
X-SpamDetect: *****: 5.0 sd=5.0 Close nspam=0 nok=2 0.00 $0.90(X-Phrase:isspam) $0.10(X-myrbl:Color=yellow) 0.73(X-Country:germany) $0.43(X-Verify-Helo:+OK) $0.46(spfpass) $0.47(StandardTLD) $0.48(X-NotAscii:utf) $0.49(X-LangGuess:English) Sane 5.0 NotSaned 6.8 5.0
X-NotAscii: charset=utf-8;
X-LangGuess: English
X-Phrase: IsSpam score=1.00
X-Verify-Helo: +OK box.srcbox.net
X-Encryption: SSL encrypted
X-MyRbl: Color=Yellow (from rbl) ip=188.40.129.132
X-IP-stats: Incoming Outgoing Last 0, First 255, in=223, out=21, spam=0 Known=true ip=188.40.129.132
List-Unsubscribe: <mailto:gkrellm-leave@lists.netservicesgroup.com?subject=unsubscribe>
X-Mailing-List: gkrellm@lists.netservicesgroup.com
List-ID: <gkrellm@lists.netservicesgroup.com>
Precedence: bulk
Reply-To: gkrellm@lists.netservicesgroup.com
On 11/04/2019 22:19, Jack Ostroff wrote:
> On 2019.04.11 13:20, Jack wrote:
>> On 2019.04.11 04:37, Peter Humphrey wrote:
>>> On Wednesday, 10 April 2019 23:58:26 BST you wrote:
>>>> A gkrellm_init_plugin() function is supposed to be in each plugin so
>>>> something is wrong with the gkrellfire plugin. Maybe it is
>>>> corrupted or the plugin has had symbols stripped.
>
> [snip....]
>
> Something is definitely strange. If I unpack the source, and do "grep
> init gkrellfire.c" I get
>
> // All GKrellM plugins must have one global routine named init_plugin()
> __declspec(dllexport) GkrellmMonitor
> *gkrellm_init_plugin(win32_plugin_callbacks* calls)
> GkrellmMonitor *gkrellm_init_plugin()
The above signature is quite outdated. The win32 part is not needed
anymore and for Unix systems it does not mark the function as exported.
Please try making the init function signature look like this, i.e.
prefix it with G_MODULE_EXPORT:
G_MODULE_EXPORT
GkrellmMonitor *gkrellm_init_plugin()
Also, if needed, add the following include somewhere at the top:
#include <gmodule.h>
I wouldn't be surprised if either the default compiler configuration or
one of the dependencies (glib, gmodule, gtk+2) sneaks in a
"-fvisibility=hidden" which will only export symbols marked as such.
Regards,
Stefan
|