Re: Compiling dbghelp with MinGW

2008-12-21 Thread Eric Pouech
Francois Gouget a écrit :
> On Sat, 13 Dec 2008, Eric Pouech wrote:
> [...]
>   
>>>  1) #ifdef-out regexp support if regex.h is missing? Maybe with an
>>> autoconf check for regcomp()?
>>>  2) Add some reg*() stubs that do nothing if regex.h & co are missing?
>>>   
> [...]
>   
>> 1,2) most of the dbghelp code will be of no use if no regex support is 
>> present
>> 
>
> It still feels wrong for Wine to fail compiling just because a regular 
> expression library is missing. If we can compile Wine without X we 
> should be able to compile it without a regular expression library.
>   
I'd rather say a system without regex support is broken. even macos 
seems to have it ;-)
but I agree the configure output should be clearer about this dependancy
A+

-- 
Eric Pouech
"The problem with designing something completely foolproof is to underestimate 
the ingenuity of a complete idiot." (Douglas Adams)






Re: Compiling dbghelp with MinGW

2008-12-18 Thread Francois Gouget
On Sat, 13 Dec 2008, Eric Pouech wrote:
[...]
> >  1) #ifdef-out regexp support if regex.h is missing? Maybe with an
> > autoconf check for regcomp()?
> >  2) Add some reg*() stubs that do nothing if regex.h & co are missing?
[...]
> 1,2) most of the dbghelp code will be of no use if no regex support is present

It still feels wrong for Wine to fail compiling just because a regular 
expression library is missing. If we can compile Wine without X we 
should be able to compile it without a regular expression library.


[...]
> *** new option *** 5) use a regex lib for mingw... that work(ed) just fine
> http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=73286&release_id=140957

I will install it. It would be nice if they had a Debian package for it.


-- 
Francois Gouget   http://fgouget.free.fr/
 The software said it requires Win95 or better, so I installed Linux.




Re: Compiling dbghelp with MinGW

2008-12-13 Thread Eric Pouech
Francois Gouget a écrit :
> When I compile Wine with MinGW, the first error I get is in 
> dlls/dbghelp/source.c. Yet it seems to me that there is no fundamental 
> reason that would prevent dbghelp from working on Windows (i.e. it's not 
> in the 'ntdll' category).
>
> So the error is that although MinGW does not have regex.h and 
> HAVE_REGEX_H is not set, we still use regex_t in many places and call 
> the corresponding functions: regcomp(), regexec() and regfree().
>
> So how should we handle this?
>
>  1) #ifdef-out regexp support if regex.h is missing? Maybe with 
> an autoconf check for regcomp()?
>  2) Add some reg*() stubs that do nothing if regex.h & co are missing?
>  3) Use some Windows API that provides regular expression support? Is 
> there one? Is it implemented already?
>  4) Reimplement regular expression support straight in dbghelp? Maybe by 
> importing some c files from another project with a compatible 
> license?
>
>   
1,2) most of the dbghelp code will be of no use if no regex support is 
present
3) doesn't exist to my knowledge
4) I don't see a reason to clutter wine's code with that

*** new option *** 5) use a regex lib for mingw... that work(ed) just fine
http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=73286&release_id=140957
we could be a bit more verbose in mingw configuration for this case

A+

-- 
Eric Pouech
"The problem with designing something completely foolproof is to underestimate 
the ingenuity of a complete idiot." (Douglas Adams)