Hello all,
I'm trying to build lftp-3.0.11 with SSL support on Solaris 8 with gcc
2.95 but it bombs out complaining about /usr/include/arpa/inet.h.
[EMAIL PROTECTED]:~/src/lftp-3.0.11
$ gcc --version
2.95.2
[EMAIL PROTECTED]:~/src/lftp-3.0.11
$ LDFLAGS="-static" ./configure --prefix=/usr/local
--with-ssl=/usr/local/openssl-0.9.7d && make
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
<... snip ...>
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking term.h usability... no
checking term.h presence... yes
configure: WARNING: term.h: present but cannot be compiled
configure: WARNING: term.h: check for missing prerequisite headers?
configure: WARNING: term.h: see the Autoconf documentation
configure: WARNING: term.h: section "Present But Cannot Be Compiled"
configure: WARNING: term.h: proceeding with the preprocessor's result
configure: WARNING: term.h: in the future, the compiler will take precedence
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to [EMAIL PROTECTED] ##
configure: WARNING: ## ------------------------------------ ##
checking for term.h... yes
checking ncurses/curses.h usability... no
checking ncurses/curses.h presence... no
checking for ncurses/curses.h... no
<... snip ...>
checking sys/ptem.h usability... no
checking sys/ptem.h presence... yes
configure: WARNING: sys/ptem.h: present but cannot be compiled
configure: WARNING: sys/ptem.h: check for missing prerequisite headers?
configure: WARNING: sys/ptem.h: proceeding with the preprocessor's result
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to [EMAIL PROTECTED] ##
configure: WARNING: ## ------------------------------------ ##
checking for sys/ptem.h... yes
checking sys/pte.h usability... no
checking sys/pte.h presence... no
<... snip ...>
Making all in src
make[1]: Entering directory `/export/home/misjxm/src/lftp-3.0.11/src'
source='ResMgr.cc' object='ResMgr.lo' libtool=yes \
depfile='.deps/ResMgr.Plo' tmpdepfile='.deps/ResMgr.TPlo' \
depmode=gcc /bin/bash ../depcomp \
/bin/bash ../libtool --silent --mode=compile 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 -o ResMgr.lo ResMgr.cc
In file included from ResMgr.cc:33:
/usr/include/arpa/inet.h:52: parse error before `*'
ResMgr.cc: In function `static const char * ResMgr::IPv4AddrValidate(char **)':
ResMgr.cc:787: warning: comparison between signed and unsigned
make[1]: *** [ResMgr.lo] Error 1
make[1]: Leaving directory `/export/home/misjxm/src/lftp-3.0.11/src'
make: *** [all-recursive] Error 1
Here is the offending section of inet.h:
47 /*
48 * External definitions for
49 * functions in inet(3N)
50 */
51 #ifdef __STDC__
52 extern int inet_aton(const char *, struct in_addr *);
53 extern int inet_net_pton(int, const char *, void *, size_t);
54 extern int inet_pton(int, const char *, void *);
55 extern const char *inet_ntop(int, const void *, char *, size_t);
56 extern in_addr_t inet_addr(const char *);
57 extern in_addr_t inet_lnaof(struct in_addr);
58 extern struct in_addr inet_makeaddr(in_addr_t, in_addr_t);
59 extern in_addr_t inet_netof(struct in_addr);
60 extern in_addr_t inet_network(const char *);
61 extern char *inet_ntoa(struct in_addr);
Any ideas?
Thanks!
-Jacob