This is the mail archive of the sid@sourceware.org mailing list for the SID project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: component_library object not found in lib


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]