fun compiling xpt cvs

Bruno Postle bruno@postle.net
Sat, 11 May 2002 12:22:40 +0100


Ok, I've grabbed updated autoconf and automake packages for redhat-7.3

Redhat in their wisdom default-installs both the old and new version of
these packages:

   automake-1.4p5-2 automake15-1.5-2 autoconf-2.13-14 autoconf253-2.53-3
 
..so in order to use the new autoconf, I had to modify the mkbuild
script like this:

   echo "Running aclocal"
   # aclocal
   aclocal-1.5
   echo "Running autoconf"
   # autoconf
   autoconf-2.53
   echo "Libtoolizing"
   libtoolize --automake
   echo "Running automake"
   # automake -a
   automake-1.5 -a

I get some warnings:

   c:10: warning: do not use m4_patsubst: use patsubst or m4_bpatsubst
   configure.ac:22: warning: do not use m4_regexp: use regexp or m4_bregexp
   automake-1.5: configure.ac: `AM_INIT_AUTOMAKE' must be used

..but it does generate a working configure script, though make fails:

   make[3]: Entering directory `/home/bruno/xpt/xpt'
   source='xptdoc.cpp' object='xptdoc.o' libtool=no \
   depfile='.deps/xptdoc.Po' tmpdepfile='.deps/xptdoc.TPo' \
   depmode=gcc3 /bin/sh ../depcomp \
   g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/qt3/include -c -o xptdoc.o `test -f xptdoc.cpp || echo './'`xptdoc.cpp
   In file included from xptdoc.cpp:21:
   xptdoc.h:42: syntax error before `;'
   xptdoc.cpp:242: prototype for `void XptDoc::addImage (const QString &, const QString &)' does not match any in class `XptDoc'
   xptdoc.h:84: candidate is: void XptDoc::addImage (const QString &, const QString &, const QString &, const QString &)
   xptdoc.cpp: In method `void XptDoc::addImage (const QString &, const QString &)':
   xptdoc.cpp:265: `width' undeclared (first use this function)
   xptdoc.cpp:265: (Each undeclared identifier is reported only once for each function it appears in.)
   xptdoc.cpp:270: `height' undeclared (first use this function)
   make[3]: *** [xptdoc.o] Error 1
   make[3]: Leaving directory `/home/bruno/xpt/xpt'

Any ideas?

-- 
Bruno