This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: "dynamic link library /dev/null could not be found"


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@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@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@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@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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]