File: README

package info (click to toggle)
cernlib 2004.11.04.dfsg-0sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 29,292 kB
  • ctags: 1,159
  • sloc: ansic: 2,285; sh: 840; makefile: 582
file content (40 lines) | stat: -rw-r--r-- 1,670 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Nothing in this directory is needed for compiling or building packages.
It's just a few simple scripts that make my life easier when trying to debug
library dependencies.

makedeplist
-----------

When run in the top-level cernlib source directory after a compilation (note
that DEB_BUILD_OPTIONS must have been set to "nostrip"), this script will
produce directories bindeps and libdeps.  These contain files like this:

- XXX.symdeps.txt is a list of undefined symbols in a binary or shlib XXX,
  found in another Cernlib library
- XXX.filedeps.txt is a summary of XXX.symdeps.txt (just gives the number
  of symbols found in each depending library)

Note that some symbols may be found in more than one library, so the filedeps
file may list unnecessary dependencies.

- XXX.not-in-cernlib.txt is a list of undefined symbols that are not present
  in any Cernlib library

Symbols containing the following regexps are omitted, since they are found in
the known dependencies glibc and g2c (FORTRAN runtime library):

^G77 ^[^_]_[^_] ^do_.io ^pow_zz$ @@GLIBC

findsym
-------

This script will find needed symbols recursively in any .o, .a, or .so files in
a directory.  "findsym has <symbol>" searches for object files that provide a
given symbol.  "findsym needs <symbol>" searches for object files that have the
symbol undefined.  An optional third argument specifies the starting directory
("." by default).  Thus, seeing that libdeps/libkuipX11.not-in-cernlib.txt
contains (among others) the symbol XBell, we run (using an ingenious guess for
the starting directory) "findsym has XBell /usr/X11R6/lib" to determine that
this is found in libX11.so.

--Kevin McCarty