Ticket #1852 (closed defect: invalid)

Opened 12 months ago

Last modified 9 days ago

libtool

Reported by: Filcora@gmail.com Owned by: rakshasa
Priority: highest Milestone:
Component: libtorrent Version:
Severity: normal Keywords:
Cc:

Description

Hello im need help to fix it, im have Debian 5.0 Lenny

host426:/usr/src/libtorrent-0.12.5# make
make  all-recursive
make[1]: Access to the directory `/usr/src/libtorrent-0.12.5'
Making all in src
make[2]: Access to the directory `/usr/src/libtorrent-0.12.5/src'
Making all in torrent
make[3]: Access to the directory `/usr/src/libtorrent-0.12.5/src/torrent'
Making all in data
make[4]: Access to the directory `/usr/src/libtorrent-0.12.5/src/torrent/data'
/bin/sh ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../..    -g -O2 -g -DDEBUG -fvisibility=hidden   -I/usr/local/include/sigc++-2.0 -I/usr/local/lib/sigc++-2.0/include   -MT block.lo -MD -MP -MF .deps/block.Tpo -c -o block.lo block.cc
../../../libtool: line 841: X--tag=CXX: command not found
../../../libtool: line 874: libtool: ignoring unknown tag : command not found
../../../libtool: line 841: X--mode=compile: command not found
../../../libtool: line 1008: *** Warning: inferring the mode of operation is deprecated.: command not found
../../../libtool: line 1009: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../../../libtool: line 1152: Xg++: command not found
../../../libtool: line 1152: X-DHAVE_CONFIG_H: command not found
../../../libtool: line 1152: X-I.: command not found
../../../libtool: line 1152: X-I../../..: No such file or directory
../../../libtool: line 1152: X-I.: command not found
../../../libtool: line 1152: X-I./..: No such file or directory
../../../libtool: line 1152: X-I./../..: No such file or directory
../../../libtool: line 1152: X-I../../..: No such file or directory
../../../libtool: line 1152: X-g: command not found
../../../libtool: line 1152: X-O2: command not found
../../../libtool: line 1152: X-g: command not found
../../../libtool: line 1152: X-DDEBUG: command not found
../../../libtool: line 1152: X-fvisibility=hidden: command not found
../../../libtool: line 1152: X-I/usr/local/include/sigc++-2.0: No such file or directory
../../../libtool: line 1152: X-I/usr/local/lib/sigc++-2.0/include: No such file or directory
../../../libtool: line 1152: X-MT: command not found
../../../libtool: line 1152: Xblock.lo: command not found
../../../libtool: line 1152: X-MD: command not found
../../../libtool: line 1152: X-MP: command not found
../../../libtool: line 1152: X-MF: command not found
../../../libtool: line 1152: X.deps/block.Tpo: No such file or directory
../../../libtool: line 1152: X-c: command not found
../../../libtool: line 1205: Xblock.lo: command not found
../../../libtool: line 1210: libtool: compile: cannot determine name of library object from `': command not found
make[4]: *** [block.lo] Error 1
make[4]: Leaving directory `/usr/src/libtorrent-0.12.5/src/torrent/data'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/libtorrent-0.12.5/src/torrent'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/libtorrent-0.12.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/libtorrent-0.12.5'
make: *** [all] Error 2

Attachments

Change History

  Changed 12 months ago by anonymous

It's a problem with your system setup. What is the output of "/bin/sh --version"? Also, make sure that there was no error/warning when running configure. Re-run it to be sure.

  Changed 12 months ago by anonymous

Have the same problem with Debian Lenny

Output of /bin/sh --version

GNU bash, version 3.2.39(1)-release (i486-pc-linux-gnu)
Copyright (C) 2007 Free Software Foundation, Inc.

No errors/warnings running configure. Any other thoughts?

  Changed 12 months ago by anonymous

Which rtorrent/libtorrent version is this? If it's an svn checkout, try running autogen.sh again and check for warnings/errors.

  Changed 12 months ago by anonymous

