On 21 Jul 2011, Timothy Pearson said:
Can you please post the full build log, including the
output of autoreconf
and configure, as an attachment to this list? That would greatly aid us
in tracking down the problem.
Sure! This request was doubly helpful because it meant I got to review
my patches to the admin/ directory and throw out 90% of them as crap
that svn had mistakenly introduced when applying its braindead
automerging technique to new checkouts. The sooner we can git rid
of svn the happier I will be.
Discounting the usual libtool updates (I'm using libtool 2.4), I've
done this to the admin/ directory. The changes fall into two
categories:
- add /usr/kde3/include and /usr/kde3/lib to the include and
library search paths, so that the KDE and TQt headers and
libraries there can be picked up
- adjust the Qt includedir to /usr/include/Qt and the Qt docdir
similarly
- one outright bugfix (AM_PROG_LEX doesn't compile in C++ mode due
to lack of prototyping, but everything else *should* be compiled
as C++).
A variant of these changes (without the tqt adjustments) has long worked
for me with KDE3 before now, but obviously I'm doing something wrong
here. (Other than using Autoconf at all, which is clearly wrong for this
application: roll on CMake! ;} )
Index: acinclude.m4.in
===================================================================
--- acinclude.m4.in (revision 1242530)
+++ acinclude.m4.in (working copy)
@@ -1089,8 +1089,9 @@
LIB_XEXT="-lXext"
QTE_NORTTI=""
-CFLAGS="$CFLAGS -I/usr/include/tqt"
-CXXFLAGS="$CXXFLAGS -I/usr/include/tqt"
+CFLAGS="$CFLAGS -I/usr/kde3/include/tqt"
+CXXFLAGS="$CXXFLAGS -I/usr/kde3/include/tqt"
+LDFLAGS="$LDFLAGS -L/usr/kde3/lib"
elif test "$kde_use_qt_emb" = "yes"; then
dnl We're using QT Embedded
@@ -1233,7 +1234,7 @@
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
ac_cxxflags_safe="$CXXFLAGS"
- CXXFLAGS="-I/usr/include/tqt"
+ CXXFLAGS="-I/usr/kde3/include/tqt"
AC_TRY_COMPILE([
#define TQT_VERSION_ONLY
#include <tqt.h>
@@ -1349,7 +1350,7 @@
kde_qt_dirs="$QTDIR /usr/lib/qt4 /usr/lib/qt /usr/share/qt4"
fi
if test $kde_qtver = 3; then
- kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt /usr/share/qt3
/usr/lib${kdelibsuff}/qt-3.3"
+ kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/Qt /usr/share/qt3
/usr/lib${kdelibsuff}/qt-3.3"
if test -z "$PKG_CONFIG"; then
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
fi
@@ -1608,7 +1609,7 @@
qt_incdirs="$qt_incdirs `$PKG_CONFIG --variable=includedir qt-mt`"
fi
fi
-qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include /usr/include/qt /usr/include
/usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/X11R6/include/qt2 /usr/include/qt3
$x_includes"
+qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include /usr/include/Qt /usr/include/qt
/usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/X11R6/include/qt2
/usr/include/qt3 $x_includes"
if test ! "$ac_qt_includes" = "NO"; then
qt_incdirs="$ac_qt_includes $qt_incdirs"
fi
@@ -2846,7 +2847,7 @@
QT_LDFLAGS="$QT_LDFLAGS $LIBTQT_LDFLAGS"
AC_SUBST(QT_LDFLAGS)
qtlib="$qtlib $LIBTQT_LDFLAGS"
- LIBTQT_CXXFLAGS="-include tqt.h"
+ LIBTQT_CXXFLAGS="-I/usr/kde3/include -include tqt.h"
all_includes="$all_includes $LIBTQT_CXXFLAGS"
QT_INCLUDES="$QT_INCLUDES $LIBTQT_CXXFLAGS"
@@ -3804,6 +3805,7 @@
AC_EXEEXT
AM_PROG_LIBTOOL
+AC_LANG(C++)
AC_LIBTOOL_CXX
# LIBTOOL_SHELL="/bin/sh ./libtool"
@@ -5311,7 +5313,7 @@
AC_DEFUN([KDE_CHECK_HEADER],
[
kde_safe_cppflags=$CPPFLAGS
- CPPFLAGS="$CPPFLAGS $all_includes -I$kde_incdir/kde -I/usr/include/tqt"
+ CPPFLAGS="$CPPFLAGS $all_includes -I$kde_incdir/kde
-I/usr/kde3/include/tqt"
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_CHECK_HEADER([$1], [$2], [$3], [$4])
@@ -5324,7 +5326,7 @@
AH_CHECK_HEADERS([$1])
AC_LANG_SAVE
kde_safe_cppflags=$CPPFLAGS
- CPPFLAGS="$CPPFLAGS $all_includes -I$kde_incdir/kde -I/usr/include/tqt"
+ CPPFLAGS="$CPPFLAGS $all_includes -I$kde_incdir/kde
-I/usr/kde3/include/tqt"
AC_LANG_CPLUSPLUS
AC_CHECK_HEADERS([$1], [$2], [$3], [$4])
CPPFLAGS=$kde_safe_cppflags
@@ -5819,6 +5821,7 @@
AC_DEFUN([KDE_NEED_FLEX],
[
+AC_LANG_PUSH(C)
kde_libs_safe=$LIBS
LIBS="$LIBS $USER_LDFLAGS"
AM_PROG_LEX
@@ -5826,6 +5829,7 @@
if test -z "$LEXLIB"; then
AC_MSG_ERROR([You need to have flex installed.])
fi
+AC_LANG_POP(C)
AC_SUBST(LEXLIB)
])
@@ -5941,7 +5945,7 @@
kde_qtdir="$with_qt_dir"
fi
-AC_FIND_FILE(qsql.html, [ $kde_qtdir/doc/html $QTDIR/doc/html
/usr/share/doc/packages/qt3/html /usr/lib/qt/doc /usr/lib/qt3/doc /usr/lib/qt3/doc/html
/usr/doc/qt3/html /usr/doc/qt3 /usr/share/doc/qt3-doc /usr/share/qt3/doc/html
/usr/X11R6/share/doc/qt/html ], QTDOCDIR)
+AC_FIND_FILE(qsql.html, [ $kde_qtdir/doc/html $QTDIR/doc/html
/usr/share/doc/packages/qt3/html /usr/lib/qt/doc /usr/lib/qt3/doc /usr/lib/qt3/doc/html
/usr/doc/Qt/html /usr/doc/qt3/html /usr/doc/qt3 /usr/share/doc/qt3-doc
/usr/share/qt3/doc/html /usr/X11R6/share/doc/qt/html ], QTDOCDIR)
AC_MSG_RESULT($QTDOCDIR)
AC_SUBST(QTDOCDIR)
Here's the results of a failed kdenetwork build, gzipped: