List Info

Thread: Compiling MingW lynx under Cygwin (was Re: text browsing)




Compiling MingW lynx under Cygwin (was Re: text browsing)
user name
2006-08-13 01:21:58
On Sat, 12 Aug 2006 patakutiusers.sourceforge.jp wrote:

> On Sun, 30 Jul 2006, dkaufmanrahul.net wrote:
> 
> > On Sat, 29 Jul 2006 patakutiusers.sourceforge.jp wrote:
> > 
> > OK. I went back through my notes and patches and
did some more testing.
> > Here is a step-by-step guide to building a
statically compiled lynx
> > under Cygwin which will not be dependent on the
cygwin dll (i.e. a MingW
> 
> ...
> I tried it and finally successed to build with some
efforts.
> I wrote some comments and questions below.
> 
> > 		 Compiling lynx for MingW under Cygwin
> > 
> I want to use precompiled libraries if it's OK.
> If I should to use patched libraries, please tell me
which libraries
> sould be patched.

I would presume that the precompiled libraries are OK until
proven
otherwise. I didn't look for precompiled libraries, so I am
not certain
how the patches that they used to compile for MingW differed
from what I
posted. To keep the binary file compatible with Win98, I
would try to
ascertain that they are not dependent on any system files
only available
with WinNT/Win2K/WinXP.

> > ...
> > 1. Compile and install MingW PDCurses 2.8
> 
> I used precompiled library:
pdcurses-2.6.0-2003.07.21-1.exe
> I got from http://www.mingw
.org/download.shtml.

When I put together the guide, I had forgotten to mention
the patch
necesary to make lynx function with PDCurses 2.7 or 2.8. By
using 2.6,
you avoid the need for that patch (which I hope will be
included in
dev.19).

> > 2. Compile and install MingW OpenSSL 0.9.8 stable
branch
> 
> I tried GnuTLS instead of OpenSSL.
> I used precompiled library:
gnutls_1_0_17_win32_mingw_libs.zip
> I got from ftp://ftp.gnutls.org/pub/gnutls/win32.

OpenSSL uses the environment variable SSL_CERT_FILE to
indicate where
the collection of trusted certificates resides. How does
GnuTLS find the
file if it isn't in the default location which was compiled
in?

> > 3. Compile and install MingW iconv
> > 
> > I used libiconv 1.8.
> > I applied this patch:
> 
> I used precompiled library:
libiconv-1.9.1.bin.woe32.zip
> I got from http://sourceforge.net/project/showfiles.php?group_id
=25167
> 
> > 4. Compile and install MingW gettext 
> > 
> > I used gettext-0.11.5.
> > I applied this patch:
> 
> I used precompiled library:
gettext-0.11.5-2003.02.01-1.exe
> I got from http://www.mingw
.org/download.shtml.
> 
> # I found two different source archives of
gettext-0.11.5 from
> #     http://www.gnu.o
rg/software/gettext/
> #     http://www.mingw.
org/download.shtml
> # 
> # I failed to apply your patch to the former one.
> # I successed to apply it the latter one but haven't
successed to built.

On the version that I compiled, the character set conversion
worked
correctly in fullscreen mode, using the DOS codepages, for
all
combinations that I tried, but sometimes gave wrong
characters in
windows mode. I'll try again with the latest versions
(gettext-0.15 and
libiconv-1.11 to see if that makes any difference.

> > ...
> > #!/bin/bash.exe
> > LDFLAGS="-mno-cygwin -static" \
> > LIBS="-L/mingw/lib -lwsock32 -lgdi32
-lmsvcrt -liconv" \
> 
> I think "-L/mingw/lib" should be in LDFLAGS
instead of in LIBS.

That should work.

> I changed these line as below to compile with GnuTLS.
>     LDFLAGS="-mno-cygwin -static
-L/mingw/lib" \
>     LIBS="-lgdi32 -lmsvcrt -liconv -lgcrypt
-lgpg-error -lwsock32" \
> # I don't know why I have to add "-lgcrypt
-lgpg-error".

I dont' have those libraries on my machine. Are they
bundled with
GnuTLS?

                          Doug

-- 
Doug Kaufman
Internet: dkaufmanrahul.net



_______________________________________________
Lynx-dev mailing list
Lynx-devnongnu.org
htt
p://lists.nongnu.org/mailman/listinfo/lynx-dev
Compiling MingW lynx under Cygwin (was Re: text browsing)
user name
2006-08-13 03:36:01
On Sat, 12 Aug 2006, dkaufmanrahul.net wrote:

> On Sat, 12 Aug 2006 patakutiusers.sourceforge.jp wrote:
> 
> > On Sun, 30 Jul 2006, dkaufmanrahul.net
wrote:
> > 
> > > On Sat, 29 Jul 2006 patakutiusers.sourceforge.jp wrote:
> > > 
> > > OK. I went back through my notes and patches
and did some more testing.
> > > Here is a step-by-step guide to building a
statically compiled lynx
> > > under Cygwin which will not be dependent on
the cygwin dll (i.e. a MingW
> > 
> > ...
> > I tried it and finally successed to build with
some efforts.
> > I wrote some comments and questions below.
> > 
> > > 		 Compiling lynx for MingW under Cygwin
> > > 
> > I want to use precompiled libraries if it's OK.
> > If I should to use patched libraries, please tell
me which libraries
> > sould be patched.
> 
> I would presume that the precompiled libraries are OK
until proven
> otherwise. I didn't look for precompiled libraries, so
I am not certain
> how the patches that they used to compile for MingW
differed from what I
> posted. To keep the binary file compatible with Win98,
I would try to
> ascertain that they are not dependent on any system
files only available
> with WinNT/Win2K/WinXP.

OK.  Thanks.

> > > 2. Compile and install MingW OpenSSL 0.9.8
stable branch
> > 
> > I tried GnuTLS instead of OpenSSL.
> > I used precompiled library:
gnutls_1_0_17_win32_mingw_libs.zip
> > I got from ftp://ftp.gnutls.org/pub/gnutls/win32.
> 
> OpenSSL uses the environment variable SSL_CERT_FILE to
indicate where
> the collection of trusted certificates resides. How
does GnuTLS find the
> file if it isn't in the default location which was
compiled in?

I don't know well but I suspect that Lynx with GnuTLS
doesn't refer
the certificate files because it doesn't show any warnings
to the site
which has self-signed certificate.
If it's true, the binary with GnuTLS is inferior to the one
with OpenSSL
on this point.

> > I changed these line as below to compile with
GnuTLS.
> >     LDFLAGS="-mno-cygwin -static
-L/mingw/lib" \
> >     LIBS="-lgdi32 -lmsvcrt -liconv -lgcrypt
-lgpg-error -lwsock32" \
> > # I don't know why I have to add "-lgcrypt
-lgpg-error".
> 
> I dont' have those libraries on my machine. Are they
bundled with
> GnuTLS?

Those are libraries on which are depended by GnuTLS.
I wanted to say that I don't know why the configure script
doesn't add
them to LIBS automatically like gnutls itself.
--
Takeshi Hataguchi
E-mail: patakutiusers.sourceforge.jp


_______________________________________________
Lynx-dev mailing list
Lynx-devnongnu.org
htt
p://lists.nongnu.org/mailman/listinfo/lynx-dev
Compiling MingW lynx under Cygwin (was Re: text browsing)
user name
2006-08-13 12:28:17
patakutiusers.sourceforge.jp dixit:

>If it's true, the binary with GnuTLS is inferior to the
one with OpenSSL
>on this point.

Like I said. (And the other issue with the DN format is
still open,
although I've sent a patch to Tom about it which none of
you GNU
users seems to have tested.)

//mirabile
-- 
I believe no one can invent an algorithm. One just happens
to hit upon it
when God enlightens him. Or only God invents algorithms, we
merely copy them.
If you don't believe in God, just consider God as Nature if
you won't deny
existence.		-- Coywolf Qi Hunt


_______________________________________________
Lynx-dev mailing list
Lynx-devnongnu.org
htt
p://lists.nongnu.org/mailman/listinfo/lynx-dev
patch for using GnuTLS (was: Compiling MingW lynx under Cygwin)
user name
2006-08-27 10:28:50
On Sun, 13 Aug 2006, I wrote:

> On Sat, 12 Aug 2006, dkaufmanrahul.net wrote:
> 
> > OpenSSL uses the environment variable
SSL_CERT_FILE to indicate where
> > the collection of trusted certificates resides.
How does GnuTLS find the
> > file if it isn't in the default location which
was compiled in?
> 
> I don't know well but I suspect that Lynx with GnuTLS
doesn't refer
> the certificate files because it doesn't show any
warnings to the site
> which has self-signed certificate.
> If it's true, the binary with GnuTLS is inferior to
the one with OpenSSL
> on this point.

I wrote a patch to improve this point.
After applying this patch, Lynx with GnuTLS verify the
server's
certificate.  Note that users must set the environment
variable
SSL_CERT_FILE to verify properly.

I also tried the patch which is posted by Thorsten Glaser on
5 Jul
against DN format probrem.  It suppressed the unexpected
message for
normal https sites as far as I tested Lynx with GnuTLS. 
Unfortunately
I couldn't test abnormal https sites, which doesn't have
CN, because I
don't know their URLs.
--
Takeshi Hataguchi
E-mail: patakutiusers.sourceforge.jp
_______________________________________________
Lynx-dev mailing list
Lynx-devnongnu.org
htt
p://lists.nongnu.org/mailman/listinfo/lynx-dev
patch for using GnuTLS (was: Compiling MingW lynx under Cygwin)
user name
2006-08-31 10:39:09
On Sun, Aug 27, 2006 at 07:28:50PM +0900, patakutiusers.sourceforge.jp wrote:
> On Sun, 13 Aug 2006, I wrote:
> 
> > On Sat, 12 Aug 2006, dkaufmanrahul.net
wrote:
> > 
> > > OpenSSL uses the environment variable
SSL_CERT_FILE to indicate where
> > > the collection of trusted certificates
resides. How does GnuTLS find the
> > > file if it isn't in the default location
which was compiled in?
> > 
> > I don't know well but I suspect that Lynx with
GnuTLS doesn't refer
> > the certificate files because it doesn't show any
warnings to the site
> > which has self-signed certificate.
> > If it's true, the binary with GnuTLS is inferior
to the one with OpenSSL
> > on this point.
> 
> I wrote a patch to improve this point.

thanks (I merged it in last night to my interim patch, have
some additional
work to do in that area).  At the moment, I think that I've
addressed all of
the display issues that I intended for the next patch, and
have only some minor
work left to do.

-- 
Thomas E. Dickey
http://invisible-island.n
et
ftp://invisible-island.net


_______________________________________________
Lynx-dev mailing list
Lynx-devnongnu.org
htt
p://lists.nongnu.org/mailman/listinfo/lynx-dev
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )