Hi
I use since years the same gentoo installation. I update my system regularly. Until now I could resolve all the problems that occurs times to times my self. But for several weeks I have always libtool version mismatch message when compiling.

libtool: Version mismatch error. This is libtool 2.4.2 Debian-2.4.2-1.3, but the
libtool: definition of this LT_INIT comes from libtool 2.4.

I googled around and found many indications to resolve that problem. But most of them are not very useful.I tried some but without success. At least I reinstalled the system, gcc, glibc, libtool and voila the entire system compiled with no problems. Today I synced my installation and while compiling the consolekit the error message is again back.

What is wrong with my system?
Has anybody an idea what it is and how I can be solved?

thanks for the answer, but I don't have the same problem. The user had the newest library 2.4.2 installed. The suggestions was to downgrad to libtool 2.4. I have the version 2.4-r1 installed, the highest version that that is not masked.

Below the build.log. Currently only the consolekit fails. In the past a emerge world about the first 800 packages compiled without an error message. The first error was thrown on the libxlst package. As I wrote, re-emerging the system, gcc, glibc seemed to solve the problem temporarily.

Today i updated my system first. It compiled the packages nspr, nss, thunderbird and firefox wihtout any problem. Than it failed with the consolekit by printing the famous libtool version mismatch message.

I deleted the cache and i resumed the build. -> same error.
I removed the feature ccache from make.conf and resumed the build -> same error.
I reduced the j option to 2 and resumed the build -> same error.
I deleted the entiere cache from /var/cache and updated world with uvDN -> same error

Only to see what happens I tried to recompile the libxslt package, which failed to compile the first time, and compiled fine after doing the emerging of system, gcc, glib, etc.
It fails with the same libtool version mismatch message like the consolekit. It's strength ...

The configure file of the console kit can be downloaded with the following link

Again many thanks for your help, I am happy that you take the time helping me.

I have set the portage overlay to "" and updated -> Still the same error message
Than I re-synced and updated -> Still the same error message

Either the wrong eclasses are not replaced with the right, or that is not the problem.

If I understand you right, you think that I have incompatible build scripts/libraries installed.
I checked my system for older packages and found that I have an older python 2.6 installed. My system is set to 2.7.
Before removing 2.6 I called python-updater to be sure that the system will not be broken after removal. (I am sure that I had called the after upgrading python)
The updater found 3 packages to compile
sys-apps/file-5.12-r1 -> compiled well
sys-libs/cracklib-2.8.19 -> compiled well
dev-libs/libgmain-0.1.10-r3 -> failed with another libtool error message.
Below is the build log, perhaps this gives additional information where to search.

>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-libs/libgamin-0.1.10-r3/work/gamin-0.1.10 ...
make -j2
make all-recursive
make[1]: Entering directory `/var/tmp/portage/dev-libs/libgamin-0.1.10-r3/work/gamin-0.1.10'
Making all in lib
make[2]: Entering directory `/var/tmp/portage/dev-libs/libgamin-0.1.10-r3/work/gamin-0.1.10/lib'
/bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -O2 -march=native -pipe -fomit-frame-pointer -c -o gam_event.lo gam_event.c
/bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -O2 -march=native -pipe -fomit-frame-pointer -c -o gam_error.lo gam_error.c
../libtool: line 867: X--tag=CC: command not found
../libtool: line 867: X--tag=CC: command not found
../libtool: line 900: libtool: ignoring unknown tag : command not found
../libtool: line 867: X--mode=compile: command not found
../libtool: line 900: libtool: ignoring unknown tag : command not found
../libtool: line 867: X--mode=compile: command not found
../libtool: line 1034: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 1035: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../libtool: line 1178: Xx86_64-pc-linux-gnu-gcc: command not found
../libtool: line 1034: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 1178: X-DHAVE_CONFIG_H: command not found
../libtool: line 1035: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../libtool: line 1178: Xx86_64-pc-linux-gnu-gcc: command not found
../libtool: line 1178: X-I.: command not found
../libtool: line 1178: X-DHAVE_CONFIG_H: command not found
../libtool: line 1178: X-I..: command not found
../libtool: line 1178: X-I.: command not found
../libtool: line 1178: X-I..: command not found
../libtool: line 1178: X-I..: command not found
../libtool: line 1178: X-I../lib: No such file or directory
../libtool: line 1178: X-I..: command not found
../libtool: line 1178: X-Wall: command not found
../libtool: line 1178: X-I../lib: No such file or directory
../libtool: line 1178: X-Wchar-subscripts: command not found
../libtool: line 1178: X-Wall: command not found
../libtool: line 1178: X-Wchar-subscripts: command not found
../libtool: line 1178: X-Wmissing-declarations: command not found
../libtool: line 1178: X-Wmissing-declarations: command not found
../libtool: line 1178: X-Wmissing-prototypes: command not found
../libtool: line 1178: X-Wmissing-prototypes: command not found
../libtool: line 1178: X-Wnested-externs: command not found
../libtool: line 1178: X-Wnested-externs: command not found
../libtool: line 1178: X-Wsign-compare: command not found
../libtool: line 1178: X-Wsign-compare: command not found
../libtool: line 1178: X-Wno-sign-compare: command not found
../libtool: line 1178: X-Wno-sign-compare: command not found
../libtool: line 1178: X-O2: command not found
../libtool: line 1178: X-O2: command not found
../libtool: line 1178: X-march=native: command not found
../libtool: line 1178: X-march=native: command not found
../libtool: line 1178: X-pipe: command not found
../libtool: line 1178: X-pipe: command not found
../libtool: line 1178: X-fomit-frame-pointer: command not found
../libtool: line 1178: X-fomit-frame-pointer: command not found
../libtool: line 1178: X-c: command not found
../libtool: line 1178: X-c: command not found
../libtool: line 1230: Xgam_event.lo: command not found
../libtool: line 1230: Xgam_error.lo: command not found
../libtool: line 1235: libtool: compile: cannot determine name of library object from `': command not found
make[2]: *** [gam_event.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
../libtool: line 1235: libtool: compile: cannot determine name of library object from `': command not found
make[2]: *** [gam_error.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-libs/libgamin-0.1.10-r3/work/gamin-0.1.10/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/libgamin-0.1.10-r3/work/gamin-0.1.10'
make: *** [all] Error 2
[31;01m*[0m ERROR: dev-libs/libgamin-0.1.10-r3 failed (compile phase):
[31;01m*[0m emake failed
[31;01m*[0m
[31;01m*[0m If you need support, post the output of `emerge --info '=dev-libs/libgamin-0.1.10-r3'`,
[31;01m*[0m the complete build log and the output of `emerge -pqv '=dev-libs/libgamin-0.1.10-r3'`.
[31;01m*[0m The complete build log is located at '/var/tmp/portage/dev-libs/libgamin-0.1.10-r3/temp/build.log'.
[31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/dev-libs/libgamin-0.1.10-r3/temp/environment'.
[31;01m*[0m Working directory: '/var/tmp/portage/dev-libs/libgamin-0.1.10-r3/work/gamin-0.1.10'
[31;01m*[0m S: '/var/tmp/portage/dev-libs/libgamin-0.1.10-r3/work/gamin-0.1.10'