Re: lftp-pre2.6.0-20020731

2002-08-02 Thread Ayamura KIKUCHI

 Patch applied. Thanks!
 
 I wonder why term.h should be included later if it provides a lower level
 interface than curses.

Compilation errors occur while compilng testing/lftp-2.6.0.tar.gz
(lftp-pre2.6.0-20020801 ?).

(1) Solaris 9 with openssl-0.9.7-beta3

(a)

% gcc -DHAVE_CONFIG_H -I. -I../include -O2 -Wall -Wwrite-strings \
-Woverloaded-virtual -fno-exceptions -fno-rtti -fno-implement-inlines \
-Winline -c -o misc.o `test -f 'misc.cc' || echo './'`misc.cc
In file included from misc.cc:797:
/usr/include/term.h:1060: field `Ottyb' has incomplete type
/usr/include/term.h:1061: field `Nttyb' has incomplete type

 #if defined(HAVE_TERM_H)
-#include term.h
+/* #include term.h */
+extern char *tigetstr(char *);
 #elif defined(HAVE_NCURSES_TERM_H)
 #include ncurses/term.h
 #endif

(b)

% cc -DHAVE_CONFIG_H -I. -I../include -O2 -Wall -Wwrite-strings \
-Woverloaded-virtual -fno-exceptions -fno-rtti -fno-implement-inlines \
-Winline -c -o lftp_ssl.o `test -f 'lftp_ssl' || echo './'`ftp_sslc.cc

In file included from log.h:26,
 from lftp_ssl.cc:30:
/usr/include/unistd.h:191: parse error before `,' token
In file included from PollVec.h:31,
 from SMTask.h:24,
 from log.h:28,
 from lftp_ssl.cc:30:
/usr/include/sys/poll.h: In function `char* DES_crypt(const char*, const 
   char*)':
/usr/include/sys/poll.h:124: non-local function `int poll(DES_crypt(const 
   char*, const char*)::pollfd*, long unsigned int, int)' uses local type `
   DES_crypt(const char*, const char*)::pollfd'
In file included from log.h:28,
 from lftp_ssl.cc:30:
SMTask.h:33: local class `class DES_crypt(const char*, const char*)::SMTask' 
   shall not have static data member `DES_crypt(const char*, const 
   char*)::SMTask*DES_crypt(const char*, const char*)::SMTask::chain'
SMTask.h:34: local class `class DES_crypt(const char*, const char*)::SMTask' 
   shall not have static data member `DES_crypt(const char*, const 
   char*)::SMTask*DES_crypt(const char*, const char*)::SMTask::sched_scan'
SMTask.h:35: local class `class DES_crypt(const char*, const char*)::SMTask' 
   shall not have static data member `DES_crypt(const char*, const 
   char*)::PollVec DES_crypt(const char*, const char*)::SMTask::sched_total'
SMTask.h:58: local class `class DES_crypt(const char*, const char*)::SMTask' 
   shall not have static data member `TimeDate DES_crypt(const char*, const 
   char*)::SMTask::now'
SMTask.h:78: local class `class DES_crypt(const char*, const char*)::SMTask' 
   shall not have static data member `DES_crypt(const char*, const 
   char*)::SMTask*DES_crypt(const char*, const char*)::SMTask::current'
SMTask.h:33: field `DES_crypt(const char*, const char*)::SMTask::chain' in 
   local class cannot be static
SMTask.h:34: field `DES_crypt(const char*, const char*)::SMTask::sched_scan' in 
   local class cannot be static
SMTask.h:35: field `DES_crypt(const char*, const char*)::SMTask::sched_total' 
   in local class cannot be static
SMTask.h:58: field `DES_crypt(const char*, const char*)::SMTask::now' in local 
   class cannot be static
SMTask.h:78: field `DES_crypt(const char*, const char*)::SMTask::current' in 
   local class cannot be static
In file included from lftp_ssl.cc:30:
log.h:50: local class `class DES_crypt(const char*, const char*)::Log' shall 
   not have static data member `DES_crypt(const char*, const 
   char*)::Log*DES_crypt(const char*, const char*)::Log::global'
log.h:50: field `DES_crypt(const char*, const char*)::Log::global' in local 
   class cannot be static
