On Mon, 29 Mar 2004, Doug Kaufman wrote: > On Mon, 29 Mar 2004, Fr�d�ric L. W. Meunier wrote: > > > Based on Doug's e-mail - > > http://www.flora.org/lynx-dev/html/month022004/msg00010.html I > > finally got rid of Borland C++Builder and used Cygwin's > > -mno-cygwin. Yes, I compiled all needed libraries with it. > > > > I noticed a problem though, and don't know what to do. The > > resulting makeuctb binary just crashes. Windows XP Professional > > SP1 pops up a window about msvcrt.dll. Not knowing how to fix > > Here are some of the files that I used to compile: the script for > configure, the changes to lynx_cfg.h, and the makefile for src/chrtrans. > The directories are specific to the setup on my machine. I hope this > gives a clue as to why makeuctb didn't work for you. I only compiled and > tested on Win98SE.
It didn't change anything. I'm attaching the script I used based on your options. I retained all I use for Cygwin. While I'm not sure all work, only --enable-nsl-fork failed at build time. Anyway, they shouldn't make any difference for makeuctb. I also tried removing -march=i586 -mcpu=i686 -O2 -pipe from CFLAGS and -Wl,-s from LDFLAGS. Does anyone run it on 486 ? I also didn't need your PDCurses patch. I couldn't reproduce: "The problem with the arrow keys under PDCurses is that when NUMLOCK is on, the arrow keystrokes seem to be queued. If you then turn off NUMLOCK and press an arrow key, all of the previous keypresses will be executed, in addition to the current one. I would appreciate any insight into this behavior. When NUMLOCK is on, holding down an arrow key leads to execution of multiple instances of the key after a delay of about half a second, but it is difficult to control." or just didn't understand it. Also, why is -ltermcap added ? In my last build it picked -lncurses instead. I thought it'd only add -lcurses. I'm also attaching the resulting makeuctb.exe and the differences against my makefile. -- How to contact me - http://www.pervalidus.net/contact.html
makeuctb.exe.bz2
Description: Binary data
--- makefile.old 2004-03-30 01:38:39.182375000 -0300
+++ makefile 2004-03-30 01:09:38.000000000 -0300
@@ -6,18 +6,17 @@
#
SHELL = /bin/sh
-prefix = /usr/local
+prefix = d:/cygwin/mingw/lynx2.8.5pre.5/lynx-conf
exec_prefix = ${prefix}
-top_srcdir = /d/Linux/lynx2-8-5
-srcdir = /d/Linux/lynx2-8-5/src/chrtrans
-VPATH = $(srcdir)
+top_srcdir = ../..
+srcdir = .
top_builddir = ../..
-LIBS = -lz -lbz2 -lcurses -ltermcap -lssl -lcrypto -lssl
-L/d/Linux/lynx2-8-5/MinGW/lib -lwsock32 -lgdi32 -lmsvcrt -luser32 $(SITE_LIBS)
-LDFLAGS = -Wl,-s -mno-cygwin -static
+LIBS = -lz -lbz2 -lcurses -ltermcap -lssl -lcrypto -lssl -L/mingw/lib
-lwsock32 -lgdi32 -lmsvcrt -luser32 $(SITE_LIBS)
+LDFLAGS = -mno-cygwin -static
-INTLLIB = #
+INTLLIB = #-lintl -liconv
WWWINC = WWW/Library/Implementation
INTLDIR_CPPFLAGS= #-I$(top_srcdir)/intl
@@ -26,12 +25,12 @@
CC = gcc
CPP = gcc -E
-CFLAGS = -march=i586 -mcpu=i686 -O2 -fno-strict-aliasing -pipe -mno-cygwin
-I/d/Linux/lynx2-8-5/MinGW/include -I/d/Linux/lynx2-8-5/MinGW/include/openssl
-DALL_STATIC -D_WINDOWS -DSH_EX -DWIN_EX -DNOUSERS -DNOSIGHUP -DDOSPATH
-DUSE_ALT_BLAT_MAILER -DHAVE_CBREAK -W -Wall -Wbad-function-cast -Wcast-align
-Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs
-Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef
+CFLAGS = -mno-cygwin -fno-strict-aliasing -I/mingw/include
-I/mingw/include/openssl -W -Wall -O2 -DALL_STATIC -D_WINDOWS -DSH_EX -DWIN_EX
-DNOUSERS -DNOSIGHUP -DDOSPATH -DUSE_ALT_BLAT_MAILER -DHAVE_CBREAK
x = .exe
o = .o
-CPP_OPTS = -DHAVE_CONFIG_H -DWIN_EX -D_WINDOWS_NSL -DXTSTRINGDEFINES
-D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE \
+CPP_OPTS = -DHAVE_CONFIG_H -DWIN_EX -D_WINDOWS_NSL -D_XOPEN_SOURCE=500
-D_POSIX_C_SOURCE \
-I$(top_builddir) \
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/chrtrans \
#!/bin/bash PACKAGE=lynx OBJDIR=$HOME/tmp/objdir/$PACKAGE SRCDIR=/d/Linux/lynx2-8-5/configure source $HOME/.bflags # http://www.flora.org/lynx-dev/html/month092003/msg00054.html export CFLAGS="$CFLAGS -fno-strict-aliasing -mno-cygwin -I/d/Linux/lynx2-8-5/MinGW/include -I/d/Linux/lynx2-8-5/MinGW/include/openssl -DALL_STATIC -D_WINDOWS -DSH_EX -DWIN_EX -DNOUSERS -DNOSIGHUP -DDOSPATH -DUSE_ALT_BLAT_MAILER -DHAVE_CBREAK" export LDFLAGS="$LDFLAGS -mno-cygwin -static" export LIBS="-L/d/Linux/lynx2-8-5/MinGW/lib -lwsock32 -lgdi32 -lmsvcrt" export CURSES="curses" #export ENSLF="--enable-nsl-fork" export DDIREDO="--disable-dired-override" OPTIONS="$DLOPTIONS --libdir=/usr/local/share/lynx --enable-vertrace --enable-warnings --disable-full-paths --with-ssl --with-screen=$CURSES --enable-addrlist-page --enable-charset-choice --enable-cjk --enable-color-style --enable-default-colors --enable-htmlized-cfg --enable-file-upload --enable-justify-elts --enable-locale-charset --enable-nested-tables --enable-scrollbar --enable-externs --enable-cgi-links --enable-change-exec --enable-exec-links --enable-exec-scripts --enable-internal-links $ENSLF --enable-gzip-help --with-bzlib --with-zlib $DDIREDO" [ ! -d "$OBJDIR" ] && mkdir -p "$OBJDIR" cd $OBJDIR; $SRCDIR $OPTIONS; echo -n Press Enter to compile $PACKAGE. read make -j4
