Re: [pcre-dev] Here is pcre-7.1-RC2 for you to play with

Startseite
Nachricht löschen
Autor: Bob Rossi
Datum:  
To: Philip Hazel
CC: pcre-dev
Neue Treads: [pcre-dev] Replies to many
Betreff: Re: [pcre-dev] Here is pcre-7.1-RC2 for you to play with
On Tue, Mar 20, 2007 at 12:17:26PM +0000, Philip Hazel wrote:
> I have just put a second release candidate for 7.1 in
>
> ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/Testing/pcre-7.1-RC2.tar.gz
> ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/Testing/pcre-7.1-RC2.tar.bz2
> ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/Testing/pcre-7.1-RC2.zip


OK, some good and bad news.

-- static linking on mingw --

I just built a static version of pcre on mingw out-of-the-box! I previously
had a patched version of the build sytem to work on mingw, and I had to configure
like this,
./configure
pcre_have_cpp_headers="0" \
pcre_have_bits_type_traits="0" \
pcre_have_type_traits="0" \
...
to work around bugs in the make system. Now I can do an out-of-the-box
./configure && make && make install and it works perfectly.

Unfortunately, make check seems to fail. I've attached the output. Is it
obvious what is wrong here?

-- dynamic linking on mingw --

Same results as static.

-- static linking on cygwin --

Now, I've tried to build a static version of pcre on cygwin, with these
configure options,
$ ../pcre-7.1-RC2/configure --prefix=$PWD/../prefix-static
--enable-static --disable-shared
and then
make

I ended up with this error,
/bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../pcre-7.1-RC2     -g -O2 -MT pcre_xclass.lo -MD -MP -MF
.deps/pcre_xclass.Tpo -c -o pcre_xclass.lo ../pcre-7.1-RC2/pcre_xclass.c
 gcc -DHAVE_CONFIG_H -I. -I../pcre-7.1-RC2 -g -O2 -MT pcre_xclass.lo -MD
 -MP -MF .deps/pcre_xclass.Tpo -c ../pcre-7.1-RC2/pcre_xclass.c -o
 pcre_xclass.o
 mv -f .deps/pcre_xclass.Tpo .deps/pcre_xclass.Plo
 cp pcre_chartables.c.dist pcre_chartables.c
 cp: cannot stat `pcre_chartables.c.dist': No such file or directory
 make[1]: *** [pcre_chartables.c] Error 1
 make[1]: Leaving directory `/home/bobbybrasko/download/pcre/build'
 make: *** [all] Error 2


It appears that the cp command in the Makefile,
  pcre_chartables.c: pcre_chartables.c.dist
          cp pcre_chartables.c.dist pcre_chartables.c
should be,
  pcre_chartables.c: $(top_srcdir)/pcre_chartables.c.dist
          cp $(top_srcdir)/pcre_chartables.c.dist pcre_chartables.c
with that change it works properly.


Is that the proper change? I just realized that I also have this problem
with mingw, it's just that when you do an in tree build you don't see
it. It only becomes obvious when out of tree builds are done.

The test suite passes on cygwin.

-- dynamic linking on cygwin --

This works just like static building.

Thanks,
Bob Rossi