qt-3.3.3 build fails with gcc2 on CURRENT
Henry Kleynhans
henry at obsidian.co.za
Mon Aug 30 04:40:28 PDT 2004
Hi all,
Here's a quick fix. Compile qt33 until the error occurs. Then edit:
/usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.3/tools/qvfb/qanimationwriter.cpp
You need to insert a line:
#include <sys/param.h> // for htonl
In front of the #include <net/in.h> line (which is commented to be
included for htonl), but according to the dfly man page does actually
depend on another header.
Finish the compilation and installation process.
Kind regards,
Henry
Henry Kleynhans wrote:
Hi all,
I get an error when trying to build qt-3.3.3 from the ports tree. This
is with an updated dfports archive (2004-08-26) where the qt override
has been removed. Compiler gcc2; CFLAGS="-O2 -pipe". This happens with
both CPUTYPE set and unset.
Here is the error I receive:
<snip>
c++ -c -pipe -fno-exceptions -Wall -W -O2 -pipe -march=pentiumpro
-D_THREAD_SAFE -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
-DQT_SHARED -I/usr/local/share/qt/mkspecs/freebsd-g++ -I.
-I/usr/local/include/freetype2 -I/usr/local/include
-I../../src/3rdparty/libpng -I../../src/3rdparty/zlib
-I/usr/local/include -I../../include -I/usr/X11R6/include
-I/usr/X11R6/include -I.moc/release-shared-mt/ -o
.obj/release-shared-mt/qanimationwriter.o qanimationwriter.cpp
qanimationwriter.cpp: In method `void
QAnimationWriterMNG::writeMHDR(const QSize &, int)':
qanimationwriter.cpp:135: implicit declaration of function `int htonl(...)'
qanimationwriter.cpp: In method `void
QAnimationWriterMNG::writeDEFI(const QPoint &, const QSize &)':
qanimationwriter.cpp:152: warning: unused parameter `const class QSize &
size'
*** Error code 1
Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.3/tools/qvfb.
*** Error code 1
Stop in /usr/ports/x11-toolkits/qt33/work/qt-x11-free-3.3.3/tools/qvfb.
*** Error code 1
Stop in /usr/ports/x11-toolkits/qt33.
</snip>
Kind regards,
Henry
More information about the Bugs
mailing list