I need wget for IRIX 6.5, but can't compile it
#8
RE: I need wget for IRIX 6.5, but can't compile it
Looks like you've found a bug in the wget-static binary of 1.19.4 which i've build. I can debug that version with a bit of time.

On compile: The neko_wget has a release notes file which states environment variables and build procedure. It's under optional software and is printed below.
Code:
SOURCE/VERSION
--------------
wget-1.19.4 / 6


IRIX/MIPSPRO VERSION
--------------------
6.5.22 / 7.4.4m


ENVIRONMENT VARIABLES
---------------------
setenv CC c99
setenv MAKE /usr/nekoware/bin/gmake
setenv PERL /usr/nekoware/bin/perl
setenv CFLAGS '-O2 -mips4 -n32'
setenv CPPFLAGS -I/usr/nekoware/include
setenv LDFLAGS '-L/usr/nekoware/lib'
setenv LIBS '-lunistring -lintl -liconv'
setenv OPENSSL_CFLAGS '-I/usr/nekoware/include'
setenv OPENSSL_LIBS '-L/usr/nekoware/lib -lssl -lcrypto'
setenv PATH /usr/nekoware/bin:$PATH

For builds on mips3 systems, use:

setenv CFLAGS '-O2 -mips3 -n32'


CONFIGURE
---------
./configure --prefix=/usr/nekoware --disable-rpath --with-ssl=openssl


BUILD
-----
gmake
gmake check
gmake install


KNOWN DEPENDENCIES
------------------
neko_gettext.sw.lib 10 maxint
neko_libiconv.sw.lib 5 maxint
neko_libidn2.sw.lib 1 maxint
neko_libunistring.sw.lib 1 maxint
neko_openssl.sw.lib 33 maxint
neko_pcre.sw.lib 4 maxint
neko_zlib.sw.lib 9 maxint
gmake to build the package
perl to make the documentation and the unittests

ERRORS/MISCELLANEOUS
--------------------
A recent perl is required to create the documentation which is why the path has to be changed to /usr/nekoware/bin to point to the p
erl from Nekoware

There is a more recent version 1.19.5, but its test suite depends on the glibc function 'fmemopen' which is not ported to IRIX.

If you're running the testsuite without libidn2 the test will pass. However i wanted to include unicode strings for foreign domainna
mes and now the test fails at 5 points
============================================================================
Testsuite summary for wget 1.19.4
============================================================================
# TOTAL: 93
# PASS:  77
# SKIP:  11
# XFAIL: 0
# FAIL:  5
# XPASS: 0
# ERROR: 0
============================================================================
I think the failed test are not errors from wget, but from perl, sine it runs the HTTP::Daemon for the necessary tests.

For bootstrapping nekoware downloads a static build is provided with the subsystem neko_wget.sw.static : It installs wget-static whi
ch only depends on a dynamically linked libc.

You can build the static version by setting:
setenv LDFLAGS '-B static -L/usr/nekoware/lib'
and do the configure with:
./configure --prefix=/usr/nekoware --with-ssl=openssl
and replace the libunistring.so and libiconv.so in the Makefile's in . and ./src with the static versions libunistring.a and libicon
v.a

You can see that there are quite a few dependencies, but openssl and zlib are more or less essential, the rest are convenience libraries.

The wget 1.8.4 binary can work around permissions if you package the files into a tar archive first before getting them via wget. Then after having received it untar the package and the file permissions should be preserved.

Still, wget is a bit of a kludge getting files back and forth, especially when there are many versions and none of them seems to operate fully. As an alternative an NFS server or basic ftp/sftp server sould not be too hard to set up.

EDIT: i suspect i fell into the pthread trap again: i think i forgot to link with -lpthread. The getaddrinfo error points to this possibility.
(This post was last modified: 12-08-2018, 09:10 AM by dexter1.)
dexter1
Administrator

Trade Count: (1)
Posts: 297
Threads: 17
Joined: May 2018
Location: The Netherlands
Find Reply
12-08-2018, 08:45 AM


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)