[Top][All Lists]

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

Re: [Lynx-dev] compile error under Cygwin (was: lynx2.8.6dev.18)

From: Thomas Dickey
Subject: Re: [Lynx-dev] compile error under Cygwin (was: lynx2.8.6dev.18)
Date: Wed, 31 May 2006 11:54:52 -0400 (EDT)

On Thu, 1 Jun 2006, address@hidden 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 
-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 
| 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: address@hidden

Thomas E. Dickey

reply via email to

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