Ich scheine mod_dontdothat unter Windows nicht kompilieren zu können. Hat es jemand geschafft, dies zu erreichen?
Editar:
Ich habe versucht, die Datei gemäß der Readme-Datei auf der Website zu kompilieren, und ich habe versucht, zusätzliche Bibliotheken hinzuzufügen, um die Link-Fehler zu reduzieren. Ich habe die folgenden installiert:
- Apache 2.2.9
- Visual Studio 2008
- ActivePerl
- apxs-win32 von ApacheLounge
- Subversion-Bibliotheken und -Kopfzeilen
Ich führe die folgende Befehlszeile aus:
C:\\Program Files\\Apache Software Foundation\\Apache2.2\\bin>apxs -c -I ..\\include\\
svn\_config.h -L ..\\lib -L C:\\Progra~1\\Micros~1.0\\VC\\lib -l apr-1.lib -l aprutil-
1.lib -l svn\_subr-1.lib -l libapr-1.lib -l libaprutil-1.lib -l libhttpd.lib -l l
ibsvn\_subr-1.lib -l mod\_dav.lib mod\_dontdothat.c
Dann erhalte ich die folgenden Fehler:
cl /nologo /MD /W3 /O2 /D WIN32 /D \_WINDOWS /D NDEBUG -I"C:\\PROGRA~1\\APACHE~
1\\Apache2.2\\include" /I"..\\include\\svn\_config.h" /c /Fomod\_dontdothat.lo mod\_d
ontdothat.c
mod\_dontdothat.c
link kernel32.lib /nologo /subsystem:windows /dll /machine:I386 /libpath:"C:\\PRO
GRA~1\\APACHE~1\\Apache2.2\\lib" /out:mod\_dontdothat.so /libpath:"..\\lib" /libpat
h:"C:\\Progra~1\\Micros~1.0\\VC\\lib" apr-1.lib aprutil-1.lib svn\_subr-1.lib libapr
-1.lib libaprutil-1.lib libhttpd.lib libsvn\_subr-1.lib mod\_dav.lib mod\_dontdot
hat.lo
Creating library mod\_dontdothat.lib and object mod\_dontdothat.exp
mod\_dontdothat.lo : error LNK2019: unresolved external symbol \_dav\_svn\_split\_uri
@32 referenced in function \_is\_this\_legal
svn\_subr-1.lib(io.obj) : error LNK2001: unresolved external symbol \_\_imp\_\_libint
l\_dgettext
svn\_subr-1.lib(subst.obj) : error LNK2001: unresolved external symbol \_\_imp\_\_lib
intl\_dgettext
svn\_subr-1.lib(config\_auth.obj) : error LNK2001: unresolved external symbol \_\_im
p\_\_libintl\_dgettext
svn\_subr-1.lib(time.obj) : error LNK2001: unresolved external symbol \_\_imp\_\_libi
ntl\_dgettext
svn\_subr-1.lib(nls.obj) : error LNK2001: unresolved external symbol \_\_imp\_\_libin
tl\_dgettext
svn\_subr-1.lib(dso.obj) : error LNK2001: unresolved external symbol \_\_imp\_\_libin
tl\_dgettext
svn\_subr-1.lib(path.obj) : error LNK2001: unresolved external symbol \_\_imp\_\_libi
ntl\_dgettext
svn\_subr-1.lib(prompt.obj) : error LNK2001: unresolved external symbol \_\_imp\_\_li
bintl\_dgettext
svn\_subr-1.lib(error.obj) : error LNK2019: unresolved external symbol \_\_imp\_\_lib
intl\_dgettext referenced in function \_print\_error
svn\_subr-1.lib(config.obj) : error LNK2001: unresolved external symbol \_\_imp\_\_li
bintl\_dgettext
svn\_subr-1.lib(utf.obj) : error LNK2001: unresolved external symbol \_\_imp\_\_libin
tl\_dgettext
svn\_subr-1.lib(cmdline.obj) : error LNK2001: unresolved external symbol \_\_imp\_\_l
ibintl\_dgettext
svn\_subr-1.lib(utf.obj) : error LNK2019: unresolved external symbol \_\_imp\_\_libin
tl\_sprintf referenced in function \_fuzzy\_escape
svn\_subr-1.lib(path.obj) : error LNK2001: unresolved external symbol \_\_imp\_\_libi
ntl\_sprintf
svn\_subr-1.lib(cmdline.obj) : error LNK2019: unresolved external symbol \_\_imp\_\_l
ibintl\_fprintf referenced in function \_svn\_cmdline\_init
svn\_subr-1.lib(config\_win.obj) : error LNK2019: unresolved external symbol \_\_imp
\_\_SHGetFolderPathA@20 referenced in function \_svn\_config\_\_win\_config\_path
svn\_subr-1.lib(config\_win.obj) : error LNK2019: unresolved external symbol \_\_imp
\_\_SHGetFolderPathW@20 referenced in function \_svn\_config\_\_win\_config\_path
svn\_subr-1.lib(config\_win.obj) : error LNK2019: unresolved external symbol \_\_imp
\_\_RegCloseKey@4 referenced in function \_svn\_config\_\_parse\_registry
svn\_subr-1.lib(config\_win.obj) : error LNK2019: unresolved external symbol \_\_imp
\_\_RegEnumKeyExA@32 referenced in function \_svn\_config\_\_parse\_registry
svn\_subr-1.lib(config\_win.obj) : error LNK2019: unresolved external symbol \_\_imp
\_\_RegOpenKeyExA@20 referenced in function \_svn\_config\_\_parse\_registry
svn\_subr-1.lib(config\_win.obj) : error LNK2019: unresolved external symbol \_\_imp
\_\_RegQueryValueExA@24 referenced in function \_parse\_section
svn\_subr-1.lib(config\_win.obj) : error LNK2019: unresolved external symbol \_\_imp
\_\_RegEnumValueA@32 referenced in function \_parse\_section
svn\_subr-1.lib(win32\_xlate.obj) : error LNK2019: unresolved external symbol \_\_im
p\_\_CoUninitialize@0 referenced in function \_svn\_subr\_\_win32\_xlate\_open
svn\_subr-1.lib(win32\_xlate.obj) : error LNK2019: unresolved external symbol \_\_im
p\_\_CoInitializeEx@8 referenced in function \_svn\_subr\_\_win32\_xlate\_open
svn\_subr-1.lib(win32\_xlate.obj) : error LNK2019: unresolved external symbol \_\_im
p\_\_CoCreateInstance@20 referenced in function \_get\_page\_id\_from\_name
svn\_subr-1.lib(nls.obj) : error LNK2019: unresolved external symbol \_\_imp\_\_libin
tl\_bindtextdomain referenced in function \_svn\_nls\_init
svn\_subr-1.lib(stream.obj) : error LNK2019: unresolved external symbol \_inflate
referenced in function \_read\_handler\_gz
svn\_subr-1.lib(stream.obj) : error LNK2019: unresolved external symbol \_inflateI
nit\_ referenced in function \_read\_handler\_gz
svn\_subr-1.lib(stream.obj) : error LNK2019: unresolved external symbol \_deflate
referenced in function \_write\_handler\_gz
svn\_subr-1.lib(stream.obj) : error LNK2019: unresolved external symbol \_deflateI
nit\_ referenced in function \_write\_handler\_gz
svn\_subr-1.lib(stream.obj) : error LNK2019: unresolved external symbol \_deflateE
nd referenced in function \_close\_handler\_gz
svn\_subr-1.lib(stream.obj) : error LNK2019: unresolved external symbol \_inflateE
nd referenced in function \_close\_handler\_gz
mod\_dontdothat.so : fatal error LNK1120: 21 unresolved externals
apxs:Error: Command failed with rc=6291456
.
Ich bin kein großer C-Guru, daher wäre ich für jede Hilfe bei der Suche nach diesen ungelösten externen Symbolen sehr dankbar!