[PyKDE] build error: SIP4 sip-snapshot-20060321 with debug option

Phil Thompson phil at riverbankcomputing.co.uk
Thu Mar 23 22:11:25 GMT 2006


On Thursday 23 March 2006 5:56 pm, m.gehling at gmx.de wrote:
> Hello,
>
> if i build SIP4 sip-snapshot-20060321 with debug option, a undefined
> reference breaks the build. ( windows XP, python2.4.2, mingw )
>
> marc gehling
>
>  ---- snip ----
> makefile:29: warning: overriding commands for target `.c.o'
> makefile:26: warning: ignoring old commands for target `.c.o'
> mingw32-make[1]: Entering directory `C:/qt/sip-snapshot-20060321/sipgen'
> gcc -c -O2 -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o main.o main.c
> gcc -c -O2 -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o transform.o
> transform.c
> gcc -c -O2 -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o gencode.o gencode.c
> gcc -c -O2 -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o heap.o heap.c
> gcc -c -O2 -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o parser.o parser.c
> gcc -c -O2 -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -o lexer.o lexer.c
> g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import
>  -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,console -Wl,-s -o sip.exe
> main.o transform.o gencode.o heap.o parser.o lexer.o
> mingw32-make[1]: Leaving directory `C:/qt/sip-snapshot-20060321/sipgen'
> makefile:29: warning: overriding commands for target `.c.o'
> makefile:26: warning: ignoring old commands for target `.c.o'
> mingw32-make[1]: Entering directory `C:/qt/sip-snapshot-20060321/siplib'
> gcc -c -g -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -IC:\python24\include -o
> siplib.o siplib.c
> gcc -c -g -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -IC:\python24\include -o
> qtlib.o qtlib.c
> gcc -c -g -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -IC:\python24\include -o
> threads.o threads.c
> gcc -c -g -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -IC:\python24\include -o
> objmap.o objmap.c
> g++ -c -g -w -DUNICODE -DQT_LARGEFILE_SUPPORT -I. -IC:\python24\include -o
> bool.o bool.cpp
> g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import
>  -Wl,-enable-runtime-pseudo-reloc -shared -Wl,-subsystem,console -o
> sip_d.pyd siplib.o qtlib.o threads.o objmap.o bool.o -LC:\python24\libs
> -lpython24_d siplib.o(.text+0xe): In function `initsip':
> C:/qt/sip-snapshot-20060321/siplib/siplib.c:372: undefined reference to
> `_imp__PyType_Type'
> siplib.o(.text+0x9f):C:/qt/sip-snapshot-20060321/siplib/siplib.c:383:
> undefined reference to `_imp__Py_InitModule4'

I don't think I've ever built a debug version of SIP under MinGW, but all the 
missing references are from the Python library. As you would have build this 
yourself I'd first check that this has been done correctly.

Phil




More information about the PyQt mailing list