Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97600 - KDevelop-3.2.1 new project./configure fails with libtool.m4 and ltmain.sh have a version mismatch!
Summary: KDevelop-3.2.1 new project./configure fails with libtool.m4 and ltmain.sh hav...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 99095 115975 124416 141283 161646 192225 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-07-01 03:52 UTC by david somers
Modified: 2007-09-11 20:26 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description david somers 2005-07-01 03:52:16 UTC
In KDevelop-3.2.1, I am having weird problems trying to get a new project to  
work.  The project fails when running ./configure with  libtool.m4 and ltmain.sh 
have a version mismatch!  

Reproducible: Always
Steps to Reproduce:
1. Start KDevelop  
2. Project -> New Project   
3. Select C, Simple Hello World Program 
4. Run Build -> Run Automake & Friends  
5. Build -> Run Configure ... fails :( 
Actual Results:  
Automake & Friends gives: 
 
cd '/home/users/dsomers/prj/wibble' && WANT_AUTOCONF_2_5="1" 
WANT_AUTOMAKE_1_6="1" gmake -f Makefile.cvs 
aclocal 
/usr/share/aclocal/wxwin.m4:36: warning: underquoted definition of 
AM_OPTIONS_WXCONFIG 
run info '(automake)Extending aclocal' 
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal 
/usr/share/aclocal/wxwin.m4:59: warning: underquoted definition of 
AM_PATH_WXCONFIG 
/usr/share/aclocal/pth.m4:43: warning: underquoted definition of 
_AC_PTH_ERROR 
/usr/share/aclocal/pth.m4:55: warning: underquoted definition of 
_AC_PTH_VERBOSE 
/usr/share/aclocal/pth.m4:61: warning: underquoted definition of 
AC_CHECK_PTH 
/usr/share/aclocal/ao.m4:9: warning: underquoted definition of XIPH_PATH_AO 
autoheader 
automake 
autoconf 
*** Success *** 
 
Then run configure fails with: 
 
cd '/home/users/dsomers/prj/wibble/debug' && CFLAGS="-O0 -g3 " 
"/home/users/dsomers/prj/wibble/configure" --enable-debug=full 
installing -c 
checking whether build environment is sane... yes 
checking for gawk... gawk 
checking whether make sets $(MAKE)... yes 
checking for gcc... gcc 
checking for C compiler default output file name... a.out 
checking whether the C compiler works... yes 
checking whether we are cross compiling... no 
checking for suffix of executables...  
checking for suffix of object files... o 
checking whether we are using the GNU C compiler... yes 
checking whether gcc accepts -g... yes 
checking for gcc option to accept ANSI C... none needed 
checking for style of include used by make... GNU 
checking dependency style of gcc... gcc3 
checking build system type... i686-pc-linux-gnu 
checking host system type... i686-pc-linux-gnu 
checking for a sed that does not truncate output... /usr/bin/sed 
checking for egrep... grep -E 
checking for ld used by gcc... /usr/i686-pc-linux-gnu/bin/ld 
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes 
checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r 
checking for BSD-compatible nm... /usr/bin/nm -B 
checking whether ln -s works... yes 
checking how to recognise dependent libraries... pass_all 
checking how to run the C preprocessor... gcc -E 
checking for ANSI C header files... yes 
checking for sys/types.h... yes 
checking for sys/stat.h... yes 
checking for stdlib.h... yes 
checking for string.h... yes 
checking for memory.h... yes 
checking for strings.h... yes 
checking for inttypes.h... yes 
checking for stdint.h... yes 
checking for unistd.h... yes 
checking dlfcn.h usability... yes 
checking dlfcn.h presence... yes 
checking for dlfcn.h... yes 
checking for g++... g++ 
checking whether we are using the GNU C++ compiler... yes 
checking whether g++ accepts -g... yes 
checking dependency style of g++... gcc3 
checking how to run the C++ preprocessor... g++ -E 
checking for g77... g77 
checking whether we are using the GNU Fortran 77 compiler... yes 
checking whether g77 accepts -g... yes 
checking the maximum length of command line arguments... 32768 
checking command to parse /usr/bin/nm -B output from gcc object... ok 
checking for objdir... .libs 
checking for ar... ar 
checking for ranlib... ranlib 
checking for strip... strip 
checking for correct ltmain.sh version... no 
 
*** Gentoo sanity check failed! *** 
*** libtool.m4 and ltmain.sh have a version mismatch! *** 
*** (libtool.m4 = 1.5.16, ltmain.sh = 1.5a) *** 
 
Please run: 
 
libtoolize --copy --force 
 
if appropriate, please contact the maintainer of this 
package (or your distribution) for help. 
 
*** Exited with status: 1 *** 
 


# emerge --info 
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, 
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r9 i686) 
================================================================= 
System uname: 2.6.11-gentoo-r9 i686 AMD Sempron(tm) 2200+ 
Gentoo Base System version 1.6.12 
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May 16 2005, 19:13:35)] 
ccache version 2.3 [enabled] 
dev-lang/python:     2.3.5 
sys-apps/sandbox:    [Not Present] 
sys-devel/autoconf:  2.59-r6, 2.13 
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 
sys-devel/binutils:  2.15.92.0.2-r10 
sys-devel/libtool:   1.5.16 
virtual/os-headers:  2.6.8.1-r2 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -pipe -march=athlon-xp -mmmx -msse -m3dnow -mfpmath=sse" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O3 -pipe -march=athlon-xp -mmmx -msse -m3dnow 
-mfpmath=sse" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/" 
LINGUAS="en de fr nl it ja" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://caslon/portage" 
USE="x86 3dnow X alsa apm arts avi berkdb bitmap-fonts bri cgi cjk crypt cups 
curl doc emboss encode expat fam fastcgi foomaticdb fortran gd gdbm gif gpm 
graphviz gtk2 imlib java jpeg junit kde ldap libg++ libwww lm_sensors mad 
mikmod mmx motif mp3 mpegmysql ncurses nls no_wxgtk1 odbc ogg 
oggvorbis opengl oss pam pdflib perl php png python qt quicktime readline 
samba sdl snmp spell sse ssl svga tcltk tcpd tiff truetype truetype-fonts 
type1-fonts unicode usb vorbis xml2 xmms xprint xv zeroconf zlib linguas_en 
linguas_de linguas_fr linguas_nl linguas_it linguas_ja userland_GNU kernel_linux 
elibc_glibc" 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 david somers 2005-07-01 04:19:09 UTC
FYI, I tried again with the latest version of libtool (libtool-1.5.18-r1), but alas the problem is still there. 
 
