X-Rcpt-Trace: gkrellm at lists.netservicesgroup.com
Received-SPF: pass (Last token {include:_netblocks.google.com} (res=PASS)) client-ip=209.85.167.196; envelope-from=<dalepsmith@gmail.com>; x-ip-name=mail-oi1-f196.google_com;
X-Received: from mail-oi1-f196.google.com (unverified [209.85.167.196])
by mailproc.sbbsnet.net (Network-Services-Group-Email) with ESMTP (TLS) id 4245494-1928206
for <gkrellm@lists.netservicesgroup.com>; Thu, 11 Apr 2019 16:55:21 -0400
X-Return-Path: dalepsmith
X-Verify-SMTP: Host 209.85.167.196 sending to us was not listening
X-Received: by mail-oi1-f196.google.com with SMTP id n187so6142714oih.6
for <gkrellm@lists.netservicesgroup.com>; Thu, 11 Apr 2019 13:55:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20161025;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to;
bh=KSJYgv2JBmync04cLJJqyyG/m4915hSwzqAbopKYiYw=;
b=oVNZtE0AvV86yP9GgbKZmLIlVpd3yP67qs/9yF4WtxMFPqWPLogqIt2hv3ZvcwK/T9
orhR+R0OY5F2xeRoUgzd3+cdnD39h8b2BkQhvlY9IBDdlTobuZ2dPnt1yn8noGH0Ve6z
G3Td2xevH0ouLmpWPJKvDvu4OXusdP1NxrcSwK/9rvKbGzLGVUbiBgrxOpOa9wav30TV
8g3zrFOXQjUykKEplPtT6HA1lZpc+jB3iuWMXLArMuAI/Yp7UyfdT5fV+qa/y8zvxi4z
aCUBJcZrwe3TKfas6lifai0gaqL2K/LIInvtLwpOHihreSUXATJiTmHUwuB9iy12n/0c
eH6w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:in-reply-to:references:from:date
:message-id:subject:to;
bh=KSJYgv2JBmync04cLJJqyyG/m4915hSwzqAbopKYiYw=;
b=B20mQJ0OOlo4FdDv9MKAiu991loMArP9naACH+ZEqjNBR1XFXoPBiaVjGAlNuRk14M
iu2NoLZuOntICrdelC+M8O0Y9ERYgdjdHjYzutsZUkE2YU9ifuHzXEamuTlaJHY32nMe
aL7iISkSwKGHblmocHAE/GArmLlaP7EOqtWxEj5H5XPwUnsOWYgq9KtPTGoEfQ9ZbkHF
5nWaybKk937QlNcj8sHNFkDUwX6Jg/gn+YoK7mNb7iARBUfZL4ybKc6FArbci8CJ1vKt
Af6iK2nXJtRzLN5CTrRhjsuN8Z9I9vj/kJc1PozhJB8Rwlma/4h3U6zVjr9w3LyE3Sad
Sq2A==
X-Gm-Message-State: APjAAAXMlfzyn0Kk5eDCxN6wJuGn2AY1mkOCZaE/trjb2UPdZgu5JgFl
s7NyThlTz+H75akwIo5zXAVcfIPXaibGlMWo00/FIg==
X-Google-Smtp-Source: APXvYqwjmYOaPj0l2XE+QKffbXHvYigcERotha4FzFAwI8B15o+2/8MIAXuins0Ro+EGcw/2WQIYLZNArXymvgiXVBM=
X-Received: by 2002:aca:378a:: with SMTP id e132mr7305998oia.171.1555016113594;
Thu, 11 Apr 2019 13:55:13 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 2002:a9d:764c:0:0:0:0:0 with HTTP; Thu, 11 Apr 2019 13:55:12
-0700 (PDT)
In-Reply-To: <2LGCKQC2.P6XIC4U4.QZJXVSJX@WNYAIQJQ.O7PT356F.QWNDNDHK>
References: <MAKGX72M.DJYZW2PX.CUFJN7FU@D6BH3RID.B2ZOFWTP.U6F6EETE> <2LGCKQC2.P6XIC4U4.QZJXVSJX@WNYAIQJQ.O7PT356F.QWNDNDHK>
From: Dale Smith
Date: Thu, 11 Apr 2019 16:55:12 -0400
Message-ID: <CAFGZJC77xy+On7Rad7oDD9NY7kO6dz1xXryU_ser9K1PRpNi6w@mail.gmail.com>
Subject: Re: [Gkrellm] Problem with gkrellfire plugin
To: gkrellm@lists.netservicesgroup.com
X-Originating-IP: 209.85.167.196
X-Country: code=US country="United States" ip=209.85.167.196
X-ORBS-Accept: dnswl_none
X-Rcpt-To: <gkrellm@lists.netservicesgroup.com>
X-SpamDetect: *********: 9.0 sd=9.0 Close nspam=1 nok=0 1.00 $0.90(X-Phrase:isspam) $0.10(X-myrbl:Color=yellow) $0.10(free_email) $0.85(X-Verify-SMTP present) $0.16(genuine_gmail) 0.36(dnswl_none) 0.41(dkimok) $0.41(genuine) $0.43(X-Verify-Helo:+OK) $0.46(spfpass) $0.47(StandardTLD) 0.48(X-NotAscii:utf) $0.49(X-LangGuess:English) NotSaned 4.9 9.0
X-NotAscii: charset=utf-8
X-LangGuess: English
X-Phrase: IsSpam score=1.00
X-Verify-Helo: +OK mail-oi1-f196.google.com
Authentication-Results: mailproc.sbbsnet.net header.from=dalepsmith@gmail.com; dkim=pass (good signature)
X-Encryption: SSL encrypted
X-MyRbl: Color=Yellow (from rbl) ip=209.85.167.196
X-IP-stats: Incoming Last 0, First 197, in=118, out=0, spam=0 ip=209.85.167.196
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
Well, it probably won't fix things, but there *is* a difference in
those two linker calls that might be important.
The "-Wl,--as-needed" flag is for the following libs. Looks like that
is coming *after* the gtk libs on gkrellm-volume but *before* the gtk
libs on gkrellfire.
-Dale
On 4/11/19, Jack Ostroff <ostroffjh@aya.yale.edu> 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()
>
> so the call is present. Compiling is only two commands. After the
> first, "x86_64-pc-linux-gnu-gcc -O2 -pipe -fPIC `pkg-config gtk+-2.0
> --cflags` -c -o gkrellfire.o gkrellfire.c" if I do "objdump -t
> gkrellfire.o I grep init" I get
>
> 00000000000018b0 g F .text 0000000000000089 gkrellm_init_plugin
>
> so the function is compiled into the .o file. The second command is
> "x86_64-pc-linux-gnu-gcc -O2 -pipe -fPIC `pkg-config gtk+-2.0
> --cflags` -o gkrellfire.so -Wl,-O1 -Wl,--as-needed -shared `pkg-config
> gtk+-2.0 --libs`" after which "objdump -t gkrellfire.so | grep init"
> gives
>
> 0000000000001000 l d .init 0000000000000000 .init
> 0000000000003e30 l d .init_array 0000000000000000
> .init_array
> 0000000000003e30 l O .init_array 0000000000000000
> __frame_dummy_init_array_entry
> 0000000000001000 l F .init 0000000000000000 _init
>
> It makes no sense to me.
>
> If I do the same with gkrellm-volume, both volume.o and volume.so
> contain gkrellm_init_plugin. The compiles seems pretty similar:
>
> x86_64-pc-linux-gnu-gcc -O2 -pipe -DPACKAGE="\"gkrellm-volume\"" -fPIC
> `pkg-config gtk+-2.0 --cflags` -I/usr/local/include -DALSA -c -o
> volume.o volume.c
> (same for mixer.c, oss_mixer.c, and alsa_mixer.c)
> x86_64-pc-linux-gnu-gcc volume.o mixer.o oss_mixer.o alsa_mixer.o -o
> volume.so `pkg-config gtk+-2.0 --libs` -lasound -shared -Wl,-O1
> -Wl,--as-needed
>
> Anything else I can check or try?
>
> Jack
>
|