lftp_ssl.cc:32: cannot declare static function inside another function
lftp_ssl.cc:33: cannot declare static function inside another function
lftp_ssl.cc:41: cannot declare static function inside another function
lftp_ssl.cc: In function `int lftp_ssl_verify_callback(int, X509_STORE_CTX*)':
lftp_ssl.cc:327: `int lftp_ssl_verify_callback(int, X509_STORE_CTX*)' was 
   declared `extern' and later `static'
lftp_ssl.cc:32: previous declaration of `int lftp_ssl_verify_callback(int, 
   X509_STORE_CTX*)'

unistd.h:
188 #if (defined(_XOPEN_SOURCE)  (_XOPEN_VERSION - 0 = 4)) || \
189 defined(__EXTENSIONS__)
190 extern size_t confstr(int, char *, size_t);
191 extern char *crypt(const char *, const char *);
^^^
192 #endif /* (defined(XOPEN_SOURCE)  (_XOPEN_VERSION - 0 = 4))... */


(2) IRIX 6.5.16f and Solaris 9

% /bin/sh ../libtool ... -lcurses -lm  
..

ld32: ERROR   33 : Unresolved text symbol tigetstr(char*) -- 
1st referenced by libtasks.a(misc.o).
Use linker option -v to see when and which objects,
archives and dsos are loaded.  

Undefined   first referenced
 symbol in file
tigetstr(char*) libtasks.a(misc.o)

-- ayamura



Re: lftp-pre2.6.0-20020724

2002-07-31 Thread Alexander V. Lukyanov

On Tue, Jul 30, 2002 at 09:21:58PM +0200, Piotr Krukowiecki wrote:
 On Thu, 25 Jul 2002, Alexander V. Lukyanov wrote:
  It looks like a bug not related to slots. Does the same work without slots?

 No. Without slots works fine

Ok, I have found the bug. Next pre-release will have it fixed.

  Currently a queue is assotiated with a host. I think it could be possible to
  assiticate it with host/slot pair. It looks easy to implement.

 That would be great

Did that. 20020731 snapshot has it.

--
   Alexander.



Re: lftp-pre2.6.0-20020731

2002-07-31 Thread Ayamura KIKUCHI

 New pre-release if available at ftp://lftp.yar.ru/lftp/devel/.

Compilation errors given below occur while compilng
lftp-pre2.6.0-20020731 on IRIX 6.5.15f with MIPSpro Compilers 7.3.1.3m.

% CC -DHAVE_CONFIG_H -I. -I../include -I/usr/local/include \
-O2 -OPT:Olimit=0 -LANG:ansi-for-init-scope=ON \
-c -o misc.o `test -f 'misc.cc' || echo './'`misc.cc

cc-1020 CC: ERROR File = /usr/include/term.h, Line = 1039
  The identifier SGTTY is undefined.

SGTTY Ottyb,/* original state of the terminal */
^
cc-1020 CC: ERROR File = /usr/include/term.h, Line = 1058
  The identifier chtype is undefined.

chtype sgr_mode;/* current phys. graphic rendition */
^
.

curses.h should be included before term.h on IRIX.

--- lftp-pre2.6.0-20020731/src/misc.cc.orig 2002-07-25 16:40:03.0 +0900
+++ lftp-pre2.6.0-20020731/src/misc.cc  2002-07-31 23:39:02.410922680 +0900
 -786,18 +786,18 
return ret;
 }
 
-#if defined(HAVE_TERM_H)
-#include term.h
-#elif defined(HAVE_NCURSES_TERM_H)
-#include ncurses/term.h
-#endif
-
 #if defined(HAVE_CURSES_H)
 #include curses.h
 #elif defined(HAVE_NCURSES_CURSES_H)
 #include ncurses/curses.h
 #endif
 
+#if defined(HAVE_TERM_H)
+#include term.h
+#elif defined(HAVE_NCURSES_TERM_H)
+#include ncurses/term.h
+#endif
+
 #if defined(HAVE_TIGETSTR)
 static bool terminfo_ok = true;
 static void init_terminfo()

-- ayamura
Ayamura KIKUCHI, M.D., Ph.D.



Re: lftp-pre2.6.0-20020731

2002-07-31 Thread Martin Carpenter

Ayamura KIKUCHI [EMAIL PROTECTED] wrote:

 Compilation errors given below occur while compilng
 lftp-pre2.6.0-20020731 on IRIX 6.5.15f with MIPSpro Compilers
 7.3.1.3m.

Similar errors on Solaris 2.6 with gcc. Tried including curses.h but got
other, exciting errors. Don't have time to debug further :(

Initial compiler output below.

Martin.


gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I/usr/local/ssl/inclu
de
   -O2 -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti
-c -
o misc.o `test -f 'misc.cc' || echo './'`misc.cc
In file included from misc.cc:790:
/usr/include/term.h:1060: syntax error before `,'
/usr/include/term.h:1081: syntax error before `;'
/usr/include/term.h:1082: syntax error before `;'
/usr/include/term.h:1101: syntax error before `['
/usr/include/term.h:1108: syntax error before `*'
/usr/include/term.h:: syntax error before `;'
/usr/include/term.h:1115: syntax error before `;'
/usr/include/term.h:1116: syntax error before `;'
/usr/include/term.h:1202: `chtype' was not declared in this scope
/usr/include/term.h:1202: parse error before `('
In file included from misc.cc:796:
/usr/include/curses.h:80: warning: abstract declarator used as declaration
*** Error code 1
make: Fatal error: Command failed for target `misc.o'
Current working directory /home/mjc/lftp/lftp-pre2.6.0/src
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
mjc@charlie /home/mjc/lftp/lftp-pre2.6.0 $ gcc --version
2.8.1
mjc@charlie /home/mjc/lftp/lftp-pre2.6.0 $ uname -a
SunOS charlie 5.6 Generic_105181-23 sun4u sparc SUNW,Ultra-5_10







