petdance/scratch — Issue #18: Annoying cygwin/mingw cfg readline popup
Author: petdance
Created: 2011-11-07 04:20:26+00:00
State: open
Labels: configure, Pri-trivial, Sev-low, todo

mingw with cygwin also installed but not in the path leads an annoying modal warning popup about the missing cygreadline dll, because the mingw libpath search also includes the cygwin /lib path.
auto::readline - Does your platform support readline...Can't spawn ".\test_4744.exe": Bad file descriptor at lib/Parrot/Configure/Utils.pm line 86.
.............done.

Either us a win32 trick to ignore this process invocation warning about a missing dll, or remove the wrong cygwin libpaths from the linker search path.

{{{
auto::readline - Does your platform support readline...

gcc -Wl,--verbose test_892.o -lreadline -o test_892.exe -lmsvcrt -lmoldname -kernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -version -lodbc32 -lodbccp32 -lgmp .\test_892.exe

...
attempt to open c:\strawberry\c\mingw32\bin\../lib\libreadline.a failed
...
attempt to open /mingw/lib\libreadline.a failed
attempt to open /usr/local/lib/libreadline.dll.a failed
attempt to open /usr/local/lib/readline.dll.a failed
attempt to open /usr/local/lib/libreadline.a failed
attempt to open /usr/local/lib/readline.lib failed
attempt to open /usr/local/lib/libreadline.dll failed
attempt to open /usr/local/lib/readline.dll failed
attempt to open /usr/local/lib\libreadline.a failed
attempt to open /lib/libreadline.dll.a succeeded
(/lib/libreadline.dll.a)d000367.o
(/lib/libreadline.dll.a)d000000.o
(/lib/libreadline.dll.a)d000584.o

}}}

/lib/libreadline.dll.a is a cygwin path, and mingw should not even know about that mountpoint

Originally http://trac.parrot.org/parrot/ticket/322