NetBSD Problem Report #40047

From www@NetBSD.org  Thu Nov 27 14:23:54 2008
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 79CA063BD2D
	for <gnats-bugs@gnats.netbsd.org>; Thu, 27 Nov 2008 14:23:54 +0000 (UTC)
Message-Id: <20081127142353.79ABF63B8BD@narn.NetBSD.org>
Date: Thu, 27 Nov 2008 14:23:53 +0000 (UTC)
From: pkgsrc@blackmouse.biz
Reply-To: pkgsrc@blackmouse.biz
To: gnats-bugs@NetBSD.org
Subject: gkrellm plugin problems - could be only Linux problem
X-Send-Pr-Version: www-1.0

>Number:         40047
>Category:       pkg
>Synopsis:       gkrellm plugin problems - could be only Linux problem
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 27 14:25:00 +0000 2008
>Last-Modified:  Mon Nov 01 00:01:45 +0000 2010
>Originator:     Ondrej Tuma
>Release:        current
>Organization:
Blackmouse
>Environment:
Linux mike 2.6.25.9 #7 SMP Sat Oct 18 10:03:27 CEST 2008 i686 pentium4 i386 GNU/Linux
>Description:
When plugins are use, their install failed with errors like this:

usr/pkg/lib/gkrellm2/plugins/reminder.so
	Error: /usr/pkg/lib/gkrellm2/plugins/reminder.so: undefined symbol: gkrellm_homedir
/usr/pkg/lib/gkrellm2/plugins/gkrellmms.so
	Error: /usr/pkg/lib/gkrellm2/plugins/gkrellmms.so: undefined symbol: gkrellm_panel_show
/usr/pkg/lib/gkrellm2/plugins/gkrellmlaunch.so
	Error: /usr/pkg/lib/gkrellm2/plugins/gkrellmlaunch.so: undefined symbol: gkrellm_panel_show
/usr/pkg/lib/gkrellm2/plugins/gkleds.la
	Error: /usr/pkg/lib/gkrellm2/plugins/gkleds.so: undefined symbol: gkrellm_panel_configure
>How-To-Repeat:
install any plugin and try it to install (use)
>Fix:
Problem is in "-Wl,-export-dynamic" which isn't in linking command. It could be problem in some setting - probably it is. 

Here is my dirty patch:

--- src/Makefile.orig   2008-11-27 15:11:23.000000000 +0100
+++ src/Makefile
@@ -100,7 +100,7 @@ all:        build
 build: gkrellm

 gkrellm static: $(OBJS)
-       $(CC) $(OBJS) -o gkrellm$(if $(findstring static,$@),.static -static) $(LIBS) $(LINK_FLAGS)
+       $(CC) $(OBJS) -o gkrellm$(if $(findstring static,$@),.static -static) -Wl,-export-dynamic $(LIBS) $(LINK_FLAGS)

 install: gkrellm
        $(INSTALL_DIR) $(INSTALLDIR)

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->cube
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Tue, 02 Dec 2008 13:08:21 +0000
Responsible-Changed-Why:
Over to maintainer.


Responsible-Changed-From-To: cube->pkg-manager
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Mon, 01 Nov 2010 00:01:45 +0000
Responsible-Changed-Why:
back to role account.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.