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

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
Message-ID: <3C4C0A31.1050701@syntrex.com>
Date: Mon, 21 Jan 2002 13:31:45 +0100
From: Pavel Tsekov <ptsekov AT syntrex DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1
X-Accept-Language: en-us
MIME-Version: 1.0
To: David Starks-Browning <starksb AT ebi DOT ac DOT uk>
CC: cygwin AT cygwin DOT com
Subject: Re: "dynamic link library /dev/null could not be found"
References: <7614-Mon21Jan2002113701+0000-starksb AT ebi DOT ac DOT uk> <3C4BFF8D DOT 1020804 AT syntrex DOT com> <4011-Mon21Jan2002120353+0000-starksb AT ebi DOT ac DOT uk>

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

- Raw text -


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