[kde-freebsd] x11-toolkits/qt4-gui fails with png and/or zlib.h off64_t
Doug Barton
dougb at FreeBSD.org
Tue Mar 30 21:22:23 CEST 2010
Testing it again I see that I didn't go far enough up to find the real
error, sorry Dirk.
The actual problem seems to be with zlib.h. This is from qt4-gui:
c++ -c -pipe -g -g -g -I../../include/Qt -I../../include -D_REENTRANT
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -g
-fvisibility=hidden -fvisibility-inlines-hidden -Wall -W
-I/usr/local/include -I/usr/local/include/freetype2 -fPIC -DQT_SHARED
-DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII
-DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_HAVE_MMX
-DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_NO_OPENTYPE
-DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP
-DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60
-DQ_INTERNAL_QAPP_SRC -DQT_CORE_LIB -D_LARGEFILE64_SOURCE
-D_LARGEFILE_SOURCE -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I.
-I../../include/QtCore -I../../include -I../../include/QtGui
-I.rcc/debug-shared -I../3rdparty/xorg -I/usr/local/include/freetype2
-I../3rdparty/harfbuzz/src -Idialogs -I.moc/debug-shared
-I/usr/local/include -I.uic/debug-shared -I/usr/local/include -o
.obj/debug-shared/qxpmhandler.o image/qxpmhandler.cpp
c++ -c -pipe -g -g -g -I../../include/Qt -I../../include -D_REENTRANT
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -g
-fvisibility=hidden -fvisibility-inlines-hidden -Wall -W
-I/usr/local/include -I/usr/local/include/freetype2 -fPIC -DQT_SHARED
-DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII
-DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_HAVE_MMX
-DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_NO_OPENTYPE
-DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP
-DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60
-DQ_INTERNAL_QAPP_SRC -DQT_CORE_LIB -D_LARGEFILE64_SOURCE
-D_LARGEFILE_SOURCE -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I.
-I../../include/QtCore -I../../include -I../../include/QtGui
-I.rcc/debug-shared -I../3rdparty/xorg -I/usr/local/include/freetype2
-I../3rdparty/harfbuzz/src -Idialogs -I.moc/debug-shared
-I/usr/local/include -I.uic/debug-shared -I/usr/local/include -o
.obj/debug-shared/qpnghandler.o image/qpnghandler.cpp
In file included from /usr/local/include/png.h:391,
from image/qpnghandler.cpp:53:
/usr/include/zlib.h:1561: error: 'off64_t' does not name a type
/usr/include/zlib.h:1562: error: 'off64_t' does not name a type
/usr/include/zlib.h:1563: error: 'off64_t' does not name a type
/usr/include/zlib.h:1564: error: 'off64_t' has not been declared
/usr/include/zlib.h:1565: error: 'off64_t' has not been declared
And when I tried to rebuild all qt4 stuff from scratch, I get this from
qmake:
c++ -c -pipe -g -g -g -g -fPIC -Wall -W -DQT_BOOTSTRAPPED
-DQT_LITE_UNICODE -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII
-DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_GEOM_VARIANT -DQT_NO_LIBRARY
-DQT_NO_QOBJECT -DQT_NO_STL -DQT_NO_SYSTEMLOCALE -DQT_NO_TEXTSTREAM
-DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE
-D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE
-I/usr/local/share/qt4/mkspecs/freebsd-g++ -I. -I../../../include
-I../../../include/QtCore -I../../../include/QtXml -I/usr/local/include
-o .obj/debug-static/qbytearray.o ../../corelib/tools/qbytearray.cpp
In file included from ../../corelib/tools/qbytearray.cpp:54:
/usr/include/zlib.h:1561: error: 'off64_t' does not name a type
/usr/include/zlib.h:1562: error: 'off64_t' does not name a type
/usr/include/zlib.h:1563: error: 'off64_t' does not name a type
/usr/include/zlib.h:1564: error: 'off64_t' has not been declared
/usr/include/zlib.h:1565: error: 'off64_t' has not been declared
*** Error code 1
Stop in
/usr/local/tmp/usr/local/ports/devel/qt4-moc/work/qt-everywhere-opensource-src-4.6.1/src/tools/bootstrap.
*** Error code 1
More information about the kde-freebsd
mailing list