delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/21/07:04:23

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 21 Jan 2002 12:03:53 +0000
Message-ID: <4011-Mon21Jan2002120353+0000-starksb@ebi.ac.uk>
X-Mailer: emacs 20.7.1 (via feedmail 9-beta-7 I);
VM 7.00 under Emacs 20.7.1
From: David Starks-Browning <starksb AT ebi DOT ac DOT uk>
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: "dynamic link library /dev/null could not be found"
In-Reply-To: <3C4BFF8D.1020804@syntrex.com>
References: <7614-Mon21Jan2002113701+0000-starksb AT ebi DOT ac DOT uk>
<3C4BFF8D DOT 1020804 AT syntrex DOT com>

Oops, I forgot to provide an important clue!  If I remove -lpthread
from the link line, the executable is OK.

On Monday 21 Jan 02, Pavel Tsekov writes:
> This looks rather bizzare! :) Can you show the
> link line which was used ?

Below.

> Do you have a tool which show PE imports/exports ?
> Something like PEDUMP ? This can help to find out which
> is the dll that is being replaced by /dev/null.

I'm afraid I don't know what you're talking about...

Anyway here is gcc -v from the stunnel makefile:

> starksb AT BRYCE[544] $ gcc -v  -o stunnel client.o stunnel.o ssl.o protocol.o sthreads.o pty.o log.o options.o -lutil -lpthread  -L/usr/lib -lssl -lcrypto
> Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs
> gcc version 2.95.3-5 (cygwin special)
>  /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/collect2.exe -Bdynamic --dll-search-prefix=cyg -o stunnel.exe /usr/lib/crt0.o -L/usr/lib -L/usr/local/lib -L/usr/lib -L/usr/lib/w32api -L/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5 client.o stunnel.o ssl.o protocol.o sthreads.o pty.o log.o options.o -lutil -lpthread -lssl -lcrypto -lgcc -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc

> starksb AT BRYCE[545] $ cygcheck ./stunnel.exe
> ./stunnel.exe
>   C:\cygwin\bin\cygcrypto.dll
>     C:\cygwin\bin\cygwin1.dll
> 	C:\WINNT\System32\KERNEL32.dll
> 	  C:\WINNT\System32\ntdll.dll
>   /dev/null - Cannot open
>   C:\cygwin\bin\cygssl.dll
> 
> Use -h to see help about each section

Here is gcc -v with the -lpthread removed:

> starksb AT BRYCE[546] $ gcc -v  -o stunnel client.o stunnel.o ssl.o protocol.o sthreads.o pty.o log.o options.o -lutil -L/usr/lib -lssl -lcrypto
> Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs
> gcc version 2.95.3-5 (cygwin special)
>  /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/collect2.exe -Bdynamic --dll-search-prefix=cyg -o stunnel.exe /usr/lib/crt0.o -L/usr/lib -L/usr/local/lib -L/usr/lib -L/usr/lib/w32api -L/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5 client.o stunnel.o ssl.o protocol.o sthreads.o pty.o log.o options.o -lutil -lssl -lcrypto -lgcc -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc

> starksb AT BRYCE[547] $ cygcheck ./stunnel.exe
> ./stunnel.exe
>   C:\cygwin\bin\cygcrypto.dll
>     C:\cygwin\bin\cygwin1.dll
> 	C:\WINNT\System32\KERNEL32.dll
> 	  C:\WINNT\System32\ntdll.dll
>   C:\cygwin\bin\cygssl.dll
> 
> Use -h to see help about each section

Thanks,
David


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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