Build error: can't build test "tst_qdjangofastcgiserver.cpp".

30 views
Skip to first unread message

alber...@gmail.com

unread,
Jul 28, 2014, 7:01:01 AM7/28/14
to qdj...@googlegroups.com, brag...@mail.ru
I exclude this test from building, and then build was successfully ended.

How can I build this test?

Platform: win7, qt 5.3.1 (full install-ready based on MinGW package from qt-project.org).

making echo:
g++ -Wl,-s -Wl,-subsystem,console -mthreads -o release\tst_qdjangofastcgiserver.exe release/tst_qdjangofastcgiserver.o  -L../../../src/http -lqdjango-http0 -LC:/_dev/_qt/Qt5.3.1/5.3/mingw482_32/lib -lQt5Test -lQt5Network -lQt5Core
release/tst_qdjangofastcgiserver.o:tst_qdjangofastcgiserver.cpp:(.text+0x259e): undefined reference to `FCGI_Header_setRequestId(FCGI_Header*, unsigned short)'
release/tst_qdjangofastcgiserver.o:tst_qdjangofastcgiserver.cpp:(.text+0x25be): undefined reference to `FCGI_Header_setContentLength(FCGI_Header*, unsigned short)'
release/tst_qdjangofastcgiserver.o:tst_qdjangofastcgiserver.cpp:(.text+0x2d78): undefined reference to `FCGI_Header_setContentLength(FCGI_Header*, unsigned short)'
release/tst_qdjangofastcgiserver.o:tst_qdjangofastcgiserver.cpp:(.text+0x2e63): undefined reference to `FCGI_Header_setContentLength(FCGI_Header*, unsigned short)'
release/tst_qdjangofastcgiserver.o:tst_qdjangofastcgiserver.cpp:(.text+0x2f37): undefined reference to `FCGI_Header_setContentLength(FCGI_Header*, unsigned short)'
release/tst_qdjangofastcgiserver.o:tst_qdjangofastcgiserver.cpp:(.text+0x411e): undefined reference to `FCGI_Header_contentLength(FCGI_Header*)'
release/tst_qdjangofastcgiserver.o:tst_qdjangofastcgiserver.cpp:(.text+0x412d): undefined reference to `FCGI_Header_requestId(FCGI_Header*)'
release/tst_qdjangofastcgiserver.o:tst_qdjangofastcgiserver.cpp:(.text+0x4a66): undefined reference to `FCGI_Header_setRequestId(FCGI_Header*, unsigned short)'
release/tst_qdjangofastcgiserver.o:tst_qdjangofastcgiserver.cpp:(.text+0x4af2): undefined reference to `FCGI_Header_setContentLength(FCGI_Header*, unsigned short)'
release/tst_qdjangofastcgiserver.o:tst_qdjangofastcgiserver.cpp:(.text+0x4bb2): undefined reference to `FCGI_Header_setContentLength(FCGI_Header*, unsigned short)'
release/tst_qdjangofastcgiserver.o:tst_qdjangofastcgiserver.cpp:(.text+0x4f56): undefined reference to `FCGI_Header_setRequestId(FCGI_Header*, unsigned short)'
release/tst_qdjangofastcgiserver.o:tst_qdjangofastcgiserver.cpp:(.text+0x4ff7): undefined reference to `FCGI_Header_setContentLength(FCGI_Header*, unsigned short)'
release/tst_qdjangofastcgiserver.o:tst_qdjangofastcgiserver.cpp:(.text+0x50b7): undefined reference to `FCGI_Header_setRequestId(FCGI_Header*, unsigned short)'
release/tst_qdjangofastcgiserver.o:tst_qdjangofastcgiserver.cpp:(.text+0x50ca): undefined reference to `FCGI_Header_setContentLength(FCGI_Header*, unsigned short)'
release/tst_qdjangofastcgiserver.o:tst_qdjangofastcgiserver.cpp:(.text+0x554d): undefined reference to `FCGI_Header_setRequestId(FCGI_Header*, unsigned short)'
release/tst_qdjangofastcgiserver.o:tst_qdjangofastcgiserver.cpp:(.text+0x55d3): undefined reference to `FCGI_Header_setContentLength(FCGI_Header*, unsigned short)'
release/tst_qdjangofastcgiserver.o:tst_qdjangofastcgiserver.cpp:(.text+0x58c6): undefined reference to `FCGI_Header_setRequestId(FCGI_Header*, unsigned short)'
release/tst_qdjangofastcgiserver.o:tst_qdjangofastcgiserver.cpp:(.text+0x5967): undefined reference to `FCGI_Header_setContentLength(FCGI_Header*, unsigned short)'
release/tst_qdjangofastcgiserver.o:tst_qdjangofastcgiserver.cpp:(.text+0x5a27): undefined reference to `FCGI_Header_setContentLength(FCGI_Header*, unsigned short)'
release/tst_qdjangofastcgiserver.o:tst_qdjangofastcgiserver.cpp:(.text+0x5dd6): undefined reference to `FCGI_Header_setRequestId(FCGI_Header*, unsigned short)'
release/tst_qdjangofastcgiserver.o:tst_qdjangofastcgiserver.cpp:(.text+0x5e77): undefined reference to `FCGI_Header_setContentLength(FCGI_Header*, unsigned short)'
C:/_dev/_qt/Qt5.3.1/Tools/mingw482_32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bin/ld.exe: release/tst_qdjangofastcgiserver.o: bad reloc address 0x4 in section `.data'
collect2.exe: error: ld returned 1 exit status
Makefile.Release:77: recipe for target 'release\tst_qdjangofastcgiserver.exe' failed
mingw32-make[4]: *** [release\tst_qdjangofastcgiserver.exe] Error 1
mingw32-make[4]: Leaving directory 'c:/_dev/_qt/_tmp/qdjango-master/tests/http/qdjangofastcgiserver'
Makefile:34: recipe for target 'release' failed
mingw32-make[3]: *** [release] Error 2
mingw32-make[3]: Leaving directory 'c:/_dev/_qt/_tmp/qdjango-master/tests/http/qdjangofastcgiserver'
Makefile:43: recipe for target 'sub-qdjangofastcgiserver-make_first' failed
mingw32-make[2]: *** [sub-qdjangofastcgiserver-make_first] Error 2
mingw32-make[2]: Leaving directory 'c:/_dev/_qt/_tmp/qdjango-master/tests/http'
Makefile:65: recipe for target 'sub-http-make_first' failed
mingw32-make[1]: *** [sub-http-make_first] Error 2
mingw32-make[1]: Leaving directory 'c:/_dev/_qt/_tmp/qdjango-master/tests'
Makefile:83: recipe for target 'sub-tests-make_first-ordered' failed
mingw32-make: *** [sub-tests-make_first-ordered] Error 2

Jeremy Lainé

unread,
Jul 28, 2014, 9:16:03 AM7/28/14
to qdj...@googlegroups.com
On 07/28/2014 01:01 PM, alber...@gmail.com wrote:
> I exclude this test from building, and then build was successfully ended.
>
> How can I build this test?
>

It looks as though the symbols needed to be exported. Can you try pulling the latest
version and build again?

Cheers,
Jeremy

alber...@gmail.com

unread,
Jul 28, 2014, 10:09:05 AM7/28/14
to qdj...@googlegroups.com, brag...@mail.ru
понедельник, 28 июля 2014 г., 22:16:03 UTC+9 пользователь Jeremy Lainé написал:
Thanks for reply! Yes, I Can. The latest version build completely.
Reply all
Reply to author
Forward
0 new messages