1833873 Members
2162 Online
110063 Solutions
New Discussion

lftp 3.0.6 compilation

 
Bill McNAMARA_1
Honored Contributor

lftp 3.0.6 compilation

I get the following error when configuring the Makefile on 11.11:

kibo:root> ./configure
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking how to link simple c++ programs... using gcc
checking if gcc supports -fno-exceptions -fno-rtti... yes
checking if -fno-implement-inlines implements virtual functions... yes
checking if c++ compiler works... yes
checking if c++ compiler can handle dynamic initializers... no
configure: error: C++ compiler cannot handle dynamic initializers of static obje
cts

-- from the configure file

echo "${ECHO_T}$cxx_dynamic_init" >&6
if test x$cxx_dynamic_init = xno; then
{ { echo "$as_me:$LINENO: error: C++ compiler cannot handle dynamic initia
lizers of static objects" >&5
echo "$as_me: error: C++ compiler cannot handle dynamic initializers of static o
bjects" >&2;}
{ (exit 1); exit 1; }; }
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

--

I've got the following installed from hpux.connect.org:

autoconf-2.57-sd-11.00.depot
autoconf-3.57-sd-11.00.depot
bison-1.875-sd-11.00.depot
db-4.2.52-sd-11.00.depot
flex-2.5.4a-sd-11.00.depot
gawk-3.1.3-sd-11.00.depot
gcc-3.3.2-sd-11.00.depot
gettext-0.14.1-sd-11.00.depot
libiconv-1.9.2-sd-11.00.depot
libiconv-2.9.2-sd-11.00.depot
libiconv-3.9.2-sd-11.00.depot
m4-1.4-sd-11.00.depot
make-3.80-sd-11.00.depot
perl-5.8.3-sd-11.00.depot
texinfo-4.5-sd-11.00.depot


The exact same configure with same depots works on 11.00... so I don't believe it's the GNU stuff.

I also installed PHCO_25569 (libc) and 24207 (libm)

anything else OS side to install?
It works for me (tm)
12 REPLIES 12
Fred Ruffet
Honored Contributor

Re: lftp 3.0.6 compilation

Could you provide the config.log ?

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Bill McNAMARA_1
Honored Contributor

Re: lftp 3.0.6 compilation

hopefully attached. 260
It works for me (tm)
Bill McNAMARA_1
Honored Contributor

Re: lftp 3.0.6 compilation

sorry, I modified the configure script to continue instead of exiting on the error.
(which build a Makefile, but can't compile)

Here is the true error...


It works for me (tm)
Bill McNAMARA_1
Honored Contributor

Re: lftp 3.0.6 compilation

It configures when I install OS patches:

PHCO_25569
PHSS_22535
PHSS_24207

however, now it fails on the make:

root> make
No suffix list.
Making all in include
/tmp/lftp-3.0.6/include
No suffix list.
make all-am
No suffix list.
Making all in readline-4.3
/tmp/lftp-3.0.6/readline-4.3
rm -f vi_mode.o
gcc -c -DHAVE_CONFIG_H -I. -I. -I/usr/local/include -DRL_LIBRARY_VERSI
ON='"4.3"' -g -O vi_mode.c
vi_mode.c: In function `_rl_vi_change_mbchar_case':
vi_mode.c:691: error: `mbrtowc' undeclared (first use in this function)
vi_mode.c:691: error: (Each undeclared identifier is reported only once
vi_mode.c:691: error: for each function it appears in.)
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
It works for me (tm)
Fred Ruffet
Honored Contributor

Re: lftp 3.0.6 compilation

After patching, did you issue a make clean, and removed the config.cache ?

Fred
--

"Reality is just a point of view." (P. K. D.)
Bill McNAMARA_1
Honored Contributor

Re: lftp 3.0.6 compilation

The binary created on 11.00 works on 11i, so I'm going with that for the moment on 11i.

however, I tried the clean.. with same effect:

root> make
No suffix list.
Making all in include
/tmp/lftp-3.0.6/include
No suffix list.
make all-am
No suffix list.
Making all in readline-4.3
/tmp/lftp-3.0.6/readline-4.3
rm -f readline.o
gcc -c -DHAVE_CONFIG_H -I. -I. -I/usr/local/include -DRL_LIBRARY_VERSI
ON='"4.3"' -g -O readline.c
rm -f vi_mode.o
gcc -c -DHAVE_CONFIG_H -I. -I. -I/usr/local/include -DRL_LIBRARY_VERSI
ON='"4.3"' -g -O vi_mode.c
vi_mode.c: In function `_rl_vi_change_mbchar_case':
vi_mode.c:691: error: `mbrtowc' undeclared (first use in this function)
vi_mode.c:691: error: (Each undeclared identifier is reported only once
vi_mode.c:691: error: for each function it appears in.)
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
It works for me (tm)
Roger Storvik
Advisor

Re: lftp 3.0.6 compilation

Did you solve this issue?
I have the same problem compiling lftp 3.0.11.

Could not find the binaries for lftp on HPUX anywhere either..

Roger
First they ignore you, Then they laugh at you, Then they fight you, Then you win. - Gandhi -
Roger Storvik
Advisor

Re: lftp 3.0.6 compilation

I did get past this issue by installing readline 5.0 separately, but got into a new problem:

if /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -I/usr/local/include -O2 -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti -fno-implement-inlines -Winline -MT Resolver.lo -MD -MP -MF ".deps/Resolver.Tpo" -c -o Resolver.lo Resolver.cc; \
then mv -f ".deps/Resolver.Tpo" ".deps/Resolver.Plo"; else rm -f ".deps/Resolver.Tpo"; exit 1; fi
Resolver.cc: In function `int extract_domain(const unsigned char*, const unsigned char*, int, char*, int)':
Resolver.cc:395: error: `dn_expand' undeclared (first use this function)
Resolver.cc:395: error: (Each undeclared identifier is reported only once for each function it appears in.)
Resolver.cc:396: error: `dn_skipname' undeclared (first use this function)
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

I have tried to remove dn_expand in the Resolver.cc, as it says
#ifdef HAVE_DN_EXPAND // newer resolver versions have dn_expand and dn_skipname
But that only crippled lftp as connection to dns names becomes impossible:
./lftp ftp.uio.no
lftp: ftp.uio.no: Host lookup error 0

dc_expans and dc_skipname exists, so I'll probably have to search more i the source code?

Roger
First they ignore you, Then they laugh at you, Then they fight you, Then you win. - Gandhi -
André Scarance
New Member

Re: lftp 3.0.6 compilation

I am looking for perl-5.8.3-sd-11.00.depot, and the hpux.connect.org does not have this version available. I would like to know if you have this file to send me?
Thanks
Roger Storvik
Advisor

Re: lftp 3.0.6 compilation

I do not know what Perl has to do with this thread, but http://hpux.connect.org.uk/hppd/hpux/Languages/perl-5.8.5/ could perhaps help you?
Roger
First they ignore you, Then they laugh at you, Then they fight you, Then you win. - Gandhi -
André Scarance
New Member

Re: lftp 3.0.6 compilation

tks Roger, but i realy need the version 5.8.3 depot for Unix 11.00...

Best Regards,
Andre
Steven E. Protter
Exalted Contributor

Re: lftp 3.0.6 compilation

There may be binaries available of use at http://www.hpux.ws/merijn

I suggest you start your own thread as Bill is not maintaining this thread at this time.

You can link this thread in as a reference.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com