Re: lftp-pre2.6.0-20020731

2002-07-31 Thread Glenn Maynard

On Wed, Jul 31, 2002 at 05:37:10PM +0200, Martin Carpenter wrote:
 Similar errors on Solaris 2.6 with gcc. Tried including curses.h but got
 other, exciting errors. Don't have time to debug further :(

This is the advantage of using the full link test; it makes sure the
header actually *works*.

-- 
Glenn Maynard



Re: lftp-pre2.6.0-20020724

2002-07-30 Thread Piotr Krukowiecki

Sorry for long response


On Thu, 25 Jul 2002, Alexander V. Lukyanov wrote:

 It looks like a bug not related to slots. Does the same work without slots?

No. Without slots works fine


 Try to compile lftp with ElectricFence (add -lefence to lftp_LDADD in src/Makefile).

It segfaults after PWD:
--- PWD
--- 257 / is the current directory.
cd ok, cwd=/
Segmentation fault (core dumped)

But gdb can't debug the core:

Program terminated with signal 11, Segmentation fault.
#0  0x2eac27 in ?? ()
(gdb) bt
#0  0x2eac27 in ?? ()
Cannot access memory at address 0xb8a8




 Currently a queue is assotiated with a host. I think it could be possible to
 assiticate it with host/slot pair. It looks easy to implement.

That would be great


-- 
Piotrek
irc: #debian.pl
Mors Drosophilis melanogastribus!



Re: lftp-pre2.6.0-20020724

2002-07-25 Thread Alexander V. Lukyanov

