Le 02/05/2012 22:25, David C. Rankin a écrit :
Guys,
Don't give this a lot of time (3.5.12 backport of sftp fix). I have
kdebase successfully configuring, but I get an early error building
kate. The build can't find kdebase/kate/app/.libs/libkdeinit_kate.so
The build is correct, it's not there. The .la and .lai files are
there, but not the .so. The .so is already on the system as
/opt/kde3/lib/libkdeinit_kate.so.
I don't know if the build fail is caused by the .lai saying it is
already installed or the .la saying it isn't, or if this is just some
gcc47 hiccup that we just are not going to get past. It seems I've
been hit by this issue before, but I cannot recall for the life of me
what the fix was.
There is no question that the build finds the existing lib, but then
somehow isn't doing something right. The error is:
libtool: link: ( cd ".libs" && rm -f "kwrite.la" &&
ln -s
"../kwrite.la" "kwrite.la" )
/bin/sh ../../libtool --tag=CXX --mode=link g++ -DNDEBUG -DNO_DEBUG
-fpermissive -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL
-DQT_NO_COMPAT -DQT_NO_TRANSLATION -D_GNU_SOURCE -o kate -R
/opt/kde3/lib -R /opt/kde3/lib -R /opt/qt/lib -R /opt/kde3/lib
-no-undefined -L/opt/kde3/lib -L/opt/qt/lib -L/opt/kde3/lib
kate.la.o libkdeinit_kate.la
libtool: link: LD_RUN_PATH="/opt/kde3/lib:/opt/qt/lib:" g++ -DNDEBUG
-DNO_DEBUG -fpermissive -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST
-DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -D_GNU_SOURCE -o
.libs/kate kate.la.o -L/opt/kde3/lib -L/opt/qt/lib
./.libs/libkdeinit_kate.so -L/usr/lib
/home/david/tde/kdemod3/bld/kdebase/src/kdebase/kate/app/.libs/libkateinterfaces.so
/opt/kde3/lib/libkatepartinterfaces.so /opt/kde3/lib/libktexteditor.so
/opt/kde3/lib/libkabc.so /opt/kde3/lib/libvcard.so
/opt/kde3/lib/libkresources.so /opt/kde3/lib/libkparts.so
/opt/kde3/lib/libkutils.so
/home/david/tde/kdemod3/bld/kdebase/src/kdebase/kate/utils/.libs/libkateutils.so
/opt/kde3/lib/libkio.so /opt/kde3/lib/libkdeui.so
/opt/kde3/lib/libkdesu.so /opt/kde3/lib/libkwalletclient.so
/usr/lib/libfam.so -lacl -lattr /opt/kde3/lib/libkdecore.so
-lart_lgpl_2 -lidn /opt/kde3/lib/libkdefx.so -lXrender -ldl
/opt/kde3/lib/libDCOP.so /opt/qt/lib/libtqt.so -lqt-mt -lpng -lz
-lXext -lSM -lICE -lpthread -lX11
g++: error: ./.libs/libkdeinit_kate.so: No such file or directory
g++: error:
/home/david/tde/kdemod3/bld/kdebase/src/kdebase/kate/app/.libs/libkateinterfaces.so:
No such file or directory
g++: error:
/home/david/tde/kdemod3/bld/kdebase/src/kdebase/kate/utils/.libs/libkateutils.so:
No such file or directory
The .libs dir has the following:
-rw-r--r-- 1 david david 936 May 2 13:14 kate_dummy.o
lrwxrwxrwx 1 david david 10 May 2 14:13 kate.la -> ../kate.la
-rw-r--r-- 1 david david 1560 May 2 14:13 kate.lai
-rw-r--r-- 1 david david 51964 May 2 14:13 katemain.o
-rw-r--r-- 1 david david 940 May 2 13:15 kwrite_dummy.o
lrwxrwxrwx 1 david david 12 May 2 14:13 kwrite.la -> ../kwrite.la
-rw-r--r-- 1 david david 1512 May 2 14:13 kwrite.lai
-rw-r--r-- 1 david david 99804 May 2 13:15 kwritemain.o
lrwxrwxrwx 1 david david 23 May 2 14:13 libkateinterfaces.la ->
../libkateinterfaces.la
-rw-r--r-- 1 david david 1216780 May 2 14:13
libkateinterfaces_la.all_cpp.o
-rw-r--r-- 1 david david 1574 May 2 14:13 libkateinterfaces.lai
lrwxrwxrwx 1 david david 26 May 2 14:13 libkateinterfaces.so ->
libkateinterfaces.so.0.0.0
lrwxrwxrwx 1 david david 26 May 2 14:13 libkateinterfaces.so.0
-> libkateinterfaces.so.0.0.0
lrwxrwxrwx 1 david david 21 May 2 14:13 libkdeinit_kate.la ->
../libkdeinit_kate.la
-rw-r--r-- 1 david david 1587 May 2 14:13 libkdeinit_kate.lai
lrwxrwxrwx 1 david david 23 May 2 14:13 libkdeinit_kwrite.la ->
../libkdeinit_kwrite.la
-rw-r--r-- 1 david david 1537 May 2 14:13 libkdeinit_kwrite.lai
If anyone has a quick fix, I'd be glad to try it, if not, I'll just
put this on the back burner for now... IIRC this might take a makefile
sed or patch..
I've had this kind of problem previously, it's due to bugs/misuse of
autotools, which do not generate correct Makefiles.
There is not much to do, you can either change your version of autotools
to get the exact one that works with TDE 3.5.12, or apply patches that
include the CMAKE build.
In the past I've managed to build TDE 3.5.12 on recent distro (Fedora 15
at the time) by downgrading tools with the following exact versions:
- autoconf 2.63
- libtool 2.2.6
- m4 1.4.13
Good luck !