[pcre-dev] [Bug 664] ABI breakage in PCRE 7.6

Kezdőlap
Üzenet törlése
Szerző: Daniel Johnson
Dátum:  
Címzett: pcre-dev
Tárgy: [pcre-dev] [Bug 664] ABI breakage in PCRE 7.6
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=664




--- Comment #15 from Daniel Johnson <daniel@???> 2008-03-22 21:42:37 ---
(In reply to comment #14)
> } I think there are two options going forward:
>
> A third option was just pointed out to me: just make this alias weak.
> Can you test if this works on your os x configuration? To test it,
> replace the alias line in pcrecpp.cc with this one:
>
> extern Arg no_arg __attribute__((weak, alias("_ZN7pcrecpp2RE6no_argE")));
>
> If you try it, let us know how it works.
>
> craig
>


No, I already tried that. While running the tests I get:

dyld: Symbol not found: __ZN7pcrecpp6no_argE
Referenced from:
/sw/src/fink.build/pcre-7.6-3/pcre-7.6/.libs/libpcrecpp.0.dylib
Expected in: dynamic lookup

The symbol __ZN7pcrecpp6no_argE gets created, but is marked undefined in the
symbol table. But I guess that's kind of the point of weak symbols. :)
Something has to actually define it at runtime. I don't really have another
suggestion for you, I'm afraid. Linking issues aren't my speciality.

Daniel


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email