You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Addison Elliott <ad...@gmail.com> on 2012/10/21 07:34:36 UTC

[users@httpd] Undefined reference to ap_subreq_core_filter_handle on Windows

I plan on modifying the mod_autoindex module to fit my needs. I have
Apache 2.2.22, which I installed from the MSI installer. I had the
libraries included along with apache so they are official. I also use
gcc 4.7.1 to build the modules. I have created and tested various
other modules using gcc and they have worked fine. It seems that
whenever I try to build mod_autoindex though, this error occurs:
"undefined reference to `_imp__ap_subreq_core_filter_handle'".

This is the commands that my IDE executes:
gcc.exe -Wall  -pthread    -I"C:\Program Files (x86)\Apache Software
Foundation\Apache2.2\include" -I"C:\Program Files (x86)\Apache
Software Foundation\Apache2.2\lib"  -c
C:\Users\Addison\Desktop\mod_autoindex\main.c -o obj\main.o

g++.exe -shared -Wl,--output-def=libmod_autoindex.dll.def
-Wl,--out-implib=libmod_autoindex.dll.a -Wl,--dll -L"C:\Program Files
(x86)\Apache Software Foundation\Apache2.2\include" -L"C:\Program
Files (x86)\Apache Software Foundation\Apache2.2\lib"  obj\main.o   -o
mod_autoindex.dll  "C:\Program Files (x86)\Apache Software
Foundation\Apache2.2\lib\libhttpd.lib" "C:\Program Files (x86)\Apache
Software Foundation\Apache2.2\lib\libapr-1.lib"

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org