lftp 2.4.1 problem on solaris 5.5.1

2001-08-08 Thread Nils Lohner


Hello Alexander, 
 I found a compile problem on solaris.
  

Making all in lib
make[1]: Entering directory `/sup/build/lftp-2.4.1/lib'
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include-O2 -Wall -c trio.c
trio.c: In function `TrioPreprocess':
trio.c:1195: `int64_t' undeclared (first use in this function)
trio.c:1195: (Each undeclared identifier is reported only once
trio.c:1195: for each function it appears in.)
trio.c:1201: `int32_t' undeclared (first use in this function)
trio.c:1207: `int16_t' undeclared (first use in this function)
trio.c:1212: `int8_t' undeclared (first use in this function)
trio.c: In function `trio_printfv':
trio.c:3073: warning: `dummy' might be used uninitialized in this function
trio.c: In function `trio_fprintfv':
trio.c:3116: warning: `dummy' might be used uninitialized in this function
trio.c: In function `trio_dprintfv':
trio.c:3158: warning: `dummy' might be used uninitialized in this function
trio.c: In function `trio_sprintfv':
trio.c:3207: warning: `dummy' might be used uninitialized in this function
trio.c: In function `trio_snprintfv':
trio.c:3266: warning: `dummy' might be used uninitialized in this function
trio.c: In function `trio_printv_ref':
trio.c:4066: warning: `dummy' might be used uninitialized in this function
trio.c: In function `trio_scanfv':
trio.c:5286: warning: `dummy' might be used uninitialized in this function
trio.c: In function `trio_fscanfv':
trio.c:5329: warning: `dummy' might be used uninitialized in this function
trio.c: In function `trio_dscanfv':
trio.c:5371: warning: `dummy' might be used uninitialized in this function
trio.c: In function `trio_sscanfv':
trio.c:5414: warning: `dummy' might be used uninitialized in this function
make[1]: *** [trio.o] Error 1
make[1]: Leaving directory `/sup/build/lftp-2.4.1/lib'
make: *** [all-recursive] Error 1
/sup/build/lftp-2.4.1  uname -a
SunOS tignest 5.5.1 Generic_103640-29 sun4u sparc SUNW,Ultra-60
/sup/build/lftp-2.4.1  gcc --version
2.95.2
/sup/build/lftp-2.4.1  

Neither of the definitions in trio.c work, int64_t or __int64.
The compile worked fine on solaris 5.7, but doesn't here on 5.5.1  Any
suggestions?

stdint.g doesn't exist, sys/types.h doesn't define these.  I see a
uint64_t defined, but don't see where the definition comes from by
grepping through system header files.

Thanks,
Nils.




Re: lftp 2.4.1 problem on solaris 5.5.1

2001-08-08 Thread Alexander V. Lukyanov

On Wed, Aug 08, 2001 at 05:02:32PM +0200, Nils Lohner wrote:
 Another BUG popped up though:
 
 gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -O2 -Wall -Wwrite-strings 
-Woverloaded-virtual -fno-exceptions -fno-rtti -fno-implement-inlines -Winline -c 
ftpclass.cc
 ftpclass.cc: In method `int Ftp::Do()':
 ftpclass.cc:1674: implicit declaration of function `int inet_aton(...)'
 
 I can't see where the definition comes from... I tried changing this to
 zero (configure determined it was '1'):
 /* Define if you have the `inet_aton' function. */
 #define HAVE_INET_ATON 0

comment it out altogether. Solaris 2.5.1 seems to have that function, but no
prototype. I'll add a test for inet_aton declaration.

-- 
   Alexander.