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

Top Pagina
Delete this message
Auteur: Dennis Clarke
Datum:  
Aan: pcre-dev
Oude Onderwerpen: [pcre-dev] [Bug 1278] New: pcre 8.31 fails to link with Sun Studio 12 on Solaris 10 Update 10
Onderwerp: [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 #10 from Dennis Clarke <dclarke@???> 2013-06-09 19:22:24 ---
> ------- You are receiving this mail because: -------
> You are the QA contact for the bug.
> You reported 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
>


darn .. I forgot about this ... pretty sure I was able to get around that
rather neatly. I will go back have have a look at what I did and post
a reply. Sorry for not following up sooner .. been up to my ears in
code from work .. you know the story.

Dennis


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