*** Gentoo sanity check failed! *** 
*** libtool.m4 and ltmain.sh have a version mismatch! *** 
*** (libtool.m4 = 1.5.18, ltmain.sh = 1.5a) *** 
 
 
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-07-15 05:34:28 UTC
*** Bug 99095 has been marked as a duplicate of this bug. ***
Comment 3 Gregorio Guidi (RETIRED) gentoo-dev 2005-07-16 01:00:27 UTC
Can you try kdevelop-3.2.1-r1 and see if it fixes this issue? (You should try 
with a project created from scratch) 
Comment 4 david somers 2005-07-16 06:56:34 UTC
(In reply to comment #3) 
> Can you try kdevelop-3.2.1-r1 and see if it fixes this issue? (You should 
try  
> with a project created from scratch)  
 
Sorry to say, the bug is still there :-( 
 
mkdir '/home/users/dsomers/prj/wibble/debug' && cd 
'/home/users/dsomers/prj/wibble/debug' && CFLAGS="-O0 -g3 " 
"/home/users/dsomers/prj/wibble/configure" --enable-debug=full 
installing -c 
checking whether build environment is sane... yes 
checking for gawk... gawk 
checking whether make sets $(MAKE)... yes 
checking for gcc... gcc 
checking for C compiler default output file name... a.out 
checking whether the C compiler works... yes 
checking whether we are cross compiling... no 
checking for suffix of executables...  
checking for suffix of object files... o 
checking whether we are using the GNU C compiler... yes 
checking whether gcc accepts -g... yes 
checking for gcc option to accept ANSI C... none needed 
checking for style of include used by make... GNU 
checking dependency style of gcc... gcc3 
checking build system type... i686-pc-linux-gnu 
checking host system type... i686-pc-linux-gnu 
checking for a sed that does not truncate output... /usr/bin/sed 
checking for egrep... grep -E 
checking for ld used by gcc... /usr/i686-pc-linux-gnu/bin/ld 
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes 
checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r 
checking for BSD-compatible nm... /usr/bin/nm -B 
checking whether ln -s works... yes 
checking how to recognise dependent libraries... pass_all 
checking how to run the C preprocessor... gcc -E 
checking for ANSI C header files... yes 
checking for sys/types.h... yes 
checking for sys/stat.h... yes 
checking for stdlib.h... yes 
checking for string.h... yes 
checking for memory.h... yes 
checking for strings.h... yes 
checking for inttypes.h... yes 
checking for stdint.h... yes 
checking for unistd.h... yes 
checking dlfcn.h usability... yes 
checking dlfcn.h presence... yes 
checking for dlfcn.h... yes 
checking for g++... g++ 
checking whether we are using the GNU C++ compiler... yes 
checking whether g++ accepts -g... yes 
checking dependency style of g++... gcc3 
checking how to run the C++ preprocessor... g++ -E 
checking for g77... g77 
checking whether we are using the GNU Fortran 77 compiler... yes 
checking whether g77 accepts -g... yes 
checking the maximum length of command line arguments... 32768 
checking command to parse /usr/bin/nm -B output from gcc object... ok 
checking for objdir... .libs 
checking for ar... ar 
checking for ranlib... ranlib 
checking for strip... strip 
checking for correct ltmain.sh version... no 
 
*** Gentoo sanity check failed! *** 
*** libtool.m4 and ltmain.sh have a version mismatch! *** 
*** (libtool.m4 = 1.5.18, ltmain.sh = 1.5a) *** 
 
Please run: 
 
libtoolize --copy --force 
 
if appropriate, please contact the maintainer of this 
package (or your distribution) for help. 
 
*** Exited with status: 1 *** 
 
Comment 5 Fab 2005-07-16 07:36:40 UTC
Look at this bug issue : http://bugs.gentoo.org/show_bug.cgi?id=74442
Explanation here : http://bugs.gentoo.org/show_bug.cgi?id=73563#c9
Hope this help.
Comment 6 david somers 2005-07-16 08:00:58 UTC
(In reply to comment #5) 
> Look at this bug issue : http://bugs.gentoo.org/show_bug.cgi?id=74442 
> Explanation here : http://bugs.gentoo.org/show_bug.cgi?id=73563#c9 
> Hope this help. 
 
Not really. 
 
All the patch in bug #74442 does is to sneak in a libtoolize --force --copy 
into the build process for that particular package. 
 
The problem here is that when KDevelop generates its files for a new project, 
something is a bit wrong in the system... having to run libtoolize under these 
circumstances may be a cure, but it doesn't solve the underlying problem. 
 
Comment 7 Gregorio Guidi (RETIRED) gentoo-dev 2005-07-16 14:35:45 UTC
What's the output of "Run Automake & Friends"? 
You tried with a newly created project or with the same one as in the original 
report? 
 
Comment 8 david somers 2005-07-16 16:12:44 UTC
(In reply to comment #7)  
> What's the output of "Run Automake & Friends"?   
  
The output of Automake & Friends was exactly the same as when I originally  
reported this bug... i.e. it hasn't changed.  
  
> You tried with a newly created project or with the same one as in the  
original   
> report?   
  
Newly created.  
  
FYI, the only changed to my system since this bug was reported by me is 
sys-devel/libtool: 1.5.16 to 1.5.18r-1, and sys-apps/sandbox not installed to 
installed 1.2.10 
Comment 9 Gregorio Guidi (RETIRED) gentoo-dev 2005-07-17 00:39:21 UTC
Ok, the problem is that the generated Makefile.cvs for C/C++ projects is 
incomplete (I was trying with a KDE project and didn't notice), there should 
be a call there to "libtoolize" before aclocal, autoheader... 
 
This should be fixed in 
kdevelop-3.2.1/languages/cpp/app_templates/cpphello/cpp-Makefile.cvs 
 
and also in the other files 
kdevelop-3.2.1/languages/cpp/app_templates/*/*-Makefile.cvs 
 
wherever the associate configure.in file (e.g. 
languages/cpp/app_templates/cpphello/configure.in) has a call to 
AM_PROG_LIBTOOL. 
You should report it to http://bugs.kde.org, or ask for 
https://bugs.kde.org/show_bug.cgi?id=102753 to be reopened. 
This fix is also better than having a faq about it: 
http://www.kdevelop.org/mediawiki/index.php/FAQ (2.7 and 2.8) 
 
In the meantime, run the auto* programs manually in your projects, for 
instance by doing "autoreconf --force --install" in the project dir. 
 
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2005-12-18 13:15:53 UTC
*** Bug 115975 has been marked as a duplicate of this bug. ***
Comment 11 Gregorio Guidi (RETIRED) gentoo-dev 2006-02-28 08:27:46 UTC
*** Bug 124416 has been marked as a duplicate of this bug. ***
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2006-07-21 06:55:23 UTC
*** Bug 141283 has been marked as a duplicate of this bug. ***
Comment 13 Airel Perez Suarez 2006-07-21 09:53:52 UTC
(In reply to comment #9)
sorry, I have the same problem, but i have te kdevelop verion 3.2.2 and in this version not exist any folder 
kdevelop/languagues/cpp or anything else
so, how do I solve this problem with kdevelop??

> Ok, the problem is that the generated Makefile.cvs for C/C++ projects is 
> incomplete (I was trying with a KDE project and didn't notice), there should 
> be a call there to "libtoolize" before aclocal, autoheader... 
>  
> This should be fixed in 
> kdevelop-3.2.1/languages/cpp/app_templates/cpphello/cpp-Makefile.cvs 
>  
> and also in the other files 
> kdevelop-3.2.1/languages/cpp/app_templates/*/*-Makefile.cvs 
>  
> wherever the associate configure.in file (e.g. 
> languages/cpp/app_templates/cpphello/configure.in) has a call to 
> AM_PROG_LIBTOOL. 
> You should report it to http://bugs.kde.org, or ask for 
> https://bugs.kde.org/show_bug.cgi?id=102753 to be reopened. 
> This fix is also better than having a faq about it: 
> http://www.kdevelop.org/mediawiki/index.php/FAQ (2.7 and 2.8) 
>  
> In the meantime, run the auto* programs manually in your projects, for 
> instance by doing "autoreconf --force --install" in the project dir. 
>  

Comment 14 Jakub Moc (RETIRED) gentoo-dev 2007-01-11 22:21:27 UTC
*** Bug 161646 has been marked as a duplicate of this bug. ***
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2007-01-12 18:53:08 UTC
*** Bug 161646 has been marked as a duplicate of this bug. ***
Comment 16 Jakub Moc (RETIRED) gentoo-dev 2007-09-11 20:26:31 UTC
*** Bug 192225 has been marked as a duplicate of this bug. ***