libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Build error -> libtool: link: CURRENT `XXX.lo' is not a nonnegative int


From: Etienne M. Gagnon
Subject: Build error -> libtool: link: CURRENT `XXX.lo' is not a nonnegative integer
Date: Sun, 19 Aug 2001 17:04:25 -0400

Hi There!

I'm having a little problem with libtool on Debian (unstable).  I would
very much appreciate your help.  Here are the details.

My work-in-progress version of SableVM uses autoconf (2.52-1), automake
(1.4-p4-1) and libtool (1.4b-3).

Everything used to build nicely until lately.  But, today the build
process seems broken.  Here's what happens:

$ aclocal
$ autoconf
$ autoheader
autoheader2.50: src/include/config.h.in is unchanged
$ automake -a
$ ./configure --prefix=/home/egagnon/work
...
checking whether the g++ linker (/usr/bin/ld) supports shared
libraries... yes
ltcf-cxx.sh: error: problem compiling test program

checking if g++ supports -c -o file.o... no
...
config.status: creating src/include/config.h
$ make
...
make[3]: Entering directory `/home/egagnon/sablevm/src/libsablevm'
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../../src/include -I./include
-DBOOT_CLASS_PATH=\"/home/egagnon/work/share/sablepath\"
-DBOOT_LIBRARY_PATH=\"/home/egagnon/work/lib/sablepath\"    -g -O2 -Wall
-W -Wundef -Wshadow
-Wpointer-arith -Wbad-function-cast -Wcast-align        -Wwrite-strings
-Wsign-compare
-Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations                 -Wnested-externs
-Winline               -Wlong-long -std=iso9899:1990 -pedantic-errors
-O0 -ggdb3 -Werror -c
libsablevm.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I../../src/include -I./include
-DBOOT_CLASS_PATH=\"/home/egagnon/work/share/sablepath\"
-DBOOT_LIBRARY_PATH=\"/home/egagnon/work/lib/sablepath\" -g -O2 -Wall -W
-Wundef -Wshadow
-Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings
-Wsign-compare -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline
-Wlong-long -std=iso9899:1990
-pedantic-errors -O0 -ggdb3 -Werror -Wp,-MD,.deps/libsablevm.pp -c
libsablevm.c  -fPIC -DPIC -o
.libs/libsablevm.o
gcc -DHAVE_CONFIG_H -I. -I. -I../../src/include -I./include
-DBOOT_CLASS_PATH=\"/home/egagnon/work/share/sablepath\"
-DBOOT_LIBRARY_PATH=\"/home/egagnon/work/lib/sablepath\" -g -O2 -Wall -W
-Wundef -Wshadow
-Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings
-Wsign-compare -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline
-Wlong-long -std=iso9899:1990
-pedantic-errors -O0 -ggdb3 -Werror -Wp,-MD,.deps/libsablevm.pp -c
libsablevm.c -o libsablevm.o
>/dev/null 2>&1
/bin/sh ../../libtool --mode=link gcc  -g -O2 -Wall -W -Wundef -Wshadow
-Wpointer-arith -Wbad-function-cast -Wcast-align               
-Wwrite-strings -Wsign-compare
-Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations                 -Wnested-externs
-Winline               -Wlong-long -std=iso9899:1990 -pedantic-errors
-O0 -ggdb3 -Werror  -o
libsablevm.la -rpath /home/egagnon/work/lib -version-info  libsablevm.lo
-lpthread -lm -ldl -lffi
-lltdl 
libtool: link: CURRENT `libsablevm.lo' is not a nonnegative integer
libtool: link: `libsablevm.lo' is not valid version information
make[3]: *** [libsablevm.la] Error 1
...

I do not have any idea what this error message is about.  The version
information in 
configure.ac used to work well.  Here it is:

...
PACKAGE="sablevm"
VERSION="0.1.6"
BUG-REPORT-ADDRESS="http://www.sablevm.org/";
LIBVERSION="0:6:0"

AC_INIT(${PACKAGE}, ${VERSION}, ${BUG-REPORT-ADDRESS})
AC_CONFIG_SRCDIR([src/sablevm/sablevm.c])

AC_SUBST(PACKAGE)
AC_SUBST(VERSION)
AC_SUBST(LIBVERSION)

AM_INIT_AUTOMAKE(${PACKAGE},${VERSION})
AM_CONFIG_HEADER(src/include/config.h)
...

And in src/libsablevm/Makefile.am:

lib_LTLIBRARIES = libsablevm.la
...
libsablevm_la_LIBADD = -lpthread -lm -ldl -lffi -lltdl
libsablevm_la_LDFLAGS = -version-info @LIBVERSION@
...


Where should I start looking, to find the cause of this build error?  If
you think it is a libtool problem (as I strongly suspect), can I help
you finding it, or do you absolutely want me to send you a .tar.gz file
of my current work-in-progress snapshot?

Thanks in advance for your help.

Etienne

-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux www 2.4.7-k6 #1 Sun Jul 22 14:31:25 EST 2001 i586
Locale: LANG=C, LC_CTYPE=C

Versions of packages libtool depends on:
ii  autotools-dev         20010809.1         Update infrastructure for
config.{
ii  cpp                   2:2.95.4-6         The GNU C preprocessor.
ii  file                  3.33-5             Determines file type using
"magic"
ii  gcc                   2:2.95.4-6         The GNU C compiler.
ii  gcc [c-compiler]      2:2.95.4-6         The GNU C compiler.
ii  gcc-2.95 [c-compiler] 1:2.95.4-0.010810  The GNU C compiler.
ii  gcc-3.0 [c-compiler]  1:3.0.1-0pre010811 The GNU C compiler.
ii  libc6-dev             2.2.4-1            GNU C Library: Development
Librari
ii  libc6-dev [libc-dev]  2.2.4-1            GNU C Library: Development
Librari

--
Etienne M. Gagnon                                    address@hidden
SableVM:                                       http://www.sablevm.org/
SableCC:                                       http://www.sablecc.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]