From owner-freebsd-questions Mon Mar 24 10:07:23 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA22937 for questions-outgoing; Mon, 24 Mar 1997 10:07:23 -0800 (PST) Received: from cube.i-pi.com (cube.i-pi.com [198.49.217.1]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id KAA22928 for ; Mon, 24 Mar 1997 10:07:18 -0800 (PST) Received: (from ingham@localhost) by cube.i-pi.com (8.6.12/8.6.12) id LAA21855; Mon, 24 Mar 1997 11:06:57 -0700 Message-Id: <199703241806.LAA21855@cube.i-pi.com> Content-Type: text/plain MIME-Version: 1.0 (NeXT Mail 3.3 v118.2) Received: by NeXT.Mailer (1.118.2) From: Kenneth Ingham Date: Mon, 24 Mar 97 11:06:55 -0700 To: Andrew Subject: Re: Undefined symbol referenced from text segment cc: freebsd-questions@FreeBSD.ORG References: Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk I look for missing routines a somewhat brute-force way, but it works. The shell syntax is sh/ksh/bash. Exactly what I do varies with the exact situation, but it is something like: cd /usr/lib (or your favorite dir containing libraries) for f in lib*.a do nm $f | grep -q "T _your_function" && echo $f done You'll see a list of libraries with the function defined. Multiple libraries because you might have the profiled libraries installed, etc. Kenneth