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

Compileproblem lftp



Hi, I tried to compile lftp myself, but always got the same problem.
Viking:/tmp/lftp-pre2.0.0-990611# /usr/local/bin/lftp
Warning: getcwd() failed: Success
Segmentation fault
 
well, i have some more info. I did a strace ./lftp and there's something
wrong with the terminal info getting or so. 

SYS_175(0, 0x40039594, 0x40039614, 0x8, 0) = 0
ioctl(0, TIOCGWINSZ, {ws_row=41, ws_col=117, ws_xpixel=0, ws_ypixel=0})= 0
ioctl(0, TIOCSWINSZ, {ws_row=41, ws_col=117, ws_xpixel=0, ws_ypixel=0})= 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, SNDCTL_TMR_STOP, {B38400 opost isig -icanon -echo ...}) = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++


I also did a gdb:
bash-2.02$ gdb ./lftp
GNU gdb 4.17.m68k.objc.threads.hwwp.fpu.gnat
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-pc-linux-gnu"...(no debugging symbols found)...
(gdb) run
Starting program: /usr/local/tmp/lftp-pre2.0.0-990611/src/./lftp 
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
Warning: getcwd() failed: Success (no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x400dfe71 in   ()
(gdb) info stack
#0  0x400dfe71 in   ()
#1  0x40027148 in rl_prep_terminal ()
#2  0x40021d1f in readline ()
#3  0x805a07c in lftp_readline ()
#4  0x808d98a in ReadlineFeeder::NextCmd ()
#5  0x805b9c4 in CmdExec::Do ()
#6  0x806ee0c in SMTask::Schedule ()
#7  0x8058562 in WaitDone ()
#8  0x8058c98 in main ()
#9  0x400a618f in   ()

this is the info when debug option on compile was used:
(gdb) info stack
#0  0x400bee71 in   ()
#1  0x80923ca in rl_prep_terminal () at commands.cc:1663
#2  0x808dfb2 in readline () at commands.cc:1663
#3  0x805e13c in lftp_readline () at lftp.cc:349
#4  0x80a0b7a in ReadlineFeeder::NextCmd (this=0x80c2a20, exec=0x80bf810,
prompt=0x80c23d8 "lftp :~> ")
    at lftp.cc:130
#5  0x805fa84 in CmdExec::Do () at lftp.cc:349
#6  0x8072ecc in SMTask::Schedule () at commands.cc:1663
#7  0x805c622 in WaitDone (exec=0x80bf810) at lftp.cc:79
#8  0x805cd58 in main (argc=1, argv=0xbffffb54) at lftp.cc:336
#9  0x4008518f in   ()

I have libreadline3:
bash-2.02$ ldd -v libreadline.so.3.0 
        libtermcap.so.2 => /lib/libtermcap.so.2 (0x40025000)
        libc.so.6 => /lib/libc.so.6 (0x40029000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)
        libc.so.5 => /lib/libc.so.5 (0x4011d000)

        Version information:
        /lib/libc.so.6:
                ld-linux.so.2 (GLIBC_2.1.1) => /lib/ld-linux.so.2
                ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2
                ld-linux.so.2 (GLIBC_2.0) => /lib/ld-linux.so.2

and i can perfectly run the lftp from the deb package:
bash-2.02$ lftp --version
Lftp | Version pre2.0.0-990602 | Copyright (c) 1996-1999 Alexander V.Lukyanov
This is free software with ABSOLUTELY NO WARRANTY. See COPYING for details.
Send bug reports and questions to <lftp@uniyar.ac.ru>.


what is the problem or what did i do wrong?

-- 
Bernhard







Reply to: