Still problems with GPGME with multithread

Albrecht Dreß albrecht.dress@arcor.de
Wed Apr 2 19:40:02 2003


--f2QGlHpHGjS2mn6Y
Content-Type: text/plain; format=flowed; charset=ISO-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Am 02.04.03 15:31 schrieb(en) Marcus Brinkmann:
> I am not sure how you use libtool, but it seems you are using -lgpgme.la.

Nope. I build the list of libs (which is then fed into libtool) using the=
=20
command

BALSA_LIBS=3D"$BALSA_LIBS `gpgme-config --libs`"

and in this list -lpthread is *guaranteed* to come before gpgme.

> For a workaround, try without that and link to -lgpgme direcly, or even
> "-lpthread -lgpgme", so it doesn't consider the la script and maybe that
> helps to avoid the reordering.  As gpgme itself does not depend on other

Nope again. I tried the replace the command above with exactly this.=20
libtool gets the right sorting but still decides that libpthread must come=
=20
much later than libgpgme.

> I will consider the alternatives (fixing libtool or gpgme).

Either it's possible to *force* libtool linking a specific library before=
=20
an other one, or gpgme is simply not compatible with libtool (and, in=20
turn, with any software using it). Or say that libtool is crap...

> something that always should work really did work.  If it should always
> work
> and doesn't, then it is a bug and should be fixed.  Don't compromise on
> bugs!

IMHO, it's always nice to have some means for debugging...

> I don't really want to link at run time, there is no need for that here.

=2E.. as long as you don't use libtool ;-))

Cheers, Albrecht.



--=20
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Albrecht Dre=DF  -  Johanna-Kirchner-Stra=DFe 13  -  D-53123 Bonn (German=
y)
        Phone (+49) 228 6199571  -  mailto:albrecht.dress@arcor.de
_________________________________________________________________________
--f2QGlHpHGjS2mn6Y
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQA+ix8on/9unNAn/9ERAh0XAJ4ygMwAHix53onsQRTkgwRF53J8qACfWFkQ
CG7vkLHbFLM3febOYdhrD/Y=
=9fLl
-----END PGP SIGNATURE-----

--f2QGlHpHGjS2mn6Y--