From owner-freebsd-gnome@FreeBSD.ORG Thu Apr 26 00:31:20 2012 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 149F21065670; Thu, 26 Apr 2012 00:31:20 +0000 (UTC) (envelope-from lattera@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id B023B8FC17; Thu, 26 Apr 2012 00:31:19 +0000 (UTC) Received: by obhx4 with SMTP id x4so973520obh.13 for ; Wed, 25 Apr 2012 17:31:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=lcmu2Pn3P74wPGhUMxiOQ8lWGzd/mPWuZqCwBR7PE54=; b=PLvZTvX5A4qEcncVrRDqOz7MKVhRzX4hSmLgqL0G1GatRwB9IBqONvU4DLgSfs0ytz hsfGrZaiNdnwv1BftF2mHVorV19gkZixENDBDnx7t7BeuNFqMQCL9yfVPUdH9ZfAimHh G9KWbwTpC3g1d7Kl/chETFt9YHHKuRuTVOSBywrxisM+/lVecQdWbpFyLQc4Xmnmwd+i qQylLvdzyBQKcF0LTcMHxPuXG3siqSIkD4O8Fa0ChE0/PZwfPjsj34D1f3JV8wqHnd4E O1bfH6hT/96juNRG3ZBTEHRGJlPTZEo4KAzDB8fMZZEU/wqlTgM6KcxnW9bo5/kcYEjX i8Zg== MIME-Version: 1.0 Received: by 10.182.46.100 with SMTP id u4mr6332673obm.46.1335400279067; Wed, 25 Apr 2012 17:31:19 -0700 (PDT) Received: by 10.182.48.169 with HTTP; Wed, 25 Apr 2012 17:31:18 -0700 (PDT) Received: by 10.182.48.169 with HTTP; Wed, 25 Apr 2012 17:31:18 -0700 (PDT) In-Reply-To: <32762.1335398519@tristatelogic.com> References: <32762.1335398519@tristatelogic.com> Date: Wed, 25 Apr 2012 18:31:18 -0600 Message-ID: From: Shawn Webb To: "Ronald F. Guilmette" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: pav@freebsd.org, freebsd-ports@freebsd.org, freebsd-gnome@freebsd.org Subject: Re: Need a little help with a dynamic linking problem X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Apr 2012 00:31:20 -0000 Without being able to look at the details in-depth myself, it looks like the shared object is looking for a symbol which the RTLD can't resolve. The symbol is defined in the gthumb application itself. Is that symbol exported such that shared objects can reference it? If the problem is still unresolved by tomorrow, I can draft up a sample and confirm my suspicions (that non-exported symbols won't be resolvable by dynamically-loaded shared objects). Thanks, Shawn Sent from my Android 4.0 device. Please forgive any spelling or grammatical errors. On Apr 25, 2012 6:02 PM, "Ronald F. Guilmette" wrote: > > My question relates to a port that I am doing of gthumb v2.14.3 to > FreeBSD. Because gthumb is fundamentally a gnome application, I am > cross-posting my question to both the ports and gnome mailing lists. > (My apologies if that means that some of you see this twice.) > > After a modest but unexpected amount of gnashing of teeth and tearing > of hair, I have been able to get gthumb 2.14.3 built and installed on > my FreeBSD 8.2 system. Now comes to the fun part... > > I have installed the whole thing under a special (temporary) directory > that I created called /usr/local/hacked. > > When I try to run the gthumb binary that I built and install, I am getting > the following perplexing error message: > > /libexec/ld-elf.so.1: > /usr/local/hacked/lib/gthumb/extensions/libfile_viewer.so: Undefined symbol > "gth_viewer_page_get_type" > > > Quite obviously, I have been away from working on the GNU software > development > toolchain (and its friends, like ld-elf.so) for far far too long, because I > no longer even know how this stuff is even supposed to work, i.e. when it > is > (knock on wood) working correctly. So if someone who knows this stuff can > take pity on me and pass me a clue about what I need to do to resolve the > above dynamic linking failure, I sure would appreciate it. > > Some relevant background: > > The main gthumb binary is installed in /usr/local/hacked/bin/gthumb and > that's > what I am running when I run it. > > It seems pretty obviously to me that the main gthumb executable, when > executed, > is then trying to dynamically pull in various of the *.so shared library > files > that got installed into /usr/local/hacked/lib/gthumb/extensions directory > as > part of the nominal build+install process for gthumb. > > One last important point: > > I've checked, and the symbol "gth_viewer_page_get_type" _is_ in fact > defined. > It is defined within the main gthumb executable itself: > > % nm gthumb | fgrep gth_viewer_page_get_type > 00000000004aaf10 T gth_viewer_page_get_type > > So, um, sombody please pass me a clue... How come the dynamic linker > doesn't > seem to know that the symbol it is looking for was and is defined in the > main > executable file that the present process originated with? (This specific > lack of cognition on the part of the dynamic linker seems to me to be > rather > reminicent of Alzheimer's.) > > > Regards, > rfg > > > P.S. I have already tried both of the following commands prior to > executing > my gthumb executable and neither of these made a bit of difference to the > outcome. I still got the exact same dynamic linker (fatal) error in both > cases... > > setenv LD_LIBRARY_PATH /usr/local/hacked/bin > > setenv LD_LIBRARY_PATH /usr/local/hacked/lib/gthumb/extensions > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >