This is the mail archive of the
sid@sourceware.org
mailing list for the SID project.
Re: component_library object not found in lib
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- To: Aurélien Buhrig <Aurelien dot Buhrig at tiempo-ic dot com>
- Cc: sid at sources dot redhat dot com
- Date: Wed, 17 Sep 2008 09:44:17 -0400
- Subject: Re: component_library object not found in lib
- References: <003301c918a3$6b4464b0$41cd2e10$@Buhrig@tiempo-ic.com>
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