If the re module is used in some module test then it might fail with: Can't load '../../lib/auto/re/re.so' for module re: ../../lib/auto/re/re.so: undefined symbol: Perl_deb at ../../lib/XSLoader.pm line 75. The reason is that MakeMaker runs the test with PERL_DL_NONLAZY. The quick way to provoke this failure is simply by running: PERL_DL_NONLAZY=1 perl -Mre=debug -e1 The patch below fixes the problem. It is relative to perl-5.6.1. Regards, Gisle --- ext/re/re.xs.dist Thu Jun 7 16:54:29 2001 +++ ext/re/re.xs Thu Jun 7 16:53:18 2001 @@ -1,12 +1,17 @@ /* We need access to debugger hooks */ #ifndef DEBUGGING # define DEBUGGING +# define WAS_NOT_DEBUGGING #endif #define PERL_NO_GET_CONTEXT #include "EXTERN.h" #include "perl.h" #include "XSUB.h" + +#ifdef WAS_NOT_DEBUGGING +void Perl_deb(pTHX_ const char* pat, ...) { } +#endif extern regexp* my_regcomp (pTHX_ char* exp, char* xend, PMOP* pm); extern I32 my_regexec (pTHX_ regexp* prog, char* stringarg, char* strend,Thread Next