Subject: Re: Sol7/asun213/AFS35 "renamefile" linking error?
From: andrew morgan (morgan@orst.edu)
Date: Wed Jan 26 2000 - 20:12:58 EST
On Wed, 26 Jan 2000, Paul T Hirose wrote:
> On a related-tangent:
> This error does *not* exist in the "pre-asun2.1.4-35" code, which compiles
> and links everything cleanly. However, when running 2.1.4-35, I get an
> error "uam_load(uams_clrtxt.so)" which I've narrowed down to
> etc/afpd/uam.c, line 36 (which in turn uses mod_open, which in turn I
> think, is just a call to dlopen). I just dunno anything about using
> dynamic libs so I really dunno how to debug past this.
Adrian, how about adding a call to 'dlerror' and sending the output to
syslog when loading uams? I found this useful when I was debugging my uam
code for papd...
Speaking of which, I've got uam support working with some hard-coded
values and only for uams_pam.c. I need to write some wrapper functions to
clean it up and then add the xxx_printer functions to the other uams. I
should have something fairly complete in a few weeks.
Paul, if you look at the man page for dlerror, you can probably figure out
how to add more useful error messages for loading uams. Basically, add
the following line in uam.c, after the mod_open call fails and is logged
to syslog:
syslog(LOG_ERR, "uam_load (%s): %s", name, dlerror());
Andy
This archive was generated by hypermail 2b28 : Wed Jan 17 2001 - 14:29:53 EST