Hello,

OpenChange uses a generated scanner for utf8_conversion. ATM, it does
not use a prefix for the generated scanner functions. This causes a
name collision while another (similarly buggy) module is also loaded
and one of these makes a call to any of the generated functions. FWIW,
it fails in the compile stage itself if you are trying to statically
link OpenChange to another (similarly buggy) module.

I've attached a patch which uses a reasonable prefix for the generated
scanner functions. Thanks to Simon Brys (cc'd) for the patch.

Propose this be committed upstream.

Thanks.

-Suman
Index: Makefile
===================================================================
--- Makefile	(revision 921)
+++ Makefile	(working copy)
@@ -289,7 +289,7 @@
 
 libmapi/utf8_convert.yy.c: 	libmapi/utf8_convert.l
 	@echo "Generating $@"
-	@$(FLEX) -t $< > $@
+	@$(FLEX) -Plibmapi_utf8_convert_ -t $< > $@
 
 # Avoid warnings:
 libmapi/utf8_convert.yy.o: CFLAGS=
_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel

Reply via email to