On Thu, 1 Jun 2006, [EMAIL PROTECTED] wrote:

I tried to compile 2.8.6dev.18 under Cygwin environment but failed.

First, I failed to compile HTTCP.c.  It's improved after applying a
patch which is attached to this mail.

Second, I failed to link with these messages.

I saw the WSaSetLastError in your earlier patch, but did not see why you needed it. Is this a recent change to cygwin (or have you not installed win32api, which I seem to recall is the interface needed)?

(I'm using cygwin installed from a snapshot from last winter).


| Linking and creating Lynx executable
| gcc  -DWIN_EX -D_WINDOWS_NSL -I/usr/local/include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=600 
-U_POSIX_C_SOURCE -D_POSIX_C_SOURCE=199506L -DHAVE_CONFIG_H  
-DLOCALEDIR=\"/usr/local/share/locale\" -I. -I.. -Ichrtrans -I./chrtrans -I.. 
-I../src -I../WWW/Library/Implementation   -O2   -o lynx.exe  LYClean.o LYShowInfo.o 
LYEdit.o LYStrings.o LYMail.o HTAlert.o GridText.o LYGetFile.o LYMain.o LYMainLoop.o 
LYCurses.o LYBookmark.o LYUtils.o LYOptions.o LYReadCFG.o LYSearch.o LYHistory.o 
LYForms.o LYPrint.o LYrcFile.o LYDownload.o LYNews.o LYKeymap.o HTML.o HTFWriter.o 
HTInit.o DefaultStyle.o LYUpload.o LYLeaks.o LYexit.o LYJump.o LYList.o LYCgi.o 
LYTraversal.o LYEditmap.o LYCharSets.o LYCharUtils.o LYMap.o LYCookie.o LYStyle.o 
LYHash.o LYPrettySrc.o TRSTable.o UCdomap.o UCAux.o UCAuto.o  LYLocal.o 
../WWW/Library/Implementation/libwww.a   -lslang -L/usr/local/lib -luser32
| ../WWW/Library/Implementation/libwww.a(HTTCP.o):HTTCP.c:(.text+0x5f2): 
undefined reference to `_WSASetLastError'
| Info: resolving _h_errno by linking to __imp__h_errno (auto-import)
| collect2: ld returned 1 exit status
| make[1]: *** [lynx.exe] Error 1
| make[1]: Leaving directory 
`/cygdrive/d/home/patakuti/tmp/cygwin/dev18/lynx2-8-6/src'
| make: *** [all] Error 2

Why "undefined reference to `_WSASetLastError'" ?
How can I fix it?

configure option: --with-screen=slang
% uname -a
CYGWIN_NT-5.1 myPC 1.5.19(0.150/4/2) 2006-01-20 13:28 i686 Cygwin
--
Takeshi Hataguchi
E-mail: [EMAIL PROTECTED]


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


_______________________________________________
Lynx-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lynx-dev

Reply via email to