PDA

View Full Version : patch: freebsd and qt-2 build fixes



jonseq
04-18-2003, 03:28 PM
http://sourceforge.net/tracker/index.php?func=detail&aid=723901&group_id=10131&atid=310131

This patch should be considered for merge to CVS. It should not affect the build under linux. Verified that apply of patch to clean CVS today (4/18) builds.

Summary:

md5 verification using grep rather than harcoded field location

use sys/types.h instead of nonexistant <stdint.h> for FreeBSD

QT_VERSION check suppresses setStyle calls if QT < 3.0 (necessary to build)

avoid conflict between FreeBSD getopt and GNU getopt

use UINT_MAX from limits.h on FreeBSD

ioctl sets BPF to immediate mode (because in FreeBSD, a timeout of 0 means wait forever and you only get updates when the buffer fills)

use FreeBSD BYTE_ORDER and include necessary inet headers in packet.h

implement lrint (for FreeBSD)


None of these changes should hurt the Linux build process.


The (bash) script I use to build (rather than hacking autoconf, sorry):

QTDIR=/usr/local/qt
PATH=$QTDIR/bin:$PATH
LD_LIBRARY_PATH=$QTDIR/lib:/usr/local/lib:$LD_LIBRARY_PATH

export QTDIR PATH LD_LIBRARY_PATH
export CC="g++30"

export CPP="$CC -E"
export CXX="$CC"
export CXXCPP="$CPP"
export LIBS="-lgnugetopt"
export CPPFLAGS="-I/usr/local/include/"
export LDFLAGS="-L/usr/local/lib/"

gmake -f Makefile.dist no-backup
./configure --without-qt-validation
gmake
cp /usr/local/bin/showeq showeq-`date +%y%m%d`
echo now su root and gmake install

Ratt
04-18-2003, 03:42 PM
Attach the patch and I'll take a look at it.

jonseq
04-18-2003, 04:14 PM
Patch is attached in the patches section (link at top of my post)

However, I realized that I didn't need to disable the setStyle stuff for old QT; the old method (which was commented out) still works. I've updated the patch in the section to revert to the old method for QT 2 and will attach it here as well:

jonseq
04-18-2003, 04:18 PM
Either there is some sort of moderation for attachments or something is broken with my browser or these boards.

Verified that my patch does have the file attached properly - get it here:

http://sourceforge.net/tracker/download.php?group_id=10131&atid=310131&file_id=48127&aid=723901

AnotherCoreDump
04-23-2003, 05:31 AM
Doh, just found this after compiling the new qt for some hours to find out I did forget the "-thread" in ./configure and restarting qt compile again.
Ok next time I use Search before getting new qt stuff and having my old box crunching on some code for 10+ hrs.