From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17515 invoked by alias); 17 Sep 2008 13:45:50 -0000 Received: (qmail 17505 invoked by uid 22791); 17 Sep 2008 13:45:50 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 17 Sep 2008 13:45:18 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m8HDjFVO013964; Wed, 17 Sep 2008 09:45:15 -0400 Received: from pobox-3.corp.redhat.com (pobox-3.corp.redhat.com [10.11.255.67]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m8HDjFAR011460; Wed, 17 Sep 2008 09:45:15 -0400 Received: from touchme.toronto.redhat.com (IDENT:postfix@touchme.yyz.redhat.com [10.15.16.9]) by pobox-3.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m8HDioGC030032; Wed, 17 Sep 2008 09:45:15 -0400 Received: from ton.toronto.redhat.com (ton.yyz.redhat.com [10.15.16.15]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 2F7138001FF; Wed, 17 Sep 2008 09:44:34 -0400 (EDT) Received: from ton.toronto.redhat.com (localhost.localdomain [127.0.0.1]) by ton.toronto.redhat.com (8.13.1/8.13.1) with ESMTP id m8HDiHIp009786; Wed, 17 Sep 2008 09:44:17 -0400 Received: (from fche@localhost) by ton.toronto.redhat.com (8.13.1/8.13.1/Submit) id m8HDiHYJ009785; Wed, 17 Sep 2008 09:44:17 -0400 Date: Wed, 17 Sep 2008 13:45:00 -0000 From: "Frank Ch. Eigler" To: =?iso-8859-1?Q?Aur=E9lien?= Buhrig Cc: sid@sources.redhat.com Subject: Re: component_library object not found in lib Message-ID: <20080917134417.GA8858@redhat.com> References: <003301c918a3$6b4464b0$41cd2e10$@Buhrig@tiempo-ic.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003301c918a3$6b4464b0$41cd2e10$@Buhrig@tiempo-ic.com> User-Agent: Mutt/1.4.1i X-IsSubscribed: yes Mailing-List: contact sid-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sourceware.org X-SW-Source: 2008-q3/txt/msg00004.txt.bz2 Hi - > DLLEXPORT extern const component_library tam16family_component_library; > const component_library tam16family_component_library = { ... }; This looks fine. > I had no particular problem adding the interrupt controller. But things go > wrong when adding a second peripheral (timer). Do you mean that the same component_library file worked when you had only one component type supported in list_types etc., but didn't load when more are available in the source? > At the configuration, this error occurs: dlsym of > tam16family_component_library in component library dso > libtam16family.la failed: sid: undefined symbol: > tam16family_component_library You could try env LD_DEBUG=all sid ... My guess is that there is a typo in your source code that allowed the .so to be built with an undefined external reference. That in turn can cause the .so to fail to load, even if the tam16_family_component_library symbol itself was there. - FChE