[m-dev.] Debugging and dynamic linking
Ralph Becket
rafe at cs.mu.OZ.AU
Fri Nov 26 15:03:47 AEDT 2004
Maria wants to `--trace deep' a module in a program that links against a
C library that uses dlopen. Can anybody tell me precisely what these
linker errors mean and what should be done to fix the problem?
Ta,
-- Ralph
[273]> mmc --make ic_dc_toy1 -L /u/poole/ralphb/hal/inc/clpr -l clpr
--c-include-directory /u/poole/mbanda/hal1/src/lib --c-include-directory
/u/poole/ralphb/hal/inc/clpr --linkage static --trace deep
Making ic_dc_toy1
/home/ralphb/mercury-compiler-rotd-2004-11-11/lib/mercury/lib/asm_fast.gc.tr/i6
86-pc-linux-gnu/libmer_browser.a(mdb.dl.o)(.text+0xad): In function
`<predicate 'mdb:dl.open'/6 mode 0>':
: Using 'dlopen' in statically linked applications requires at runtime the
shared libraries from the glibc version used for linking
/usr/bin/../lib/libreadline.a(complete.o)(.text+0x19d0): In function
`rl_username_completion_function':
: Using 'getpwent' in statically linked applications requires at runtime the
shared libraries from the glibc version used for linking
/usr/bin/../lib/libreadline.a(tilde.o)(.text+0x4da): In function
`tilde_expand_word':
: Using 'getpwnam' in statically linked applications requires at runtime the
shared libraries from the glibc version used for linking
/usr/bin/../lib/libreadline.a(shell.o)(.text+0xff): In function
`sh_get_home_dir':
: Using 'getpwuid' in statically linked applications requires at runtime the
shared libraries from the glibc version used for linking
/usr/bin/../lib/libreadline.a(complete.o)(.text+0x199f): In function
`rl_username_completion_function':
: Using 'setpwent' in statically linked applications requires at runtime the
shared libraries from the glibc version used for linking
/usr/bin/../lib/libreadline.a(complete.o)(.text+0x19e7): In function
`rl_username_completion_function':
: Using 'endpwent' in statically linked applications requires at runtime the
shared libraries from the glibc version used for linking
/u/poole/ralphb/hal/inc/clpr/libclpr.a(lib.o)(.text+0x31a): In function
`CLPR_do_atom_printf':
/home/ralphb/hal/inc/clpr/lib.c:418: the use of `mktemp' is dangerous, better
use `mkstemp'
poole:/u/poole/mbanda/NewSolvers/joachim
[274]>
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list