This is from http://libtorrent.rakshasa.no/downloads/libtorrent-0.12.5.tar.gz I have run and rerun autogen.sh too. No errors. I notice that libtool is at version 1.5.26-4, is that compatible?

  Changed 12 months ago by anonymous

  Changed 11 months ago by anonymous

I also have the same issue. libtorrent-0.12.4 autogen, configure, and make ran OK but not libtorrent-0.12.5. Following is my console output for libtorrent-0.12.5:

dns-323:~# cd /mnt/HD_a2/libtorrent-0.12.5
dns-323:/mnt/HD_a2/libtorrent-0.12.5# export CXXFLAGS="-O2 -mcpu=xscale -mtune=x 
scale"
dns-323:/mnt/HD_a2/libtorrent-0.12.5# ./autogen.sh --libdir=/rt/lib --prefix=/rt 
dns-323:/mnt/HD_a2/libtorrent-0.12.5# ./autogen.sh --libdir=/rt/lib --prefix=/rt
aclocal...
autoheader...
libtoolize... using libtoolize
automake...
autoconf...
ready to configure
dns-323:/mnt/HD_a2/libtorrent-0.12.5# ./configure --disable-debug --libdir=/rt/l 
ib --prefix=/rt
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... armv5tejl-unknown-linux-gnu
checking host system type... armv5tejl-unknown-linux-gnu
checking for style of include used by make... GNU
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 ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 98304
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
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 whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether byte ordering is bigendian... no
checking the byte alignment... required
checking for user-defined CXXFLAGS... user-defined "-O2 -mcpu=xscale -mtune=xscale"
checking for TR1 support... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for epoll support... yes
checking for long... yes
checking size of long... 4
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking sys/statvfs.h usability... yes
checking sys/statvfs.h presence... yes
checking for sys/statvfs.h... yes
checking sys/statfs.h usability... yes
checking sys/statfs.h presence... yes
checking for sys/statfs.h... yes
checking for statvfs... ok
checking if compiler supports __attribute__((visibility("default")))... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for OPENSSL... yes
checking for STUFF... yes
checking for madvise... yes
checking signedness of mincore parameter... unsigned
checking for proper overloaded template function disambiguation... yes
checking if compiler supports __attribute__((unused))... yes
configure: creating ./config.status
config.status: creating libtorrent.pc
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/torrent/Makefile
config.status: creating src/torrent/peer/Makefile
config.status: creating src/torrent/data/Makefile
config.status: creating src/data/Makefile
config.status: creating src/dht/Makefile
config.status: creating src/download/Makefile
config.status: creating src/net/Makefile
config.status: creating src/protocol/Makefile
config.status: creating src/tracker/Makefile
config.status: creating src/utils/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
dns-323:/mnt/HD_a2/libtorrent-0.12.5# make
make  all-recursive
make[1]: Entering directory `/mnt/HD_a2/libtorrent-0.12.5'
Making all in src
make[2]: Entering directory `/mnt/HD_a2/libtorrent-0.12.5/src'
Making all in torrent
make[3]: Entering directory `/mnt/HD_a2/libtorrent-0.12.5/src/torrent'
Making all in data
make[4]: Entering directory `/mnt/HD_a2/libtorrent-0.12.5/src/torrent/data'
/bin/sh ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../..    -O2 -mcpu=xscale -mtune=xscale -DNDEBUG -fvisibility=hidden   -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include   -MT block.lo -MD -MP -MF .deps/block.Tpo -c -o block.lo block.cc
../../../libtool: line 841: X--tag=CXX: command not found
../../../libtool: line 874: libtool: ignoring unknown tag : command not found
../../../libtool: line 841: X--mode=compile: command not found
../../../libtool: line 1008: *** Warning: inferring the mode of operation is deprecated.: command not found
../../../libtool: line 1009: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../../../libtool: line 1152: Xg++: command not found
../../../libtool: line 1152: X-DHAVE_CONFIG_H: command not found
../../../libtool: line 1152: X-I.: command not found
../../../libtool: line 1152: X-I../../..: No such file or directory
../../../libtool: line 1152: X-I.: command not found
../../../libtool: line 1152: X-I./..: No such file or directory
../../../libtool: line 1152: X-I./../..: No such file or directory
../../../libtool: line 1152: X-I../../..: No such file or directory
../../../libtool: line 1152: X-O2: command not found
../../../libtool: line 1152: X-mcpu=xscale: command not found
../../../libtool: line 1152: X-mtune=xscale: command not found
../../../libtool: line 1152: X-DNDEBUG: command not found
../../../libtool: line 1152: X-fvisibility=hidden: command not found
../../../libtool: line 1152: X-I/usr/include/sigc++-2.0: No such file or directory
../../../libtool: line 1152: X-I/usr/lib/sigc++-2.0/include: No such file or directory
../../../libtool: line 1152: X-MT: command not found
../../../libtool: line 1152: Xblock.lo: command not found
../../../libtool: line 1152: X-MD: command not found
../../../libtool: line 1152: X-MP: command not found
../../../libtool: line 1152: X-MF: command not found
../../../libtool: line 1152: X.deps/block.Tpo: No such file or directory
../../../libtool: line 1152: X-c: command not found
../../../libtool: line 1205: Xblock.lo: command not found
../../../libtool: line 1210: libtool: compile: cannot determine name of library object from `': command not found
make[4]: *** [block.lo] Error 1
make[4]: Leaving directory `/mnt/HD_a2/libtorrent-0.12.5/src/torrent/data'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/mnt/HD_a2/libtorrent-0.12.5/src/torrent'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/HD_a2/libtorrent-0.12.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/HD_a2/libtorrent-0.12.5'
make: *** [all] Error 2
dns-323:/mnt/HD_a2/libtorrent-0.12.5# exit
logout

  Changed 11 months ago by anonymous

