LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Autoreconf Mess Up Configure Script (https://www.linuxquestions.org/questions/linux-software-2/autoreconf-mess-up-configure-script-698070/)

btbx 01-18-2009 01:56 AM

Autoreconf Mess Up Configure Script
 
I try to compile several "src.rpm" / source packages on Mandriva.
Unfortunately there is something wrong with autoreconf or autoconf command in my PC.

Everytime I run this command, it always mess up "./configure" script near part that check about "--enable-shared" parameter.

The result after running "./configure":

./configure: line 3045: syntax error near unexpected token `build_old_libs,'
./configure: line 3045: ` _LT_DECL(build_old_libs, enable_static, 0,'

Without running "autoreconf" the original configure script is OK.
The src.rpm/source package that does not need "autoreconf" can be configured and compiled sucessfully.

How to solve this problem?
Thank you

John VV 01-18-2009 07:02 PM

99% of the time the only time you need to run "autoreconf" is if the source is from svn or cvs .and THERE IS NO configure script to run.

what version of gcc is installed 3.4, 4.0 ,4.1, 4.2 , 4.3 ?
and what version of Autoconf is installed ,2.61 or what ?
Code:

gcc -v
 autoreconf -V
autogen -v


btbx 01-19-2009 05:49 AM

Thank you for the answer. Versions: GCC: 4.2.2, Autoconf: 2.63,
Autogen 5.9.5 (from Mandriva 2008.0 and 2009.0).

I found a solution that works, but I do not know how / why.

I guess LT_DECL had something to do with Libtool / libltdl. At first I use old Libtool version 1.5.26-5 (from Mandriva 2009.0), but there are errors on autoreconf. I upgrade to Libtool version 1.5.27a and it works. The errors are gone. I do not know why.

Can someone explain why upgrading the libtool solve the problem?
THank you.


All times are GMT -5. The time now is 01:08 PM.