Наши проекты:
Журнал · Discuz!ML · Wiki · DRKB · Помощь проекту |
||
ПРАВИЛА | FAQ | Помощь | Поиск | Участники | Календарь | Избранное | RSS |
[3.145.191.169] |
|
Сообщ.
#1
,
|
|
|
Скачиваю исходники из: https://svn.apache.org/repos/asf/quetzalcoatl/mod_python/trunk/
Установил MinGW, а также VS 2010. Компилирую так: c:\mod_python\dist>python setup.py.in build --compiler=mingw32 Сначала идет пара экранов warning-ов, а потом: c:\MinGW\bin\gcc.exe -mno-cygwin -shared -s c:\mod_python\src\mod_python.o c:\mod_python\src\_apachemodule.o c:\mod_python\src\connobject.o c:\mod_python\src\filterobject.o c:\mod_python\src\hlist.o c:\mod_python\src\hlistobject.o c:\mod_python\src\requestobject.o c:\mod_python\s rc\serverobject.o c:\mod_python\src\tableobject.o c:\mod_python\src\util.o c:\mod_python\src\finfoobject.o c:\mod_python\src\version.rc.o c: \mod_python\src\mod_python_so.def "-Lc:\Program Files\Apache Software Foundation\Apache2.2\lib" -Lc:\Python\libs -Lc:\Python\PCbuild -llibht tpd -llibapr-1 -llibaprutil-1 -lws2_32 -lpython27 -lmsvcr90 -o build\lib.win32-2.7\mod_python_so.pyd c:\mod_python\src\mod_python.o:mod_python.c:(.text+0x3a2): undefined reference to `_imp__MpServer_FromServer' c:\mod_python\src\mod_python.o:mod_python.c:(.text+0x624): undefined reference to `_imp__MpServer_FromServer' c:\mod_python\src\mod_python.o:mod_python.c:(.text+0x971): undefined reference to `_imp__apr_dynamic_fn_retrieve' c:\mod_python\src\mod_python.o:mod_python.c:(.text+0x1011): undefined reference to `_imp__MpConn_FromConn' c:\mod_python\src\mod_python.o:mod_python.c:(.text+0x101d): undefined reference to `_imp__MpHList_FromHLEntry' c:\mod_python\src\mod_python.o:mod_python.c:(.text+0x110d): undefined reference to `_imp__MpConn_FromConn' c:\mod_python\src\mod_python.o:mod_python.c:(.text+0x1696): undefined reference to `_imp__ap_real_exit_code' c:\mod_python\src\mod_python.o:mod_python.c:(.text+0x16a8): undefined reference to `_imp__ap_real_exit_code' c:\mod_python\src\mod_python.o:mod_python.c:(.text+0x2d85): undefined reference to `_imp__MpRequest_FromRequest' c:\mod_python\src\mod_python.o:mod_python.c:(.text+0x3463): undefined reference to `_imp__MpFilter_FromFilter' c:\mod_python\src\mod_python.o:mod_python.c:(.text+0x37b7): undefined reference to `_imp__MpFilter_FromFilter' c:\mod_python\src\mod_python.o:mod_python.c:(.text+0x3f06): undefined reference to `_imp__MpHList_FromHLEntry' c:\mod_python\src\_apachemodule.o:_apachemodule.c:(.text+0x44): undefined reference to `_imp__MpServer_Type' c:\mod_python\src\_apachemodule.o:_apachemodule.c:(.text+0x1f6): undefined reference to `_imp__MpServer_Type' c:\mod_python\src\_apachemodule.o:_apachemodule.c:(.text+0x3cf): undefined reference to `_imp__MpServer_Type' c:\mod_python\src\_apachemodule.o:_apachemodule.c:(.text+0x593): undefined reference to `_imp__MpFinfo_New' c:\mod_python\src\_apachemodule.o:_apachemodule.c:(.text+0x6f1): undefined reference to `_imp__MpServer_Type' c:\mod_python\src\_apachemodule.o:_apachemodule.c:(.text+0x7df): undefined reference to `_imp__ap_server_root' c:\mod_python\src\_apachemodule.o:_apachemodule.c:(.text+0xfbb): undefined reference to `_imp__MpServer_Type' c:\mod_python\src\_apachemodule.o:_apachemodule.c:(.text+0x102d): undefined reference to `_imp__ap_conftree' c:\mod_python\src\_apachemodule.o:_apachemodule.c:(.text+0x104d): undefined reference to `_imp__MpTable_Type' c:\mod_python\src\_apachemodule.o:_apachemodule.c:(.text+0x1056): undefined reference to `_imp__MpTableIter_Type' c:\mod_python\src\_apachemodule.o:_apachemodule.c:(.text+0x105f): undefined reference to `_imp__MpServer_Type' c:\mod_python\src\_apachemodule.o:_apachemodule.c:(.text+0x1068): undefined reference to `_imp__MpConn_Type' c:\mod_python\src\_apachemodule.o:_apachemodule.c:(.text+0x1071): undefined reference to `_imp__MpRequest_Type' c:\mod_python\src\_apachemodule.o:_apachemodule.c:(.text+0x107a): undefined reference to `_imp__MpFilter_Type' c:\mod_python\src\_apachemodule.o:_apachemodule.c:(.text+0x1083): undefined reference to `_imp__MpHList_Type' c:\mod_python\src\_apachemodule.o:_apachemodule.c:(.text+0x1104): undefined reference to `_imp__MpTable_Type' c:\mod_python\src\connobject.o:connobject.c:(.text+0x2ac): undefined reference to `_imp__apr_bucket_type_eos' c:\mod_python\src\connobject.o:connobject.c:(.text+0x442): undefined reference to `_imp__apr_bucket_type_flush' c:\mod_python\src\connobject.o:connobject.c:(.text+0x6c8): undefined reference to `_imp__MpServer_FromServer' c:\mod_python\src\connobject.o:connobject.c:(.text+0x8ef): undefined reference to `_imp__MpConn_Type' c:\mod_python\src\connobject.o:connobject.c:(.text+0x91e): undefined reference to `_imp__MpTable_FromTable' c:\mod_python\src\filterobject.o:filterobject.c:(.text+0x184): undefined reference to `_imp__MpHList_FromHLEntry' c:\mod_python\src\filterobject.o:filterobject.c:(.text+0x6c3): undefined reference to `_imp__apr_bucket_type_eos' c:\mod_python\src\filterobject.o:filterobject.c:(.text+0x8ba): undefined reference to `_imp__apr_bucket_type_flush' c:\mod_python\src\filterobject.o:filterobject.c:(.text+0x99e): undefined reference to `_imp__MpFilter_Type' c:\mod_python\src\hlistobject.o:hlistobject.c:(.text+0x245): undefined reference to `_imp__MpHList_Type' c:\mod_python\src\requestobject.o:requestobject.c:(.text+0x2ad): undefined reference to `_imp__MpFinfo_FromFinfo' c:\mod_python\src\requestobject.o:requestobject.c:(.text+0x803): undefined reference to `_imp__MpFinfo_Type' c:\mod_python\src\requestobject.o:requestobject.c:(.text+0x9c9): undefined reference to `_imp__MpConn_FromConn' c:\mod_python\src\requestobject.o:requestobject.c:(.text+0xa05): undefined reference to `_imp__MpServer_FromServer' c:\mod_python\src\requestobject.o:requestobject.c:(.text+0xe8c): undefined reference to `_imp__apr_dynamic_fn_retrieve' c:\mod_python\src\requestobject.o:requestobject.c:(.text+0x17b1): undefined reference to `_imp__apr_dynamic_fn_retrieve' c:\mod_python\src\requestobject.o:requestobject.c:(.text+0x2103): undefined reference to `_imp__MpTable_FromTable' c:\mod_python\src\requestobject.o:requestobject.c:(.text+0x2132): undefined reference to `_imp__MpTable_FromTable' c:\mod_python\src\requestobject.o:requestobject.c:(.text+0x2c47): undefined reference to `_imp__MpRequest_Type' c:\mod_python\src\requestobject.o:requestobject.c:(.text+0x2c9c): undefined reference to `_imp__MpTable_FromTable' c:\mod_python\src\serverobject.o:serverobject.c:(.text+0x7): undefined reference to `_imp__ap_scoreboard_image' c:\mod_python\src\serverobject.o:serverobject.c:(.text+0x2a): undefined reference to `_imp__ap_my_generation' c:\mod_python\src\serverobject.o:serverobject.c:(.text+0x159): undefined reference to `_imp__MpRequest_Type' c:\mod_python\src\serverobject.o:serverobject.c:(.text+0x32d): undefined reference to `_imp__MpTable_FromTable' c:\mod_python\src\serverobject.o:serverobject.c:(.text+0x353): undefined reference to `_imp__MpTable_FromTable' c:\mod_python\src\serverobject.o:serverobject.c:(.text+0x3b3): undefined reference to `_imp__MpServer_Type' c:\mod_python\src\tableobject.o:tableobject.c:(.text+0x12b4): undefined reference to `_imp__MpTable_Type' c:\mod_python\src\tableobject.o:tableobject.c:(.text+0x12ed): undefined reference to `_imp__MpTable_Type' c:\mod_python\src\util.o:util.c:(.text+0x48e): undefined reference to `_imp__ap_loaded_modules' c:\mod_python\src\finfoobject.o:finfoobject.c:(.text+0xafb): undefined reference to `_imp__MpFinfo_Type' c:\mod_python\src\finfoobject.o:finfoobject.c:(.text+0xb34): undefined reference to `_imp__MpFinfo_Type' collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1 |
Сообщ.
#2
,
|
|
|
Судя по ошибкам, не подключена какая-то библиотека.
Добавлено Хотя возможно, что просто отсутствует какое-то конфигурирующее макроопоределение. |
Сообщ.
#3
,
|
|
|
Какое конфигурирующее макроопоределение это может быть?
Чуть позже выяснил, что mod_python объявлен deprecated, поэтому перешел на mod_wsgi. |