Re: [pcre-dev] Release candidate for 8.10

Top Page
Delete this message
Author: Sheri
Date:  
To: pcre-dev
Subject: Re: [pcre-dev] Release candidate for 8.10
On 6/4/2010 11:29 AM, Philip Hazel wrote:
> On Thu, 3 Jun 2010, Sheri wrote:
>
>
>> Not getting any errors on the pcretest suite or our application's test
>> run, but I did get this new and worrisome message during the Msys build:
>>
>> [ 93%] Building C object CMakeFiles/pcreposix.dir/pcreposix.obj
>> Linking C shared library pcreposix.dll
>> Info: resolving _pcre_free by linking to __imp__pcre_free (auto-import)
>> Creating library file: libpcreposix.dll.a
>> c:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe:
>> warning: auto-importing has been activated without --enable-auto-import
>> specified on the command line.
>> This should work unless it involves constant data structures referencing
>> symbols from auto-imported DLLs.
>> [ 93%] Built target pcreposix
>>
> What the heck does that mean? Anybody on this list know? Anything that
> can be done to avoid it?
>
> I wonder if this was caused by this change:
>
> 12. pcreposix.c included pcre.h before including pcre_internal.h. This caused a
>      conflict in the definition of PCRE_EXP_DECL. I have removed the include of
>      pcre.h as pcre_internal.h includes pcre.h itself. (This may be a bit of
>      historical tidying that never got done.)

>
> Please could you try inserting
>
>    #include "pcre.h"

>
> in pcreposix.c immediately before the include of pcre_internal.h and see
> if this makes the problem go away? Or maybe the include should come further up:
>
> ---------------------------------------------------------------------------
>
> <========insert here (A)
>
> /* Ensure that the PCREPOSIX_EXP_xxx macros are set appropriately for
> compiling these functions. This must come before including pcreposix.h, where
> they are set for an application (using these functions) if they have not
> previously been set. */
>
> #if defined(_WIN32)&& !defined(PCRE_STATIC)
> # define PCREPOSIX_EXP_DECL extern __declspec(dllexport)
> # define PCREPOSIX_EXP_DEFN __declspec(dllexport)
> #endif
>
> <========or here? (B)
>
> #include "pcre_internal.h"
> #include "pcreposix.h"
> ---------------------------------------------------------------------------
>
> In previous releases, it was inserted at (B). Perhaps the correct thing
> is to have it at (A) rather than deleting it entirely. However, note
> that I am kind of guessing...
>
> Philip
>
>


The warning is not presented if I do either of the above [(A) or (B)]
when building.

I forgot to mention that there are also some new anomolies when
configuring in cmake-gui.

After naming the source and build directories (build directory is a new
dir which cmake abligingly creates, and I'm using the Msys makefiles
option for cmake as usual), I click configure (which tests for various
things and finally presents user configurable options). After selecting
all options, I click configure again, and then generate.

Well during initial cmake testing some new messages (see below) are
shown. Afterwards there is a messagebox shown that the configuration may
be defective, but the options still get presented. Once I select all
desired options and click configure the second time, then generate, all
seems well. ?


[...]
Looking for inttypes.h
CMake Error: Remove failed on file:
C:/pcre-8.10/pcre-8.10-RC1/Msys_Shared2/CMakeFiles/CMakeTmp/CMakeFiles/TargetDirectories.txt:
System Error: No such file or directory
Looking for inttypes.h - found
[...]
Looking for C++ include bits/type_traits.h
CMake Error: Failed to create CMakeList file for
C:/pcre-8.10/pcre-8.10-RC1/Msys_Shared2/CMakeFiles/CMakeTmp/CMakeLists.txt
CMake Error: : System Error: Permission denied
CMake Error: Remove failed on file:
C:/pcre-8.10/pcre-8.10-RC1/Msys_Shared2/CMakeFiles/CMakeTmp/CMakeLists.txt:
System Error: No such file or directory
Looking for C++ include bits/type_traits.h - not found
[...]
Looking for strerror
CMake Error: Remove failed on file:
C:/pcre-8.10/pcre-8.10-RC1/Msys_Shared2/CMakeFiles/CMakeTmp/CMakeFiles/cmTryCompileExec.dir/DependInfo.cmake:
System Error: No such file or directory
Looking for strerror - found
[...]
Looking for strtoq
CMake Error: Remove failed on file:
C:/pcre-8.10/pcre-8.10-RC1/Msys_Shared2/CMakeFiles/CMakeTmp/CMakeCache.txt:
System Error: No such file or directory
Looking for strtoq - not found
[...]
CMake Error: Unable to open check cache file for write.
C:/pcre-8.10/pcre-8.10-RC1/Msys_Shared2/CMakeFiles/CMakeTmp/CMakeFiles/cmake.check_cache
CMake Error: Internal CMake error, TryCompile configure of cmake failed
CMake Error: Remove failed on file:
C:/pcre-8.10/pcre-8.10-RC1/Msys_Shared2/CMakeFiles/CMakeTmp/CMakeFiles/cmake.check_cache:
System Error: No such file or directory
Check size of unsigned long long - failed

Regards,
Sheri