Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 May 1998 00:07:28 CDT
From:      "Kent Vander Velden" <graphix@iastate.edu>
To:        John Birrell <jb@cimlogic.com.au>
Cc:        current@FreeBSD.ORG
Subject:   Re: Undefined symbols referenced 
Message-ID:  <199805310507.AAA09076@isua3.iastate.edu>
In-Reply-To: Your message of "Sun, 31 May 1998 14:47:20 %2B1000." <199805310447.OAA13356@cimlogic.com.au> 

next in thread | previous in thread | raw e-mail | index | archive | help

In message <199805310447.OAA13356@cimlogic.com.au>, John Birrell writes:

>It looks to me as though you've updated to a -current libc (with weak
>symbols for the syscalls), but your linker doesn't know about weak
>symbols. Is that possible? It's surprising.

  Here are the dates on the linker and the libraries:

namedb|Sun12:04am} file /usr/lib/libc.so.3.1 
/usr/lib/libc.so.3.1: FreeBSD/i386 compact demand paged shared library not stripped
namedb|Sun12:04am} file /usr/lib/libc.a
/usr/lib/libc.a: current ar archive random library
namedb|Sun12:05am} ls -l /usr/bin/ld
-r-xr-xr-x  1 bin  bin  122880 May 14 03:41 /usr/bin/ld*
namedb|Sun12:05am} ls -l /usr/lib/libc*
-r--r--r--  1 bin   bin  600382 May 14 03:37 /usr/lib/libc.a
-r--r--r--  1 bin   bin  435727 Jun 28  1996 /usr/lib/libc.so.2.2
-r--r--r--  1 bin   bin  458179 Dec 18 22:42 /usr/lib/libc.so.3.0
-r--r--r--  1 bin   bin  475277 May 14 03:37 /usr/lib/libc.so.3.1

>If you run "nm -W /usr/lib/libc.a | grep _read", do you see:
>
>00000008 T  __read
>00000008 TW _read
>
>(plus many other references)?

  Yes and several others.  Here is the complete output:

namedb|Sat11:59pm} nm -W /usr/lib/libc.a | grep _read
nm:          U  _readlink
utf2.o: no name list         U  _read

         U  _read
nm:          U  _read
mskanji.o: no name list         U  _read

nm: euc.o: no name list
nm:          U  _readdir
         U  _readdir
0000035c T  _fts_read
         U  _readdir
bt_debug.o: no name list
aio_read.o:
00000008 T  __aio_read
00000008 TW _aio_read
         U  _read
         U  _read
         U  _readdir
         U  _read
         U  _read
         U  _readv
         U  _read
00000008 T  __readv
00000008 TW _readv
         U  _read
         U  _read
         U  _readdir
         U  _readdir
00000000 T  _readdir
         U  _read
         U  _read
         U  _read
         U  _read
         U  _read
         U  _readlink
         U  _read
00000008 T  __readlink
00000008 TW _readlink
00000008 T  __read
00000008 TW _read

  Thanks.

---
Kent Vander Velden
kent@iastate.edu

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805310507.AAA09076>