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



lftp-pre2.6.0-20020731

2002-07-31 Thread Alexander V. Lukyanov

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

* per-slot queues. Now you can have several queues for the same site using slots.
* queue can be stopped now. Use `queue' with no args to create a stopped
  queue, `queue start' to run it, `queue stop' to stop it. When you exit lftp,
  the queue will start automatically.

-- 
   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