trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: April 2015

Kapptemplate fails on Debian Wheezy

From: russell@... (Russell Brown)
Date: Fri, 10 Apr 2015 12:23:02 +0100 (BST)
Hi,

I'm trying to use Kapptemplate v1.1.1 on TDE R14 and it seems to be
having problems with libtool.

Here's the output of make after creating the app with kapptemplate:

>make[3]: Entering directory `/russell/src/klt-2.0/klt'
>/bin/bash ../libtool --tag=CXX --mode=link g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -g -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -I/usr/include/tqt    -o klt -R /opt/trinity/lib -R /opt/trinity/lib -R /usr/lib -L/opt/trinity/lib main.o klt.o kltview.o kltpref.o kltiface_skel.o -ltdeio -ltdeprint 
>libtool: Version mismatch error.  This is libtool 2.2.6b Debian-2.2.6b-2ubuntu1, but the
>libtool: definition of this LT_INIT comes from libtool 2.4.2.
>libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b Debian-2.2.6b-2ubuntu1
>libtool: and run autoconf again.
>make[3]: *** [klt] Error 63
>make[3]: Leaving directory `/russell/src/klt-2.0/klt'

The installed libtool on my Debian Wheezy is 2.4.2-1.1

I've tried replacing aclocal.m4 with the one from
/usr/share/libtool/libltdl/aclocal.m4 and admin/ltmain.sh with the one
from /usr/share/libtool/config/ltmain.sh but then I get a different
problem:

>/bin/bash ../libtool --tag=CXX --mode=link g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -g -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -I/usr/include/tqt    -o klt -R /opt/trinity/lib -R /opt/trinity/lib -R /usr/lib -L/opt/trinity/lib main.o klt.o kltview.o kltpref.o kltiface_skel.o -ltdeio -ltdeprint libtool: link: g++ -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -g -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -I/usr/include/tqt -o klt main.o klt.o kltview.o kltpref.o kltiface_skel.o  -L/opt/trinity/lib /opt/trinity/lib/libtdeio.so /opt/trinity/lib/libtdeprint.so -Wl,-rpath -Wl,/opt/trinity/lib -Wl,-rpath -Wl,/opt/trinity/lib -Wl,-rpath -Wl,/usr/lib
>/usr/bin/ld: klt.o: undefined reference to symbol '_ZNK13KXMLGUIClient6actionERK12TQDomElement'
>/usr/bin/ld: note: '_ZNK13KXMLGUIClient6actionERK12TQDomElement' is defined in DSO /opt/trinity/lib/libtdeui.so.14 so try adding it to the linker command line
>/opt/trinity/lib/libtdeui.so.14: could not read symbols: Invalid operation
>collect2: error: ld returned 1 exit status
>make[3]: *** [klt] Error 1

How do I get kapptemplate to build a compilable TDE app ?

-- 
 Regards,
     Russell
 --------------------------------------------------------------------
| Russell Brown          | MAIL: russell@... PHONE: 01780 471800 |
| Lady Lodge Systems     | WWW Work: http://www.lls.com              |
| Peterborough, England  | WWW Play: http://www.ruffle.me.uk         |
 --------------------------------------------------------------------