output of /binsh --version is

GNU bash, version 3.2.39(1)-release (arm-unknown-linux-gnu)
Copyright (C) 2007 Free Software Foundation, Inc.

{{{

}}}

follow-ups: ↓ 9 ↓ 20   Changed 11 months ago by anonymous

rm -f scripts/{libtool,lt*}.m4

and then try again with ./autogen ; ./configure ; make

in reply to: ↑ 8   Changed 11 months ago by anonymous

Replying to anonymous:

rm -f scripts/{libtool,lt*}.m4 and then try again with ./autogen ; ./configure ; make

this works for libtorrent. When it gets to rtorrent, I got:

g++ -DHAVE_CONFIG_H -I. -I.. -I. -I..    -O2 -mcpu=xscale -mtune=xscale -DNDEBUG -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include     -I/usr/local/include   -I/usr/local/include  -MT command_peer.o -MD -MP -MF .deps/command_peer.Tpo -c -o command_peer.o command_peer.cc
command_peer.cc: In function 'void initialize_command_peer()':
command_peer.cc:148: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.3/README.Bugs> for instructions.
make[3]: *** [command_peer.o] Error 1
make[3]: Leaving directory `/mnt/HD_a2/rtorrent-0.8.5/src'

  Changed 11 months ago by anonymous

I have the same problem. Successfully compiled the libtorrent by deleting all the m4 scripts but I cannot compile rtorrent.

I got this error message;

/bin/sh ../libtool --tag=CXX   --mode=link g++  -g -O2 -g -DDEBUG -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include     -I/usr/local/include     -o rtorrent command_download.o command_dynamic.o command_events.o command_file.o command_helpers.o command_local.o command_network.o command_object.o command_peer.o command_tracker.o command_scheduler.o command_ui.o control.o globals.o main.o option_parser.o signal_handler.o ui/libsub_ui.a core/libsub_core.a display/libsub_display.a input/libsub_input.a rpc/libsub_rpc.a utils/libsub_utils.a -lncurses  -lsigc-2.0   -lcurl   -L/usr/local/lib -ltorrent
../libtool: line 841: X--tag=CXX: command not found
../libtool: line 874: libtool: ignoring unknown tag : command not found
../libtool: line 841: X--mode=link: command not found
../libtool: line 1008: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 1009: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
gcc: no input files
gcc: no input files
gcc: no input files
gcc: no input files
../libtool: line 2253: X-g: command not found
../libtool: line 2253: X-O2: command not found
../libtool: line 2253: X-g: command not found
../libtool: line 2253: X-DDEBUG: command not found
../libtool: line 2253: X-I/usr/include/sigc++-2.0: No such file or directory
../libtool: line 2253: X-I/usr/lib/sigc++-2.0/include: No such file or directory
../libtool: line 2253: X-I/usr/local/include: No such file or directory
../libtool: line 1967: X-L/usr/local/lib: No such file or directory
../libtool: line 2422: Xrtorrent: command not found
../libtool: line 2427: X: command not found
../libtool: line 2434: Xrtorrent: command not found
../libtool: line 2442: mkdir /.libs: No such file or directory
mkdir: cannot create directory `/.libs': Permission denied
make[3]: *** [rtorrent] Error 1
make[3]: Leaving directory `/home/tomikaa/other/src/rtorrent-0.8.5/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/tomikaa/other/src/rtorrent-0.8.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tomikaa/other/src/rtorrent-0.8.5'
make: *** [all] Error 2

  Changed 11 months ago by anonymous

Try "rm -f scripts/{libtool,lt*}.m4" in the rtorrent directory.

  Changed 11 months ago by anonymous

I can confirm that this happened. I had the exact same setup and got the exact same errors, although running "rm -f scripts/{libtool,lt*}.m4" in both the libtorrent and rtorrent directory before running autogen.sh solved the problem.

This should be fixed, or this workaround/fix should be advertised a bit better.

follow-up: ↓ 14   Changed 10 months ago by Thelen

rm -f scripts/{libtool,lt*}.m4

Does indeed work.

I think the problem is somewhere in ./autogen.sh as running just ./configure without it seems to work fine.

in reply to: ↑ 13   Changed 8 months ago by chrispenner1979@yahoo.ca

Replying to Thelen:

rm -f scripts/{libtool,lt*}.m4 Does indeed work. I think the problem is somewhere in ./autogen.sh as running just ./configure without it seems to work fine.

Thanks a ton, that worked great.

  Changed 8 months ago by anonymous

thanks guys

  Changed 7 months ago by anonymous

ummmm....

On my system it needs the file I just deleted:

make: *** No rule to make target scripts/libtool.m4', needed by Makefile.in'.

argh! Lt 0.12.6

  Changed 7 months ago by anonymous

fixed make: *** No rule to make target scripts/libtool.m4', needed by Makefile.in'.

by unpacking the tarball and ./configure ; make. Ignored autogen altogether.

  Changed 7 months ago by rakshasa

  • status changed from new to closed
  • resolution set to invalid

  Changed 7 months ago by Derk

Its really work without ./autogen.sh )) Just do ./configure and make

in reply to: ↑ 8   Changed 6 months ago by anonymous

It's work fine for compile libtorrent-0.12.6 under debian lenny.

1) rm -f scripts/{libtool,lt*}.m4
2) ./autogen ; ./configure ; make

follow-up: ↓ 22   Changed 9 days ago by anonymous

Umm... Why is this bug closed? It's still present. The README/INSTALL says to run ./autogen.sh, so either the bug in autogen.sh should be fixed or the README/INSTALL files should be corrected.

Actually, the README says "Run "./autogen.sh" to generate the configure scripts if nessesary(sic!)". It should be clarified that it is not necessary to generate new configure scrips if they are already present, since some people seem to get stuck there.

in reply to: ↑ 21   Changed 9 days ago by anonymous

Why? Because there's nothing to be fixed... well, other than that typo.

Running ./autogen.sh is needed only for trunk, not necessarily for stable tarball. Anyway it works under sane toolchain. You fail.

Add/Change #1852 (libtool)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.