[Debtags-devel] Converting to {debtags,tagcoll} 1.0 TagDB::outputSystem
Enrico Zini
enrico@enricozini.org
Sun, 12 Jun 2005 18:09:07 +0200
--3uo+9/B/ebqu+fSQ
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
On Sun, Jun 12, 2005 at 02:08:31PM +0200, Benjamin Mesing wrote:
> Where the call causing the exception is Debtags::Environment::init(false, false);
What is the uncaught exception? I checked the throw(...) chain and they
seem to be allright: the constructur of Vocabulary can only throw
SystemException, and that seems to be correctly passed on until the top,
unless you have a throw() in your init.
> Some words towards the circumstances. As you can see the function is
> called in the process of initilalizing a dynamic library (i.e. in
> __attribute__ ((constructor)) void init()). This is because the debtags
> part for packagesearch is provided by a dynamically loaded plugin.
> I don't know if this is significant, but the both the debtags plugin and
> the main application are linked against lib{tagcoll,debtags}1. In the
> former versions, I had only to link the main application, because I
> linked against dynamic libraries. With the static ones this leaded to
> unresolved external symbols. Might it be possible that linking against
> lib{tagcoll,debtags}1 twice brings me into trouble?
I can't see how that could annoy.
Try using $(LIBDEBTAGS1_PICLIBS) and $(LIBTAGCOLL1_PICLIBS) instead of
$(LIBDEBTAGS1_LIBS) and $(LIBTAGCOLL1_LIBS) when linking against
libdebtags1 and libtagcoll1 for the plugin. That'll put PIC code in
your plugin, which I imagine you want to have.
Ciao,
Enrico who wants to know who is the criminal that decided that creating
libraries needs to be so damn insane
--
GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <enrico@enricozini.org>
--3uo+9/B/ebqu+fSQ
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFCrF4j9LSwzHl+v6sRAg4AAJ48Gneml1WQ8g0C0Drxci1cmrq9cQCfTbj4
LE9fp5FqIiEQ/c189BedtHI=
=SL6B
-----END PGP SIGNATURE-----
--3uo+9/B/ebqu+fSQ--