Results 1 to 2 of 2

Thread: Compile error with Qt3.2.3

  1. #1
    Join Date
    Nov 2006
    Posts
    1
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Compile error with Qt3.2.3

    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?

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Compile error with Qt3.2.3

    I would report this to the task tracker found here: http://www.trolltech.com/developer/task-tracker .

Similar Threads

  1. Compile Errors
    By luffy27 in forum Qt Programming
    Replies: 3
    Last Post: 4th November 2006, 05:26
  2. Project won't compile under Windows (works under Linux)
    By philski in forum Qt Programming
    Replies: 7
    Last Post: 14th September 2006, 15:29
  3. how to correctly compile threads support?
    By srhlefty in forum Installation and Deployment
    Replies: 9
    Last Post: 25th June 2006, 19:15
  4. Can't Compile Tutorial 7
    By Reenen in forum Newbie
    Replies: 10
    Last Post: 9th February 2006, 14:06
  5. TIP: If Qt4.1 debug compile doesn't work...
    By pthomas in forum Newbie
    Replies: 3
    Last Post: 13th January 2006, 14:36

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.