Micah,
        Worked perfect.  Thanks for the help.  

        Is there a section of the wiki for troubleshooting compiles that
I just can't find?  Should this information be recorded someplace
besides the mailing list archive?  I'd be happy to add it.

Scott

-----Original Message-----
From: Micah Cowan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 16, 2008 3:53 PM
To: Hopkins, Scott
Cc: [email protected]
Subject: Re: Error with wget on AIX5.3

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hopkins, Scott wrote:
> All,
> 
>                 I recently compiled wget 1.10.2 on one of our AIX 5.3
> machines, and it appeared to compile fine, after disabling nls.  The
> binary appears to be intact, and actually appears to make connections
> out to remote sites to collect data.  However, when it attempts to
write
> to the response to disk, it generates the following error:
> 
>  
> 
>                 Length: wget: strdup: Failed to allocate 1 bytes;
memory
> exhausted.
> 
>  
> 
>                 Any thoughts? 

Hi Scott. Your mailer formats the plaintext portion of your mails rather
attrociously, you might look to that.

That message indicates that Wget passed strdup() an empty string (a
1-element char array consisting of just a zero-value byte). AIX is wrong
to fail in such a case: it's still useful to be able to duplicate such
strings.

You should be able to work around this by ensuring that config.h (which
is generated by the configure script) does not define HAVE_STRDUP; this
will cause Wget to use it's built-in strdup-alike behavior, thus
avoiding AIX's bug.

Please let us know if that fixes your problem.

- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer...
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHjnzY7M8hyUobTrERAqyGAJ0QLerJQtqyDHACvw8eRVTdk7mgCgCeNDtf
HuFOPFy91egSk5KVVQ8IhQ4=
=eRCO
-----END PGP SIGNATURE-----

Reply via email to