Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Mar 97 11:06:55 -0700
From:      Kenneth Ingham <ingham@i-pi.com>
To:        Andrew <andrew@ugh.net.au>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Undefined symbol referenced from text segment
Message-ID:  <199703241806.LAA21855@cube.i-pi.com>
References:  <Pine.NEB.3.96.970324020411.10627B-100000@cottontail.hobart.tased.edu.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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