trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: October 2011

How can I make sure libkjs builds and links with libpcre ?

From: Nick Leverton <nick@...>
Date: Mon, 31 Oct 2011 17:44:16 +0000 (UTC)
Hi,

I'm looking into my issue 569 about Javascript regexp breakage.  I think
the problem is that libkjs isn't finding libpcre and hence only allows
non-perl-compatible regexes.  ldd shows a big difference between libkjs
3.5.12:

ldd /opt/trinity/lib/libkjs.so.1.2.0 | sort
	/lib/ld-linux.so.2 (0xb7844000)
        libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7520000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7502000)
        libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb7666000)
        libpcre.so.3 => /lib/libpcre.so.3 (0xb7782000)
        libpcreposix.so.3 => /usr/lib/libpcreposix.so.3 (0xb77b5000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb768c000)
        linux-gate.so.1 =>  (0xb7843000)

and 3.5.13:
	(snip 40 lines of library linkages which doesn't show libpcre)

libpcre-dev is definitely installed by the Debian build system, but
apparently not being picked up by whatever is in place of ./configure
nowadays.  I guess it might need a cmake expert's advice, so would
appreciate any help !

Nick
-- 
Serendipity: http://www.leverton.org/blosxom (last update 29th March 2010)
        "The Internet, a sort of ersatz counterfeit of real life"
                -- Janet Street-Porter, BBC2, 19th March 1996