bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] Can't build wget 1.12 on MSWindows XP


From: Ray Satiro
Subject: Re: [Bug-wget] Can't build wget 1.12 on MSWindows XP
Date: Fri, 30 Apr 2010 11:49:49 -0700 (PDT)

hello,

wget mainline can be built using mingw gcc in msys or command prompt, or cl 
msvc. the code as it stands i don't believe will compile clean on any. i've 
done all three and in every case i had to patch. i linked in mingw openssl, 
never tried msvc openssl wget combo.

your request has come up on the list before. keisal wrote a patch for 
mingw32-make compile from command prompt that is somewhere on the list and i 
wrote a quick patch for msys compile later that month that really didn't fix 
anything but hey it was successful for a compile

to recap go here
http://www.mail-archive.com/address@hidden/msg00571.html
http://www.mail-archive.com/address@hidden/msg00678.html

earlier this month i had planned to redistribute another wget/openssl combo but 
instead i am waiting. i modified a version of keisal's patch so you can use 
that for now. he said his patch is ok for gpl but really at some point less 
patchy patches like ours are needed. my msvc patch is just terrible but it 
works. i can't find it right now but i can always rewrite it. msvc lacks c99 so 
you can't do inline variable declarations in c and some other things. part of 
the msvc patch was moving some declarations around.

download the patch wget-mainline-030410.patch.zip from here:

http://drop.io/GetGnuWin32

download mainline-013c8e2f5997 from here:

http://hg.addictivecode.org/wget/mainline/

hg.addictivecode.org seems to be up and down today so i put 
mainline-013c8e2f5997 on my drop as wget-mainline-030410.zip

unzip wget-mainline-030410.patch.zip
follow the directions in wget-mainline-030410.patch.zip:

do this from a command prompt not msys:

unzip wget-mainline-030410.zip
copy errno.h mainline-013c8e2f5997\lib
copy build_info.c mainline-013c8e2f5997\src
windres mainline-013c8e2f5997.rc -O coff -o 
mainline-013c8e2f5997\src\mswindows.res
cd mainline-013c8e2f5997
patch -p1 < ..\mainline-013c8e2f5997-v2.patch
configure.bat --mingw && mingw32-make
cd src

for just ipv6 do:
mingw32-make clean && mingw32-make

for both ipv6 and SSL do:
mingw32-make clean && mingw32-make SSL=1


GNU Wget 1.12.1-dev Mar 04 2010 (mainline-013c8e2f5997) built on Windows-MinGW.

+digest +ipv6 -nls +ntlm +opie +md5/builtin +https -gnutls +openssl
-iri

Wgetrc:
    C:\GnuWin32\etc\wgetrc (env)
Compile: gcc -DHAVE_MD5 -DENABLE_DIGEST -DENABLE_IPV6 -DENABLE_OPIE -DWINDOWS
    -DHAVE_CONFIG_H -O3 -Wall -I. -I../lib -I../md5
Link: gcc -s -o wget-1.12.exe cmpt.o convert.o connect.o ftp.o ftp-basic.o
    ftp-ls.o ftp-opie.o host.o html-parse.o html-url.o http.o init.o
    log.o main.o ../md5/md5.o netrc.o ../lib/c-ctype.o hash.o
    progress.o gen-md5.o cookies.o ptimer.o recur.o res.o retr.o url.o
    utils.o version.o ../lib/xmalloc.o ../lib/xalloc-die.o
    ../lib/quote.o ../lib/exitfail.o ../lib/quotearg.o ../lib/error.o
    ../lib/getpass.o mswindows.o spider.o css-url.o exits.o
    build_info.o css.o mswindows.res -lws2_32


--- On Fri, 4/30/10, Keisial <address@hidden> wrote:

From: Keisial <address@hidden>
Subject: Re: [Bug-wget] Can't build wget 1.12 on MSWindows XP
To: "Micah Cowan" <address@hidden>
Cc: "Vincent Belaïche" <address@hidden>, address@hidden
Date: Friday, April 30, 2010, 10:30 AM

Micah Cowan wrote:
> Vincent Belaïche wrote:
>   
>> I tried to build unsuccessfully Wget on MSWindowsXP.
>>
>> Attached to this email are the logs of this attempt.
>>
>> I tried the ./configure+make way with MSYS+MinGw
>>
>> When configuring I made a 1st attempt with only prefix and infodir
>> options, and then a 2nd attempt  where I tried to disable all that could
>> be disabled, in the hope that the build would be successful.
>>     
Your main problem is that WINDOWS macro isn't defined. Add -DWINDOWS=1
to the CFLAGS.

>> Are there any binary distribution of Wget for MSWindows?
>>     

There's http://gnuwin32.sourceforge.net/packages/wget.htm but it's at 1.11.4
I know they tried to update it, but I don't know about its status.

> Unfortunately, there isn't, and the official wget 1.12 release lacks
> some necessary changes to allow building with MSYS+MinGw. The current
> development sources in Mercurial should work, BUT I was never able to
> get openssl working properly with it, which means no HTTPS (encrypted
> web) support.
>
> Hopefully someone will bring Wget the rest of way before too long.
>   

I'm pretty sure I was able to build wget with openssl from mercurial.
I don't think I ever followed the exact gnulib ./configure but once wget
built
the change to get openssl was minimal.
Of course, certificates never validate but that's an openssl issue. You
would need to copy locally the root certificates for them to work and make
openssl point there.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]