I'm getting a strange error from ld.so.1 when I attempt to run procmail
through a .forward file. It's complaining about symbols not found,
and killing the process; the particular symbol is `setregid'.
I discovered this by using the following in my .forward:
"| truss -f -a -o /home/wesm/ptruss.log -w 1 /home/wesm/gnu/bin/procmail -f-
|| exit 75 #wesm"
OTOH, if I invoke procmail directly on a test message, it seems to
work fine.
Here is the relevant line from truss:
19968: write(1, 0xEFFFF7C0, 132) = 132
19968: l d . s o . 1 : / h o m e / w e s m / g n u / b i n / p r o c
19968: m a i l : f a t a l : r e l o c a t i o n e r r o r : s
19968: y m b o l n o t f o u n d : s e t r e g i d : r e f e r
19968: e n c e d i n / h o m e / w e s m / g n u / b i n / p r o c
19968: m a i l
(Note that at this point, fd 1 is pointing to /dev/null :-(
System particulars:
SunOS ananke 5.5 Generic sun4m sparc SUNW,SPARCstation-5
ldd procmail:
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libc.so.1 => /usr/lib/libc.so.1
libintl.so.1 => /usr/lib/libintl.so.1
libmp.so.1 => /usr/lib/libmp.so.1
libw.so.1 => /usr/lib/libw.so.1
nm /usr/lib/libc.so.1 | grep setregid:
[2211] | 338608| 56|FUNC |GLOB |0 |8 |setregid
dump -Lv procmail:
/home/wesm/gnu/bin/procmail:
**** DYNAMIC SECTION INFORMATION ****
.dynamic:
[INDEX] Tag Value
[1] NEEDED libsocket.so.1
[2] NEEDED libnsl.so.1
[3] NEEDED libdl.so.1
[4] NEEDED libc.so.1
[5] INIT 0x30248
[6] FINI 0x30280
[7] HASH 0x100e8
[8] STRTAB 0x12ad8
[9] STRSZ 0x13d3
[10] SYMTAB 0x10f08
[11] SYMENT 0x10
[12] DEBUG 0x0
[13] PLTGOT 0x428f0
[14] PLTSZ 0x438
[15] PLTREL 0x7
[16] JMPREL 0x13ed0
[17] RELA 0x13eac
[18] RELASZ 0x45c
[19] RELAENT 0xc
I made no modifications to the makefiles, other than specifying my
mail directory and installation directory.
I am not on this mailing list, so, if you can help, please reply to me
directly as well.
Thanks!
------
//w
Wes Mitchell Senior Architecture Engineer
BroadVision, Inc. wesm(_at_)broadvision(_dot_)com
333 Distel Cir. Standard disclaimers apply.
Los Altos, CA 94022