[pcre-dev] [Bug 1278] pcre 8.31 fails to link with Sun Studi…

Etusivu
Poista viesti
Lähettäjä: Philip Hazel
Päiväys:  
Vastaanottaja: pcre-dev
Vanhat otsikot: [pcre-dev] [Bug 1278] New: pcre 8.31 fails to link with Sun Studio 12 on Solaris 10 Update 10
Aihe: [pcre-dev] [Bug 1278] pcre 8.31 fails to link with Sun Studio 12 on Solaris 10 Update 10
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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




--- Comment #9 from Philip Hazel <ph10@???> 2013-06-07 18:39:33 ---
On Wed, 5 Jun 2013, doubletwist@??? wrote:

> I'm guessing this is the offending part of the configure [and configure.ac]:
>
>
> ######
> # Older versions of pcre defined pcrecpp::no_arg, but in new versions
> # it's called pcrecpp::RE::no_arg.  For backwards ABI compatibility,
> # we want to make one an alias for the other.  Different systems do
> # this in different ways.  Some systems, for instance, can do it via
> # a linker flag: -alias (for os x 10.5) or -i (for os x <=10.4).
> OLD_LDFLAGS="$LDFLAGS"
> for flag in "-alias,__ZN7pcrecpp2RE6no_argE,__ZN7pcrecpp6no_argE" \
>             "-i__ZN7pcrecpp6no_argE:__ZN7pcrecpp2RE6no_argE"; do
>   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alias support in the
> linker" >&5
> $as_echo_n "checking for alias support in the linker... " >&6; }
>   LDFLAGS="$OLD_LDFLAGS -Wl,$flag"
>   # We try to run the linker with this new ld flag.  If the link fails,
>   # we give up and remove the new flag from LDFLAGS.
>   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
> /* end confdefs.h.  */

>
> #######


Well found! I agree that is likely to be the problem, But why is it
failing?

> Though I'm unsure as to why it results in a correct Makefile on my
> sparc system but not my i386 system.


Different releases of something? It looks as though the test run of the
linker with the -i flag is not failing, as I assume it should on Solaris
as the comment implies it is an OS X thing. Can you try a way out test,
and replace -i__ZN7pcrecpp6no_argE:__ZN7pcrecpp2RE6no_argE with
something else (e.g. -i__junkjunkjunk) just to see what happens?

Philip


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