Re: [pcre-dev] PCRE 7.6-RC1 Testing Release

Kezdőlap
Üzenet törlése
Szerző: Bob Rossi
Dátum:  
Címzett: pcre-dev
Tárgy: Re: [pcre-dev] PCRE 7.6-RC1 Testing Release
On Mon, Jan 21, 2008 at 03:52:14PM +0000, Philip Hazel wrote:
> I have put a test release for 7.6 in
>
> ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/Testing/pcre-7.6.tar.gz
> ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/Testing/pcre-7.6.tar.bz2
> ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/Testing/pcre-7.6.zip
>
> It contains Christian's CMake updates. I would like to make a proper
> release soon, because it also contains a patch for a potential buffer
> overflow problem.


OK, it seems like things have deteriorated a little on msys with
autotools. When I build with --disable-shared, I get this compile error,
  g++ -O2 -o pcre_stringpiece_unittest.exe pcre_stringpiece_unittest.o  ./.libs/libpcrecpp.a /home/bob/downloads/prcre/build/.libs/libpcre.a  
  gcc -DHAVE_CONFIG_H -I. -I../pcre-7.6-RC1     -O2 -MT pcredemo.o -MD -MP -MF .deps/pcredemo.Tpo -c -o pcredemo.o ../pcre-7.6-RC1/pcredemo.c
  mv -f .deps/pcredemo.Tpo .deps/pcredemo.Po
  /bin/sh ./libtool --tag=CC   --mode=link gcc  -O2   -o pcredemo.exe pcredemo.o libpcre.la 
  gcc -O2 -o pcredemo.exe pcredemo.o  ./.libs/libpcre.a  
  pcredemo.o:pcredemo.c:(.text+0xde): undefined reference to `_imp__pcre_compile'
  pcredemo.o:pcredemo.c:(.text+0x139): undefined reference to `_imp__pcre_exec'
  pcredemo.o:pcredemo.c:(.text+0x1a4): undefined reference to `_imp__pcre_fullinfo'
  pcredemo.o:pcredemo.c:(.text+0x2f8): undefined reference to `_imp__pcre_exec'
  pcredemo.o:pcredemo.c:(.text+0x450): undefined reference to `_imp__pcre_free'
  pcredemo.o:pcredemo.c:(.text+0x4a0): undefined reference to `_imp__pcre_free'
  collect2: ld returned 1 exit status
  make[1]: *** [pcredemo.exe] Error 1
  make[1]: Leaving directory `/home/bob/downloads/prcre/build'
  make: *** [all] Error 2


If I add -DPCRE_STATIC to the compile command. Things work. Do you need
a patch or do you know how to fix this?

When I run the testsuite I get
===================
2 of 5 tests failed
===================
Test 2: API and error handling (not Perl compatible)
FAIL: RunTest
FAIL: RunGrepTest

Do you need more info on this?

Second, if I build with shared library support, the build is OK.
However, 5 out of 5 tests fail. I never took the time to make sure that
the shared libraries work properly on mingw. I sorta strapped for time
now, so perhaps we fix this after 7.6 is released?

Thanks,
Bob Rossi