Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

CB autotools build system crash with libtool version 2.2.6

<< < (2/2)

Jenna:
The patch breaks bootstrapping on older systems.
I build my nightlies with pbuilder inside a clean debian etch changeroot.
To test the patch I installed autotools and libtools (gcc was already installed) with the following revisions:

* m4 1.4.8-2
* autoconf 2.61-4
* automake 1:1.10+nogfdl-1
* libtool 1.5.22-4
* gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Bootstrapping works with a warning:

--- Code: ---Remember to add `AC_PROG_LIBTOOL' to `configure.in'.
You should update your `aclocal.m4' by running aclocal.

--- End code ---
./configure runs without errors

make stops after following error message:

--- Code: ---make[4]: Entering directory `/tmp/buildd/codeblocks-8.02svn/src/sdk/scripting/squirrel'
/bin/sh ../../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../../src/include -I../../../../src/include/scripting/include -I../../../../src/include/scripting/squirrel  -Ulinux -Uunix  -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT sqfuncstate.lo -MD -MP -MF .deps/sqfuncstate.Tpo -c -o sqfuncstate.lo sqfuncstate.cpp
../../../../libtool: line 807: X--tag=CXX: command not found
../../../../libtool: line 840: libtool: ignoring unknown tag : command not found
../../../../libtool: line 807: X--mode=compile: command not found
../../../../libtool: line 973: *** Warning: inferring the mode of operation is deprecated.: command not found
../../../../libtool: line 974: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../../../../libtool: line 1117: Xg++: command not found
../../../../libtool: line 1117: X-DHAVE_CONFIG_H: command not found
../../../../libtool: line 1117: X-I.: command not found
../../../../libtool: line 1117: X-I../../../../src/include: No such file or directory
../../../../libtool: line 1117: X-I../../../../src/include/scripting/include: No such file or directory
../../../../libtool: line 1117: X-I../../../../src/include/scripting/squirrel: No such file or directory
../../../../libtool: line 1117: X-Ulinux: command not found
../../../../libtool: line 1117: X-Uunix: command not found
../../../../libtool: line 1117: X-O2: command not found
../../../../libtool: line 1117: X-ffast-math: command not found
../../../../libtool: line 1117: X-DCB_AUTOCONF: command not found
../../../../libtool: line 1117: X-g: command not found
../../../../libtool: line 1117: X-O2: command not found
../../../../libtool: line 1117: X-DCB_PRECOMP: command not found
../../../../libtool: line 1117: X-Winvalid-pch: command not found
../../../../libtool: line 1117: X-fPIC: command not found
../../../../libtool: line 1117: X-DPIC: command not found
../../../../libtool: line 1117: X-fexceptions: command not found
../../../../libtool: line 1117: X-MT: command not found
../../../../libtool: line 1117: Xsqfuncstate.lo: command not found
../../../../libtool: line 1117: X-MD: command not found
../../../../libtool: line 1117: X-MP: command not found
../../../../libtool: line 1117: X-MF: command not found
../../../../libtool: line 1117: X.deps/sqfuncstate.Tpo: No such file or directory
../../../../libtool: line 1117: X-c: command not found
../../../../libtool: line 1168: Xsqfuncstate.lo: command not found
../../../../libtool: line 1173: libtool: compile: cannot determine name of library object from `': command not found
make[4]: *** [sqfuncstate.lo] Error 1

--- End code ---

It seems that LT_PREREQ and LT_INIT are not defined for older libtool-revisions, so ./bootstrap does not even throw an error as expected.

libfab:
Yes, Jens, you're right.
I forgot to mention that LT_INIT is a non-backward compatible feature of libtool 2.2.6, which is not there in prior versions (which use AC_PROG_LIBTOOL).
Could you do your test again, with the same older platform, yet after replacing LT_INIT and LT_PREREQ with plain AC_PROG_LIBTOOL and AC_DISABLE_STATIC in configure.in, leaving other patched changes as is?
I'd be curious to know the results. On my platform, leaving these is OK after all, yet you still have to add AC_CONFIG_MACRO_DIR([m4]) to configure.in with the patch.
Fab

Jenna:
I also tested last night:
it works.

There is also a little change needed for your patch:

in bootstrap the creating of subdir m4 should be conditional, to avoid warnings:


--- Code: ---if [ ! -d m4 ]; then
    mkdir m4;
fi

--- End code ---

libfab:
You're right again Jens !
Attached is the modded patch file, which integrates your remarks.
I suggest you could place it as an optional patch somewhere on your unofficial CB repository.
Best, Fab

[attachment deleted by admin]

Navigation

[0] Message Index

[*] Previous page

Go to full version