delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/01/07:05:32

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 1 Oct 2004 13:06:29 +0200
From: Corinna Vinschen <corinna AT vinschen DOT de>
To: cygwin AT cygwin DOT com
Subject: Re: Cygserver 100% CPU (was: References to both cygwin1.dll and msvcrt.dl
Message-ID: <20041001110629.GK26915@cygbert.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20040930150049 DOT GA29206 AT cygbert DOT vinschen DOT de> <20041001062211 DOT 36622 DOT qmail AT web60305 DOT mail DOT yahoo DOT com>
Mime-Version: 1.0
In-Reply-To: <20041001062211.36622.qmail@web60305.mail.yahoo.com>
User-Agent: Mutt/1.4.2i

On Sep 30 23:22, Patrick Samson wrote:
> --- Corinna Vinschen wrote:
> > On Sep 30 00:12, Patrick Samson wrote:
> > > I built the DLL another way, and now have:
> > > $ cygcheck ./dp40.dll
> > > .\dp40.dll
> > >   D:\cygwin\bin\cygwin1.dll <----------------
> > >     C:\WINNT\System32\ADVAPI32.DLL
> > >       C:\WINNT\System32\ntdll.dll
> > >       C:\WINNT\System32\KERNEL32.dll
> > >       C:\WINNT\System32\USER32.dll
> > >         C:\WINNT\System32\GDI32.dll
> > >       C:\WINNT\System32\RPCRT4.dll
> > >   D:\cygwin\bin\tcl84.dll
> > >   C:\WINNT\System32\WS2_32.DLL
> > >     C:\WINNT\System32\MSVCRT.dll <-----------
> > >     C:\WINNT\System32\WS2HELP.dll
> > > Seems better, as msvcrt.dll is only there because
> > > of ws2_32 (winsock2).
> > 
> > Which shouldn't be referenced at all.  dp40.dll
> > apparently references
> > ws2_32.dll directly instead of using the Cygwin
> > socket calls.
> > 
> There is the link command generated by autotools:
> gcc -mwin32 -g -O2  -o dp40.dll -shared
> -Wl,--export-all-symbols -Wl,-s dpChan.o dpCmds.o
> dpRPC.o dpPlugF.o dpFilte
> rs.o dpIdentity.o dpPackOff.o dpInit.o dpSerial.o
> dpSock.o dpWinInit.o dpWinSerial.o dpWinSock.o
> dpWinTcp.o dpWinUD
> P.o dpWinIPM.o -ltcl84 -lws2_32
> 
> If I omit -lws2_32, I receive "undefined reference"
> for winsock functions (one of the source has
> #include <ws2tcpip.h> for IP multicast).
> What should I do?

Nothing for now.  If you don't need multicast, you can try to build
without it but that's very likely not related to the cygserver problem.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019