Hi! I'm new to Apache, Cygwin, and this group. I spent considerable
time searching the www and usenet before posting, but of course, being
a newbie, I could be making the same old question that has been
answered time and time again. If that's the case, I apologize in
advance.
I can't compile Apache modules under Cygwin.
I have the latest Cygwin, the latest Apache (not win32) source, all
downloaded today. I have been able to compile Apache and make it run.
But I can't generate a .so file. First I had libtool telling me
"libtool: link: warning: undefined symbols not allowed in
i686-pc-cygwin shared libraries". After I forced libtool into
forgetting such restriction I got, predictably, "undefined reference to
`_ap_hook_handler'".
I have found references to this problem for older versions of Cygwin,
and the solution was using a patched version of ld.exe. I tried but it
wouldn't work because of incompatibility with the current version of
Cygwin.
The strange thing is that configure is "checking whether the gcc linker
(/usr/i686-pc-cygwin/bin/ld.exe) supports shared libraries... yes".
I'm stumped. I know it has to work because the win32 version of Apache
comes with .so files, so somehow they can be generated...
Any help will be very much appreciated!
>> Stay informed about: Compiling modules under Cygwin