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

トップ ページ
このメッセージを削除
著者: Philip Hazel
日付:  
To: Bob Rossi
CC: pcre-dev
題目: Re: [pcre-dev] PCRE 7.6-RC1 Testing Release
On Mon, 21 Jan 2008, Bob Rossi wrote:

> 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?


I need a patch, I'm afraid. I have no idea how to fix this. It works
fine on Linux.

> 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?


Yes, please.

> 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?


Yes, that sounds best, in fact. If 7.6 is no worse than 7.5 in this
regard, I want to put it out because of the bug fix in the code.

Philip

--
Philip Hazel