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

Kezdőlap
Üzenet törlése
Szerző: 1278
Dátum:  
Címzett: pcre-dev
Régi témák: [pcre-dev] [Bug 1278] New: pcre 8.31 fails to link with Sun Studio 12 on Solaris 10 Update 10
Tárgy: [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 #8 from doubletwist@??? 2013-06-05 20:03:12 ---
Unfortunately my "development" expertise ends approximately at the level of
running ./configure and occasionally editing the resulting Makefile and
noticing if something doesn't work as I expect.

With that said, if someone else has an idea of what the issue might be I'm
happy to test something on my Solaris systems.

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.  */


#######

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


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