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
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