Re: qt-3.3.3 build fails with gcc2 on CURRENT

看板DFBSD_bugs作者時間21年前 (2004/08/30 20:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
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
文章代碼(AID): #11CnS200 (DFBSD_bugs)
文章代碼(AID): #11CnS200 (DFBSD_bugs)