On Wed, Jul 24, 2002 at 06:04:36PM +0200, Piotr Krukowiecki wrote:
 Something is wrong with slot's:

 lftp :~ slot A
 lftp A :~ o X
 [standart messages]
 --- 230 User 'piotr' login successful.
 --- PWD
 --- 257 / is the current directory.
 cd ok, cwd=/
 lftp A piotr@X:p?7 rels
 --- CWD p?7
 --- 550 'p7': Nie ma takiego pliku ani katalogu
 rels: Access failed: 550 'p7': Nie ma takiego pliku ani katalogu
 lftp A piotr@X:p?7 cd an
 --- CWD p?7/an
 --- 550 'p7/an': Nie ma takiego pliku ani katalogu
 cd: Access failed: 550 'p7/an': Nie ma takiego pliku ani katalogu (p?7/an)
 lftp A piotr@X:p?7/p?7/an/p?7

It looks like a bug not related to slots. Does the same work without slots?
Try to compile lftp with ElectricFence (add -lefence to lftp_LDADD in src/Makefile).

 BTW (could not test it), but is this possibile? (probably not..):
 slot A
 o host1
 queue put file1
 slot B
 o host1 (the same host!)
 queue get file2

Currently a queue is assotiated with a host. I think it could be possible to
assiticate it with host/slot pair. It looks easy to implement.

--
   Alexander.  | http://www.yars.free.net/~lav/



Re: lftp-pre2.6.0-20020724

2002-07-24 Thread Piotr Krukowiecki

On Wed, 24 Jul 2002, Alexander V. Lukyanov wrote:

 New prerelease is available. Some bugs fixed, documentation updated.

Something is wrong with slot's:

lftp :~ slot A
lftp A :~ o X
[standart messages]
--- 230 User 'piotr' login successful.
--- PWD
--- 257 / is the current directory.
cd ok, cwd=/
lftp A piotr@X:p7 rels
--- CWD p7
--- 550 'p7': Nie ma takiego pliku ani katalogu
rels: Access failed: 550 'p7': Nie ma takiego pliku ani katalogu
lftp A piotr@X:p7 cd an
--- CWD p7/an
--- 550 'p7/an': Nie ma takiego pliku ani katalogu
cd: Access failed: 550 'p7/an': Nie ma takiego pliku ani katalogu (p7/an)
lftp A piotr@X:p7/p7/an/p7

'Nie ma takiego pliku ani katalogu' means 'No such file or directory'
(i don't know why it's speaking polish. I used 'LANG=C lftp-cvs' and 
'LANG=en_EN lftp-cvs' to run lftp)


BTW (could not test it), but is this possibile? (probably not..):
slot A
o host1
queue put file1
slot B
o host1 (the same host!)
queue get file2

^
get and put running together
?



-- 
Piotrek
irc: #debian.pl
Mors Drosophilis melanogastribus!



Re: lftp-pre2.6.0

2002-07-23 Thread Alexander V. Lukyanov

On Mon, Jul 22, 2002 at 08:25:02PM +0200, Piotr Krukowiecki wrote:
 'set net:limit-rate 5' doesn't work. (it should set the same rate for
 both down and up)

Here is the fix.

--- ResMgr.cc   2002/07/18 09:13:49 1.43
+++ ResMgr.cc   2002/07/23 08:25:16
 -854,6 +854,7  const char *ResMgr::UNumberPairValidate(
{
   if(UNumberValidate(value))
 return _(invalid pair of numbers);
+  return 0;
}

v[n]=0;

--
   Alexander.



Re: lftp-pre2.6.0

2002-07-22 Thread Piotr Krukowiecki

'set net:limit-rate 5' doesn't work. (it should set the same rate for 
both down and up)

 set net:limit-rate 5
 set |  grep limit-rate
set net:limit-rate 




-- 
Piotrek
irc: #debian.pl
Mors Drosophilis melanogastribus!



Re: lftp-pre2.6.0

2002-07-18 Thread Alexander V. Lukyanov

On Thu, Jul 18, 2002 at 11:24:42PM +0900, Ayamura KIKUCHI wrote:
  lftp-pre2.6.0 is available for testing:
 
 Compilation errors occur on IRIX 6.5.16f with MIPSpro Compilers 7.3.1.3m.

Thanks! The fix is to remove the `return'.

-- 
   Alexander.