From owner-freebsd-current Sat May 30 22:07:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA03383 for freebsd-current-outgoing; Sat, 30 May 1998 22:07:45 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from isua3.iastate.edu (isua3.iastate.edu [129.186.1.139]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA03378 for ; Sat, 30 May 1998 22:07:42 -0700 (PDT) (envelope-from graphix@iastate.edu) Received: from localhost (graphix@localhost) by isua3.iastate.edu (8.8.5/8.8.5) with SMTP id AAA09076; Sun, 31 May 1998 00:07:30 -0500 (CDT) Message-Id: <199805310507.AAA09076@isua3.iastate.edu> To: John Birrell Cc: current@FreeBSD.ORG Subject: Re: Undefined symbols referenced In-reply-to: Your message of "Sun, 31 May 1998 14:47:20 +1000." <199805310447.OAA13356@cimlogic.com.au> Date: Sun, 31 May 1998 00:07:28 CDT From: "Kent Vander Velden" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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