bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using regex on OS/X


From: Paul Eggert
Subject: Re: Using regex on OS/X
Date: Tue, 27 Sep 2005 15:33:33 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

James Gallagher <address@hidden> writes:

> On linux (RHEL3) I had to add strcase to the
> modules/regex file under 'depends-on'.

Thanks.  I installed this:

2005-09-27  Paul Eggert  <address@hidden>

        * modules/regex (Depends-on): Add strcase.

--- modules/regex       25 Aug 2005 19:45:05 -0000      1.11
+++ modules/regex       27 Sep 2005 22:25:55 -0000      1.12
@@ -17,6 +17,7 @@ extensions
 gettext-h
 malloc
 restrict
+strcase
 
 configure.ac:
 gl_REGEX


> On Mac OS/X 10.3 I get:
>
> ld: Undefined symbols:
> _re_compile_fastmap
> _re_compile_pattern
> _re_match_2
> _re_search_2
>
> I can get these errors to go away by commenting out the AC_DEFINEs for
> them in regex.m4.

Sorry, I don't see why those errors would occur.  Can you please
explain them?

When that problem occurs, does your config.h contain "#define
re_compile_fastmap rpl_re_compile_fastmap"?  If so, how can any object
code possibly be referring to _re_compile_fastmap (or to
re_compile_fastmap)?

Also, why are these four symbols special?  Why isn't there a similar
problem with (say) re_set_registers?

Can you please investigate which of your object modules are referring
to _re_compile_fastmap (or to re_compile_fastmap), and why they are
doing so?  Likewise with _re_set_registers (or re_set_registers).  I'd
like to understand the underyling problem before committing a fix.

You can use "nm foo.o" to see what names foo.o uses.

Thanks.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]