bug-grep
[Top][All Lists]
Advanced

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

[patch #7017] dlopen PCRE


From: Mike Frysinger
Subject: [patch #7017] dlopen PCRE
Date: Wed, 10 Mar 2010 23:24:35 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100304 Gentoo Firefox/3.5.8

Follow-up Comment #7, patch #7017 (project grep):

did you post the wrong file ?  the latest patch still doesnt check the result
of AC_CHECK_LIB(), and it's dlopening libpcre.so.

hardcoding any filename isnt going to work.  the SONAME you should be
hardcoding is whatever matches the pcre.h you're including.  on your system it
may be libpcre.so.3, but it isnt on mine.  your best bet is to attempt a
configure link test against -lpcre and find out what SONAME it picked up.

an alternative is to do a compile test to figure out what API the pcre.h is
providing (PCRE_MAJOR/PCRE_MINOR), and maintain a small table in the configure
script.  for example, 7.9 provides "libpcre.so.0".

i know it sucks, but this is the reality of trying to implement this sort of
dynamic API.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?7017>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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