Hi,

under AIX 5.1 I have some problems with the new wget 1.10 release.

1) Only using the configure-option "--disable-nls" and the C compiler
gcc 4.0.0 the wget-binary builds successfully although gcc outputs some compiler warnings like

 convert.c: In function 'convert_all_links':
 convert.c:95: warning: incompatible implicit declaration of built-in
                        function 'alloca'

and

 cookies.c:644: warning: format '%d' expects type 'int', but argument 4
                         has type 'long int'

But simply calling the new wget like

 wget http://www.example.com/

I got always errors like

 --12:36:51--  http://www.example.com/
           => `index.html'
Resolving www.example.com... failed: Invalid flags in hints.

After some testing I found that using the additional configure-option "--disable-ipv6" solves that problem.

2) Using the additional configure-option "--with-ssl=/usr/local/contrib"
fails although the openssl (0.9.7g) header files are installed under
"/usr/local/contrib/include/openssl/" and the libssl.a under "/usr/local/contrib/lib/".

Extract of config.log:

configure:25735: looking for SSL libraries in /usr/local/contrib
configure:25742: checking for includes
configure:25756: /bin/sh ./libtool gcc -c -O2 -Wall -Wno-implicit -I/usr/local/
contrib/include  conftest.c >&5
gcc -c -O2 -Wall -Wno-implicit -I/usr/local/contrib/include conftest.c -DPIC -
o .libs/conftest.o
*** Warning: inferring the mode of operation is deprecated.
*** Future versions of Libtool will require --mode=MODE be specified.
configure:25762: $? = 0
configure:25766: test -z
          || test ! -s conftest.err
configure:25769: $? = 0
configure:25772: test -s conftest.o
configure:25775: $? = 1
configure: failed program was:
|
| #include <openssl/ssl.h>
| #include <openssl/x509.h>
| #include <openssl/err.h>
| #include <openssl/rand.h>
| #include <openssl/des.h>
| #include <openssl/md4.h>
| #include <openssl/md5.h>
|
configure:25787: result: not found
configure:26031: error: failed to find OpenSSL libraries

3) Using the native IBM C compiler (CC=cc) instead GNU gcc I got the compile error

 cc -qlanglvl=ansi -I. -I. -I/opt/include   -DHAVE_CONFIG_H
 -DSYSTEM_WGETRC=\"/usr/local/contrib/etc/wgetrc\"
 -DLOCALEDIR=\"/usr/local/contrib/share/locale\" -O -c main.c
 "main.c", line 147.16: 1506-275 (S) Unexpected text ',' encountered.

Simply changing line 147 of src/main.c from

  OPT__PARENT,

to

  OPT__PARENT

let the compile error vanish (sorry, I am not a C expert).

But using the required configure-option "--disable-ipv6" I got then the similar error

 cc -qlanglvl=ansi -I. -I. -I/opt/include   -DHAVE_CONFIG_H
 -DSYSTEM_WGETRC=\"/usr/local/contrib/etc/wgetrc\"
 -DLOCALEDIR=\"/usr/local/contrib/share/locale\" -O -c connect.c
 "host.h", line 52.17: 1506-275 (S) Unexpected text ',' encountered.

Again removing the "," on line 52 helps and I got a working wget binary.

Greetings

Jens

P.S.: Under Linux SuSE 9.3 all compiles and works well.

--
Dr. Jens Schleusener            T-Systems Solutions for Research GmbH
Tel: +49 551 709-2493           Bunsenstr.10
Fax: +49 551 709-2169           D-37073 Goettingen
[EMAIL PROTECTED]  http://www.t-systems.com/

Reply via email to