R: [gnutls-dev][PATCH] libtasn1 has common symbol yyparse, etc.

Fabio.Fiorina@alcatel.it Fabio.Fiorina@alcatel.it
Thu Sep 19 14:06:02 2002


--openmail-part-063f8216-00000001
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline; filename="BDY.TXT"
	;Creation-Date="Thu, 19 Sep 2002 14:06:21 +0200"
Content-Transfer-Encoding: quoted-printable

Hello Dave,
thank you for this information.
This evening I'll check and tomorrow I'll be able to=20
send you the result.

Regards,
Fabio

=2D-------------------------------------------------------
Name: Fabio Fiorina
E-mail: Fabio Fiorina <Fabio.Fiorina@alcatel.it>

Telephone:+39 039 686 7503
Fax      :+39 039 686 3590
internal mail stop: 90
=2D-------------------------------------------------------

=2D----Messaggio originale-----
Da: ds [SMTP:ds@schleef.org]
Inviato: gioved=EC 19 settembre 2002 4.00
A: gnutls-dev
Cc: ds
Oggetto: [gnutls-dev][PATCH] libtasn1 has common symbol yyparse, etc.


While debugging an application based on GStreamer, I noticed
that libgstreamer and libtasn1 have a bunch of yacc symbols
that conflict.  After reading the bison (and flex) manuals,
I learned that one needs to use the -p flag to bison (-P for
flex) to tell bison to prefix each symbol, so they don't
conflict with applications that use the library.

Included is a patch to add a prefix to the yy* symbols.  I
*think* this is all that is necessary, after regenerating
ASN1.c, but let me know if there are any issues.  (E.g.,
like it breaks everything.)



dave...



Index: lib/Makefile.am
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs/gnutls/libtasn1/lib/Makefile.am,v
retrieving revision 1.6
diff -u -r1.6 Makefile.am
=2D-- lib/Makefile.am 14 Jun 2002 20:19:07 -0000 1.6
+++ lib/Makefile.am 19 Sep 2002 00:13:37 -0000
@@ -6,6 +6,8 @@
=20
 lib=5FLTLIBRARIES =3D libtasn1.la
=20
+BISON =3D bison -p=5Fasn=5Fyy
+
 # Separate so we can create the documentation
 COBJECTS =3D ASN1.y decoding.c gstr.c errors.c parser=5Faux.c \
            structure.c element.c coding.c
@@ -20,5 +22,8 @@
  do echo -n "Creating documentation for file $$i... " &&=20
=2E./doc/scripts/gdoc -tex $$i >> asn1-api.tex \
  && echo "ok"; \
  done
+
+ASN1.c: ASN1.y
+ $(BISON) $^ -o $@
=20
 all-local: asn1-api.tex

=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
Gnutls-dev mailing list
Gnutls-dev@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnutls-dev


--openmail-part-063f8216-00000001
Content-Type: application/ms-tnef
Content-Disposition: attachment; filename="WINMAIL.DAT"
Content-Transfer-Encoding: base64

eJ8+IukQAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5N
aWNyb3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEDkAYADAAAAAEAAAADABcAAQAA
ABwAAQOQBgAMAAAAAQAAAAMANgAAAAAAOgABBIABAEAAAABSOiBbZ251dGxzLWRldl1bUEFU
Q0hdIGxpYnRhc24xIGhhcyBjb21tb24gc3ltYm9sIHl5cGFyc2UsIGV0Yy4AcRYBA5AGAAwA
AAABAAAACwACAAEAAAAPAAEDkAYADAAAAAEAAAADAC4AAAAAADIAAQOQBgA0AAAAAQAAAAIB
MQABAAAAJAAAADIwMDIwOTE4MTg1OTUxLkEzMDAyNyhhKXN0bS5sYmwuZ292AIAJAQOQBgAQ
AAAAAQAAAEAAOQBAnCkcul/CAXcDAQ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