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"


David Starks-Browning wrote:

> 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 ?
>>
> 

Just a simple test I've done, though I don't know
what it means exactly:


[ptsekov@nobel lib]$ ls -la
total 1928
drwxr-xr-x    2 ptsekov  develope     4096 Jan 21 13:19 .
drwxr-xr-x    7 ptsekov  develope     4096 Jan 19 19:22 ..
-rw-r--r--    1 ptsekov  develope      523 Jan 19 19:22 automode.o
-rw-r--r--    1 ptsekov  develope      440 Jan 19 19:22 binmode.o
-rw-r--r--    1 ptsekov  develope      560 Jan 19 19:22 crt0.o
-rw-r--r--    1 ptsekov  develope      731 Jan 19 19:22 gcrt0.o
-rw-r--r--    1 ptsekov  develope      678 Jan 19 19:22 libautomode.a
-rw-r--r--    1 ptsekov  develope      594 Jan 19 19:22 libbinmode.a
-rw-r--r--    1 ptsekov  develope   683164 Jan 19 19:22 libc.a
-rw-r--r--    1 ptsekov  develope   792112 Jan 19 19:22 libcygwin.a
lrwxrwxrwx    1 ptsekov  develope       11 Jan 21 13:19 libg.a -> 
libcygwin.a
-rw-r--r--    1 ptsekov  develope     4536 Jan 19 19:22 libgmon.a
-rw-r--r--    1 ptsekov  develope   174096 Jan 19 19:22 libiberty.a
-rw-r--r--    1 ptsekov  develope   191970 Jan 19 19:22 libm.a
-rw-r--r--    1 ptsekov  develope    54542 Jan 19 19:22 libpthread.a
-rw-r--r--    1 ptsekov  develope      594 Jan 19 19:22 libtextmode.a
-rw-r--r--    1 ptsekov  develope      440 Jan 19 19:22 textmode.o
[ptsekov@nobel lib]$ grep -n -e "/dev/null" *
Binary file libc.a matches
Binary file libm.a matches
Binary file libpthread.a matches

This are the same files that are listed in the 1.3.7-1 announcement:

- Create special versions of import library with only appropriate symbols
   for libpthread.a, libm.a, and libc.a. (Ralf Habacker, Christopher Faylor)


I dont know the details on how this special libs are build but from
what was posted on the list I know some kind of script is involved.
Maybe there is some error in the script or perhaps your usage of
-lpthread is not quite right and triggers the real problem. However
someone with more knowledge is needed to answer these questions :)


--
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]