On 04/30/2011 05:57 PM, David C. Rankin wrote:
../include/qmap.h:607:13: error: ‘ptrdiff_t’ does not
name a type
kernel/qapplication_x11.cpp: In member function ‘int
QApplication::x11ProcessEvent(XEvent*)’:
kernel/qapplication_x11.cpp:3693:54: warning: suggest parentheses
around ‘&&’ within ‘||’ [-Wparentheses]
kernel/qapplication_x11.cpp:3706:54: warning: suggest parentheses
around ‘&&’ within ‘||’ [-Wparentheses]
kernel/qapplication_x11.cpp: In member function ‘bool
QETWidget::translateMouseEvent(const XEvent*)’:
kernel/qapplication_x11.cpp:4122:30: warning: suggest parentheses
around ‘&&’ within ‘||’ [-Wparentheses]
kernel/qapplication_x11.cpp: In member function ‘bool
QETWidget::translateKeyEventInternal(const XEvent*, int&, QString&,
int&, char&, int&, QEvent::Type&, bool)’:
kernel/qapplication_x11.cpp:5161:8: warning: suggest explicit braces
to avoid ambiguous ‘else’ [-Wparentheses]
kernel/qapplication_x11.cpp:5232:52: warning: suggest parentheses
around ‘&&’ within ‘||’ [-Wparentheses]
kernel/qapplication_x11.cpp:5235:52: warning: suggest parentheses
around ‘&&’ within ‘||’ [-Wparentheses]
kernel/qapplication_x11.cpp: In function ‘int
isPaintOrScrollDoneEvent(Display*, XEvent*, XPointer)’:
kernel/qapplication_x11.cpp:5524:34: warning: suggest parentheses
around ‘&&’ within ‘||’ [-Wparentheses]
make[2]: *** [.obj/release-shared-mt/qapplication_x11.o] Error 1
make[2]: Leaving directory
`/home/david/tblds/trinity-qt3/src/qt-x11-free-3.3.8b/src'
make[1]: *** [sub-src] Error 2
make[1]: Leaving directory
`/home/david/tblds/trinity-qt3/src/qt-x11-free-3.3.8b'
make: *** [init] Error 2
==> ERROR: A failure occurred in build().
Aborting...
I'll go try an older build script that used qt-x11-free-3.3.8
instead of qt-x11-free-3.3.8b. I'll report back :p
Works for me
$ gcc --version
gcc (GCC) 4.6.0 20110415 (prerelease)
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
cp -f "../doc/html/xml-sax-walkthrough.html"
"/build/pkg/usr/qt3/doc/html/"
cp -f "../doc/html/xml-tools.html" "/build/pkg/usr/qt3/doc/html/"
cp -f "../doc/html/xml.html" "/build/pkg/usr/qt3/doc/html/"
cp -f "../doc/html/y2k.html" "/build/pkg/usr/qt3/doc/html/"
make[2]: Leaving directory `/build/src/qt-x11-free-3.3.8b/src'
make[1]: Leaving directory `/build/src/qt-x11-free-3.3.8b'
`/build/pkg/usr/qt3/mkspecs/linux-g++/linux-g++' -> `../linux-g++'
`/build/pkg/usr/qt3/lib/libqt.so' -> `libqt-mt.so'
install: creating directory `/build/pkg/etc'
install: creating directory `/build/pkg/etc/profile.d'
==> Tidying install...
-> Removing doc files...
-> Purging other files...
-> Compressing man and info pages...
-> Stripping unneeded symbols from binaries and libraries...
==> WARNING: Package contains reference to $srcdir
==> Creating package...
-> Generating .PKGINFO file...
-> Compressing package...
==> Leaving fakeroot environment
==> Finished making: qt3 3.3.8b-3 (Sun May 1 00:31:55 UTC 2011)
PKGBUILD Follows:
# $Id$
# Maintainer: Baho Utot <baho-utot(a)columbus.rr.com>
_module=qt-x11-free
_pkgname=${_module}
_pkgver=3.3.8c
_prefix="/usr/qt3"
pkgname=qt3
pkgver=3.3.8b
pkgrel=3
arch=('i686' 'x86_64')
url="http://qt.nokia.com/products/"
license=('GPL2')
groups=('trinity')
pkgdesc="Trinity - ${_module}"
depends=(libjpeg-turbo libxft libxrandr libxcursor libxinerama unixodbc
postgresql-libs libmysqlclient libpng libmng libsm)
makedepends=(sqlite3 cups postgresql libxi)
optdepends=( )
options=(!docs)
provides=(qt3)
conflicts=(qt3 qt3-enhanced)
source=(
ftp://ftp.trolltech.com/qt/source/qt-x11-free-3.3.8b.tar.gz
qt-patches.tar.bz2
qt3-png14.patch
eastern_asian_languagues.diff
qt-odbc.patch
qt3_3.3.8c.diff)
build() {
cd "${srcdir}/${_module}-${pkgver}"
export PATH=${PWD}/bin:${PATH}
export LD_LIBRARY_PATH=${PWD}/lib:${LD_LIBRARY_PATH}
export CPATH=/usr/include/postgresql/server:/usr/include/mysql
#
# makum' apache A la Ke
#
msg "Patching source files....."
# apply other qt patches and one security fix from debian/gentoo
for i in ../qt-patches/*; do
patch -Np1 -i $i || return 1
done
# fix CJK font/chars select error (FS#11245)
patch -p1 -i ${srcdir}/eastern_asian_languagues.diff || return 1
# fix build problem against new unixODBC
patch -p1 -i ${srcdir}/qt-odbc.patch || return 1
patch -p0 -i ${srcdir}/qt3-png14.patch
# patch for qt3_3.3.8c
patch -p0 -i ${srcdir}/qt3_3.3.8c.diff || return 1
# remove runtime library search not needed when installed into /usr
sed -i '/QMAKE_RPATH/d' mkspecs/linux*/qmake.conf
sed -i 's|-cp -P -f|-cp -L -f|' qmake/Makefile.unix
sed -i "s|read acceptance|acceptance=yes|" configure
# Remove mkspecs not needed
rm -rf
mkspecs/{*aix*,*bsd*,cygwin*,dgux*,darwin*,hpux*,hurd*,irix*,lynxos*,macx*,qnx*,reliant*,sco*,solaris*,tru64*,unixware*,win32*}
# Lets do it!
msg "Starting configure..."
./configure -prefix ${_prefix} \
-sysconfdir /etc/qt \
-sm \
-qt-gif \
-system-zlib \
-no-exceptions \
-platform linux-g++ \
-plugin-sql-mysql \
-plugin-sql-psql \
-plugin-sql-sqlite \
-plugin-sql-odbc \
-thread \
-no-nis \
-cups \
-no-stl \
-no-ipv6 \
-plugin-imgfmt-jpeg \
-plugin-imgfmt-mng \
-plugin-imgfmt-png \
-system-libmng \
-system-libjpeg \
-system-libpng \
-no-nas-sound \
-no-tablet
make sub-tools
}
package() {
msg "Packaging - $pkgname-$pkgver"
cd "${srcdir}/${_module}-${pkgver}"
pkgver=${_pkgver}
make INSTALL_ROOT=${pkgdir} install
rm ${pkgdir}${_prefix}/mkspecs/linux-g++/linux-g++
ln -v -snf ../linux-g++ ${pkgdir}${_prefix}/mkspecs/linux-g++/linux-g++
ln -v -sf libqt-mt.so ${pkgdir}${_prefix}/lib/libqt.so
# Don't doc/man pages
rm -rf ${pkgdir}/usr/qt3/doc
# Don't do examples
#cp -v -r examples ${pkgdir}${_prefix}/share/doc/qt
# Build qt.profile
install -vd -m 755 ${pkgdir}/etc/profile.d
echo 'export QT_XFT=true' > ${pkgdir}/etc/profile.d/qt3.sh
echo "QTDIR=${_prefix}" >> ${pkgdir}/etc/profile.d/qt3.sh
echo 'PATH=${QTDIR}/bin:${PATH:=}' >> ${pkgdir}/etc/profile.d/qt3.sh
echo 'PATH=${PATH%:}' >> ${pkgdir}/etc/profile.d/qt3.sh
echo 'LD_LIBRARY_PATH=${QTDIR}/lib:${LD_LIBRARY_PATH:=}' >>
${pkgdir}/etc/profile.d/qt3.sh
echo 'LD_LIBRARY_PATH=${LD_LIBRARY_PATH%:}' >>
${pkgdir}/etc/profile.d/qt3.sh
echo 'export QTDIR PATH LD_LIBRARY_PATH' >>
${pkgdir}/etc/profile.d/qt3.sh
ln -sf qtconfig ${pkgdir}${_prefix}/bin/qt3config
}
md5sums=('9f05b4125cfe477cc52c9742c3c09009'
'2f00e5c0c1e2c2a23dddc982cd79f3e0'
'1dc671df42b9030dbdf68bb61cd3375e'
'616f1f3029cf8375256ad6a406de3549'
'2178ca88dfd75a230918593b30eb0dbe'
'd1b9c8cbc75d6da38b2528b6dc063fe8')