lynx-dev
[Top][All Lists]
Advanced

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

Re: [Lynx-dev] Lynx does not compile on Windows when SSL enabled


From: Thomas Dickey
Subject: Re: [Lynx-dev] Lynx does not compile on Windows when SSL enabled
Date: Wed, 03 Apr 2013 05:51:19 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

On Tue, Apr 02, 2013 at 11:13:04PM -0700, Supriyo Biswas wrote:
> It is found that Lynx will not compile on Windows with Cygwin when SSL is 
> enabled within the build.
> Affects stable 2.8.7 as well as development 2.8.8dev15.
> 
> The `./configure' part goes well. The following options are provided:
> ./configure --enable-nls --with-ssl --with-gnutls --enable-gnutls-compat 
> --enable-ipv6 --enable-ascii-ctypes --enable-japanese-utf8 
> --enable-charset-choice --enable-kbd-layout --enable-nested-tables 
> --enable-progressbar --enable-scrollbar --enable-sessions 
> --enable-sessions-cache --with-zlib
> 
> Fails with `make install':
> /bin/sh -c 'SHELL=/bin/sh /bin/sh ./scripts/cfg_defs.sh .'
> Constructing sed-script help_files.sed
> sed     -e '/^#/d' -e '/^$/d' \ -e 
> 's%\(.*\)=\(address@hidden)address@hidden@=\2=g%' \ -e 
> 's%\(.*\)=\(http:.*\)address@hidden@=\2=g%' \ -e 
> 's%\(.*\)=\(ftp:.*\)address@hidden@=\2=g%' \ -e 
> 's%\(.*\)=\(.*\.html\)address@hidden@=\2=g%' \ help_files.tmp | tr '=' '"' > 
> help_files.sed
> Appending interim-fix for existing html files to help_files.sed
> sed     -e '/^#/d' -e '/[:@]/d' -e '/^$/d' \ -e 
> 's%\(.*\)=\(.*\.html\)$%s=\2=\2=g%' \ -e 's%\.html=%\\.html=%' \ 
> help_files.tmp | tr '=' '"' >> help_files.sed
> if test -n ""; then echo 's%\\%%g' >> help_files.sed; fi
> Creating LYHelp.h
> ********************************************** Help files will NOT be 
> gzipped. **********************************************
> /bin/sh ./scripts/fixtext.sh ./LYMessages_en.h >LYMessages.c
> cd ./po && make DESTDIR="" CC="gcc"
> make[1]: Entering directory `/cygdrive/c/lynx/po'
> msginit --no-translator -l en -i lynx.pot
> Created en.po.
> file=./`echo en | sed 's,.*/,,'`.gmo \ && rm -f $file && PATH=../src:$PATH 
> /usr/bin/msgfmt.exe -o $file en.po
> make[1]: Leaving directory `/cygdrive/c/lynx/po'
> cd ./WWW/Library/Implementation && make DESTDIR="" CC="gcc" LY_CFLAGS="-O2 "  
> CPPFLAGS="-U_XOPEN_SOURCE -D_XOPEN_SOURCE=600  -DWIN_EX -D_WINDOWS_NSL"  
> LYFLAGS=""
> make[1]: Entering directory `/cygdrive/c/lynx/WWW/Library/Implementation'
> gcc -DHAVE_CONFIG_H   -I../../..  -I../../../src  -I../../..  -I../../../src  
>  -I../../../WWW/Library/Implementation  -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600  
> -DWIN_EX -D_WINDOWS_NSL -O2    -I../../../WWW/Library/Implementation/ 
> -DACCESS_AUTH -c ../../../WWW/Library/Implementation/HTParse.c
> In file included from /usr/include/openssl/crypto.h:131:0, from 
> /usr/include/openssl/comp.h:5, from /usr/include/openssl/ssl.h:149, from 
> ../../../WWW/Library/Implementation/HTUtils.h:685, from 
> ../../../WWW/Library/Implementation/HTParse.c:8:
> /usr/include/openssl/ossl_typ.h:153:29: error: expected ‘)’ before numeric 
> constant
> /usr/include/openssl/ossl_typ.h:199:33: error: expected ‘)’ before numeric 
> constant

seems as if the problem is here.  The files I have at hand are not as long,
so I'm uncertain which symbol is being redefined.

The offending lines would help for understanding the problem.

> In file included from /usr/include/openssl/ssl.h:156:0, from 
> ../../../WWW/Library/Implementation/HTUtils.h:685, from 
> ../../../WWW/Library/Implementation/HTParse.c:8:
> /usr/include/openssl/x509.h:199:1: error: pasting "stack_st_" and "(" does 
> not give a valid preprocessing token
> /usr/include/openssl/x509.h:199:1: error: expected ‘)’ before numeric constant
> /usr/include/openssl/x509.h:210:34: error: expected ‘)’ before numeric 
> constant
> /usr/include/openssl/x509.h:235:2: error: expected specifier-qualifier-list 
> before ‘(’ token
> /usr/include/openssl/x509.h:254:2: error: expected specifier-qualifier-list 
> before ‘(’ token
> /usr/include/openssl/x509.h:330:3: error: expected ‘)’ before numeric constant
> /usr/include/openssl/x509.h:453:2: error: expected specifier-qualifier-list 
> before ‘(’ token
...
> 
> This can be corrected, if WWW/Library/Implementation/HTUtils.h is edited from:
> #if defined(__CYGWIN__)         /* 1998/12/31 (Thu) 16:13:46 */
> #include <windows.h>            /* #include "windef.h" */ 
> To:
> #if defined(__CYGWIN__)         /* 1998/12/31 (Thu) 16:13:46 */
> #define NOCRYPT
> #include <windows.h>            /* #include "windef.h" */
> #include <openssl/bio.h> 

Is NOCRYPT used in the bio.h file?

(knowing the openssl version would also be helpful)

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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