#3063 closed defect (fixed)
BUG: qt3 fails to build
Reported by: | z3022016@… | Owned by: | rshaw@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.0 |
Keywords: | Cc: | dhjr@… | |
Port: |
Description
Error output:
---> Building qt3 with target INSTALLPREFIX=\"/opt/local\" SINGLE_MODULE=\"-single_module\" symlinks src-qmake src-moc sub-src sub-tools Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_qt3/work/qt- x11-free-3.1.2" && CFLAGS='-I/opt/local/include' CPPFLAGS='-I/opt/local/include' DYLD_LIBRARY_PATH='/usr/X11R6/lib:/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_qt3/work/qt- x11-free-3.1.2/lib:/opt/local/lib' INSTALL_ROOT= INSTALLPREFIX='/opt/local' LDFLAGS='-L/usr/ X11R6/lib -L. -L/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_qt3/work/qt- x11-free-3.1.2/lib -L/opt/local/lib' QMAKESPEC='/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_qt3/work/qt- x11-free-3.1.2/mkspecs/darwin-g++' QTDIR='/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_qt3/work/qt- x11-free-3.1.2' worksrcpath='/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_qt3/work/qt- x11-free-3.1.2' prefix='/opt/local' portname='qt3' make INSTALLPREFIX="/opt/local" SINGLE_MODULE="-single_module" symlinks src-qmake src-moc sub-src sub-tools" returned error 2 Command output: workspace/qworkspace.cpp:1005: warning: passing negative value '-0x00000000000000001' for converting 1 of 'uint QWidget::testWFlags(uint) const' workspace/qworkspace.cpp: In member function `void QWorkspace::handleUndock(QDockWindow*)': workspace/qworkspace.cpp:791: warning: 'score$o' may be used uninitialized in this function workspace/qworkspace.cpp:791: warning: 'score$x' may be used uninitialized in this function c++ -c -fPIC -fno-common -pipe -fno-exceptions -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_qt3/work/qt- x11-free-3.1.2/include -I/opt/local/include -I/usr/X11R6/include/freetype2 -Wall -W -Os -fPIC - DQT_SHARED -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQ_OS_DARWIN -DQ_OS_FREEBSD - DQT_THREAD_SUPPORT -DQT_NO_NIS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 - DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_IMAGEIO_PNG - DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA - DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -I/opt/local/ var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_qt3/work/qt- x11-free-3.1.2/mkspecs/darwin-g++ -I. -I/opt/local/include/freetype2 -I/opt/local/include/qt -I../ include -I/usr/X11R6/include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release- shared-mt/qdns.o network/qdns.cpp /opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_qt3/work/qt- x11-free-3.1.2/bin/moc network/qftp.cpp -o .moc/release-shared-mt/qftp.moc c++ -c -fPIC -fno-common -pipe -fno-exceptions -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_qt3/work/qt- x11-free-3.1.2/include -I/opt/local/include -I/usr/X11R6/include/freetype2 -Wall -W -Os -fPIC - DQT_SHARED -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQ_OS_DARWIN -DQ_OS_FREEBSD - DQT_THREAD_SUPPORT -DQT_NO_NIS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 - DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_IMAGEIO_PNG - DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA - DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -I/opt/local/ var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_qt3/work/qt- x11-free-3.1.2/mkspecs/darwin-g++ -I. -I/opt/local/include/freetype2 -I/opt/local/include/qt -I../ include -I/usr/X11R6/include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release- shared-mt/qftp.o network/qftp.cpp c++ -c -fPIC -fno-common -pipe -fno-exceptions -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_qt3/work/qt- x11-free-3.1.2/include -I/opt/local/include -I/usr/X11R6/include/freetype2 -Wall -W -Os -fPIC - DQT_SHARED -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQ_OS_DARWIN -DQ_OS_FREEBSD - DQT_THREAD_SUPPORT -DQT_NO_NIS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 - DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_IMAGEIO_PNG - DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA - DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -I/opt/local/ var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_qt3/work/qt- x11-free-3.1.2/mkspecs/darwin-g++ -I. -I/opt/local/include/freetype2 -I/opt/local/include/qt -I../ include -I/usr/X11R6/include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release- shared-mt/qhttp.o network/qhttp.cpp c++ -c -fPIC -fno-common -pipe -fno-exceptions -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_qt3/work/qt- x11-free-3.1.2/include -I/opt/local/include -I/usr/X11R6/include/freetype2 -Wall -W -Os -fPIC - DQT_SHARED -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQ_OS_DARWIN -DQ_OS_FREEBSD - DQT_THREAD_SUPPORT -DQT_NO_NIS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 - DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_IMAGEIO_PNG - DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA - DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -I/opt/local/ var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_qt3/work/qt- x11-free-3.1.2/mkspecs/darwin-g++ -I. -I/opt/local/include/freetype2 -I/opt/local/include/qt -I../ include -I/usr/X11R6/include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release- shared-mt/qhostaddress.o network/qhostaddress.cpp c++ -c -fPIC -fno-common -pipe -fno-exceptions -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_qt3/work/qt- x11-free-3.1.2/include -I/opt/local/include -I/usr/X11R6/include/freetype2 -Wall -W -Os -fPIC - DQT_SHARED -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQ_OS_DARWIN -DQ_OS_FREEBSD - DQT_THREAD_SUPPORT -DQT_NO_NIS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 - DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_IMAGEIO_PNG - DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA - DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -I/opt/local/ var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_qt3/work/qt- x11-free-3.1.2/mkspecs/darwin-g++ -I. -I/opt/local/include/freetype2 -I/opt/local/include/qt -I../ include -I/usr/X11R6/include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release- shared-mt/qnetwork.o network/qnetwork.cpp c++ -c -fPIC -fno-common -pipe -fno-exceptions -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_qt3/work/qt- x11-free-3.1.2/include -I/opt/local/include -I/usr/X11R6/include/freetype2 -Wall -W -Os -fPIC - DQT_SHARED -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQ_OS_DARWIN -DQ_OS_FREEBSD - DQT_THREAD_SUPPORT -DQT_NO_NIS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 - DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_IMAGEIO_PNG - DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA - DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -I/opt/local/ var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_qt3/work/qt- x11-free-3.1.2/mkspecs/darwin-g++ -I. -I/opt/local/include/freetype2 -I/opt/local/include/qt -I../ include -I/usr/X11R6/include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release- shared-mt/qserversocket.o network/qserversocket.cpp c++ -c -fPIC -fno-common -pipe -fno-exceptions -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_qt3/work/qt- x11-free-3.1.2/include -I/opt/local/include -I/usr/X11R6/include/freetype2 -Wall -W -Os -fPIC - DQT_SHARED -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQ_OS_DARWIN -DQ_OS_FREEBSD - DQT_THREAD_SUPPORT -DQT_NO_NIS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 - DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_IMAGEIO_PNG - DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA - DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -I/opt/local/ var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_qt3/work/qt- x11-free-3.1.2/mkspecs/darwin-g++ -I. -I/opt/local/include/freetype2 -I/opt/local/include/qt -I../ include -I/usr/X11R6/include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release- shared-mt/qsocket.o network/qsocket.cpp c++ -c -fPIC -fno-common -pipe -fno-exceptions -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_qt3/work/qt- x11-free-3.1.2/include -I/opt/local/include -I/usr/X11R6/include/freetype2 -Wall -W -Os -fPIC - DQT_SHARED -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQ_OS_DARWIN -DQ_OS_FREEBSD - DQT_THREAD_SUPPORT -DQT_NO_NIS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 - DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_IMAGEIO_PNG - DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA - DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -I/opt/local/ var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_qt3/work/qt- x11-free-3.1.2/mkspecs/darwin-g++ -I. -I/opt/local/include/freetype2 -I/opt/local/include/qt -I../ include -I/usr/X11R6/include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/release- shared-mt/qsocketdevice.o network/qsocketdevice.cpp c++ -c -fPIC -fno-common -pipe -fno-exceptions -I/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_qt3/work/qt- x11-free-3.1.2/include -I/opt/local/include -I/usr/X11R6/include/freetype2 -Wall -W -Os -fPIC - DQT_SHARED -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQ_OS_DARWIN -DQ_OS_FREEBSD - DQT_THREAD_SUPPORT -DQT_NO_NIS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 - DQT_NO_IMAGEIO_MNG -DQT_NO_IMAGEIO_JPEG -DQT_NO_IMAGEIO_PNG - DQT_BUILTIN_GIF_READER=1 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_AQUA - DQT_NO_STYLE_INTERLACE -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_COMPACT -I/opt/local/ var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_x11_qt3/work/qt- x11-free-3.1.2/mkspecs/darwin-g++ -I. -I/opt/local/include/freetype2 -I/opt/local/include/qt -I../ include -I/usr/X11R6/include -I/usr/X11R6/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: invalid conversion from 'int*' to 'socklen_t*' network/qsocketdevice_unix.cpp:47: error: initializing argument 3 of 'int accept(int, sockaddr*, socklen_t*)' network/qsocketdevice_unix.cpp: In member function `int QSocketDevice::option (QSocketDevice::Option) const': network/qsocketdevice_unix.cpp:258: error: invalid conversion from 'int*' to 'socklen_t*' network/qsocketdevice_unix.cpp:258: error: initializing argument 5 of 'int getsockopt(int, int, int, void*, socklen_t*)' network/qsocketdevice_unix.cpp: In member function `virtual Q_LONG QSocketDevice::readBlock(char*, Q_ULONG)': network/qsocketdevice_unix.cpp:660: error: invalid conversion from 'int*' to 'socklen_t*' network/qsocketdevice_unix.cpp:660: error: initializing argument 6 of 'ssize_t recvfrom(int, void*, size_t, int, sockaddr*, socklen_t*)' network/qsocketdevice_unix.cpp: In member function `void QSocketDevice::fetchConnectionParameters()': network/qsocketdevice_unix.cpp:894: error: invalid conversion from 'int*' to 'socklen_t*' network/qsocketdevice_unix.cpp:894: error: initializing argument 3 of 'int getsockname(int, sockaddr*, socklen_t*)' network/qsocketdevice_unix.cpp:898: error: invalid conversion from 'int*' to 'socklen_t*' network/qsocketdevice_unix.cpp:898: error: initializing argument 3 of 'int getpeername(int, sockaddr*, socklen_t*)' make[1]: * [.obj/release-shared-mt/qsocketdevice_unix.o] Error 1 make: * [sub-src] Error 2
Change History (6)
comment:1 Changed 20 years ago by ed@…
comment:2 Changed 19 years ago by z3022016@…
Cc: | dhjr@… added |
---|
comment:3 Changed 19 years ago by z3022016@…
* Bug 3166 has been marked as a duplicate of this bug. *
comment:4 Changed 19 years ago by ake@…
(In reply to comment #1)
(In reply to comment #0)
network/qsocketdevice_unix.cpp:47: error: invalid conversion from 'int*' to 'socklen_t*'
These errors can be eliminated by editing qplatformdefs.h (in mkspecs/darwin-g++) - QT_SOCKLEN_T is defined as int, it should be socklen_t for Tiger
Unfortunately, there are other problems ahead...
The uic tool does not work (it has problems with loading dynamic libraries), so none of the other
tools
(designer, etc.) can be built. I am looking at this ( -bind_at_load helps a bit, so does moving the libcrypt libraries out of /opt/local/lib, but there appears to be a missing definition in libJPEG) but I
don't
yet understand enough about Frameworks.
Here's some info about that libJPEG problem. http://bugzilla.opendarwin.org/show_bug.cgi?id=3042
comment:6 Changed 19 years ago by z3022016@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
Builds for me now. Marking fixed.
(In reply to comment #0)
These errors can be eliminated by editing qplatformdefs.h (in mkspecs/darwin-g++) - QT_SOCKLEN_T is defined as int, it should be socklen_t for Tiger
Unfortunately, there are other problems ahead...
The uic tool does not work (it has problems with loading dynamic libraries), so none of the other tools (designer, etc.) can be built. I am looking at this ( -bind_at_load helps a bit, so does moving the libcrypt libraries out of /opt/local/lib, but there appears to be a missing definition in libJPEG) but I don't yet understand enough about Frameworks.