PDA

View Full Version : Compile error with Qt3.2.3



redsprite
26th December 2006, 08:44
OS is HP-UX 11.11 PA-RISC,with patch
GOLDAPPS11i B.11.11.0612.459 Applications Patches for HP-UX11i v1, December 2006
GOLDBASE11i B.11.11.0612.459 Base Patches for HP-UX 11i v1,December 2006。

QT version is 3.2.3。

compile with gcc 4.1.1。also install the LD patch:PHSS_35379 1.0 ld(1) and linker tools cumulative patch

Step 1:./configure -platform hpux-g++ -thread,
Completed, then

Step2: gmake
with error:
# gmake
gmake[1]: Entering directory `/oracle/qt'
cd qmake && gmake
gmake[2]: Entering directory `/oracle/qt/qmake'
gmake[2]: `qmake' is up to date.
gmake[2]: Leaving directory `/oracle/qt/qmake'
cd src/moc && gmake
gmake[2]: Entering directory `/oracle/qt/src/moc'
gmake[2]: Nothing to be done for `first'.
gmake[2]: Leaving directory `/oracle/qt/src/moc'
cd src && gmake
gmake[2]: Entering directory `/oracle/qt/src'
g++ -c -Wall -W -O2 -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE -fPIC -DQT_SHARED -
DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_THREAD_SUPPORT -DQT_NO_CUPS -DQT_NO_NIS -D
_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DQT_NO_XINERAMA -DQT_NO_XCURSOR -DQT_N
O_XRANDR -DQT_NO_XRENDER -DQT_NO_XFTFREETYPE -DQT_NO_XKB -DQT_NO_IMAGEIO_MNG -DQ
T_NO_IMAGEIO_JPEG -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA -DQT_NO_STYLE_INTERLACE -
DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -I/oracle/qt/mkspecs/hpux-g++ -I. -
I3rdparty/libpng -I3rdparty/zlib -I../include -I.moc/release-shared-mt/ -o .obj/
release-shared-mt/qsocketdevice_unix.o network/qsocketdevice_unix.cpp
network/qsocketdevice_unix.cpp: In function 'int qt_socket_accept(int, sockaddr*
, int*)':
network/qsocketdevice_unix.cpp:47: error: cannot convert 'int*' to 'socklen_t*'
for argument '3' to 'int accept(int, sockaddr*, socklen_t*)'
network/qsocketdevice_unix.cpp: In member function 'int QSocketDevice:ption(QS
ocketDevice::Option) const':
network/qsocketdevice_unix.cpp:259: error: cannot convert 'int*' to 'socklen_t*'
for argument '5' to 'int getsockopt(int, int, int, void*, socklen_t*)'
network/qsocketdevice_unix.cpp: In member function 'Q_LONG QSocketDevice::bytesA
vailable() const':
network/qsocketdevice_unix.cpp:576: warning: dereferencing type-punned pointer w
ill break strict-aliasing rules
network/qsocketdevice_unix.cpp: In member function 'Q_LONG QSocketDevice::waitFo
rMore(int, bool*) const':
network/qsocketdevice_unix.cpp:607: warning: dereferencing type-punned pointer w
ill break strict-aliasing rules
network/qsocketdevice_unix.cpp: In member function 'virtual Q_LONG QSocketDevice
::readBlock(char*, Q_ULONG)':
network/qsocketdevice_unix.cpp:662: error: cannot convert 'int*' to 'socklen_t*'
for argument '6' to 'ssize_t recvfrom(int, void*, size_t, int, sockaddr*, sockl
en_t*)'
network/qsocketdevice_unix.cpp: In member function 'void QSocketDevice::fetchCon
nectionParameters()':
network/qsocketdevice_unix.cpp:907: error: cannot convert 'int*' to 'socklen_t*'
for argument '3' to 'int getsockname(int, sockaddr*, socklen_t*)'
network/qsocketdevice_unix.cpp:912: error: cannot convert 'int*' to 'socklen_t*'
for argument '3' to 'int getpeername(int, sockaddr*, socklen_t*)'
gmake[2]: *** [.obj/release-shared-mt/qsocketdevice_unix.o] Error 1
gmake[2]: Leaving directory `/oracle/qt/src'
gmake[1]: *** [sub-src] Error 2
gmake[1]: Leaving directory `/oracle/qt'
gmake: *** [init] Error 2

Could you give me some suggestion for solving this error?

e8johan
19th January 2007, 10:36
I would report this to the task tracker found here: http://www.trolltech.com/developer/task-tracker .