Courage has asked for the wisdom of the Perl Monks concerning the following question:

Hello, all!

Afetr I compiled latest perl (perl@16925) for cygwin, I found out that Tk extension that is built for X11 have some problems loading Tk.dll.

I used 'perl Makefile.PL x' to prepare makefile to build Tk. Compiling goes okay, and even runs mostly okay, but when I try to 'perl Makefile.PL' for any other even perl-only Tk widget, I get following error messages:

d:\work\perlcompile\perl@16925mgnu\perl.exe: *** unable to remap d:\wo +rk\perlcompile\perl@16925mgnu\comp-ext\Tk800.024\blib\arch\auto\Tk\Tk +.dll to same address as parent -- 0x20500000 d:\perl-tests\perl@16925mgnu\bin\perl.exe: *** unable to remap d:\perl +-tests\perl@16925mgnu\lib\site_perl\5.8.0\cygwin-multi\auto\Tk\Tk.dll + to same address as parent -- 0x20500000 d:\perl-tests\perl@16925mgnu\bin\perl.exe: *** unable to remap d:\perl +-tests\perl@16925mgnu\lib\site_perl\5.8.0\cygwin-multi\auto\Tk\Tk.dll + to same address as parent -- 0x20500000
Strangely enough, just copying Tk perl extension (which fails to pass standard build process) into its normal place makes it work.

I've searched on yahoo.com for 'unable to remap' problem and found that this is mostly Cygwin's fault.

Does anyone have a solution to this problem? Have anyone seen similar things? May be there exists a small configuration option that cures a problem?

Courage, the Cowardly Dog.

Replies are listed 'Best First'.
Re: Tk.dll problems on cygwin
by Courage (Parson) on Jun 01, 2002 at 16:02 UTC