Hello everybody!
System: SCO Openserver 5.0.0, gcc 2.95.2, ld 2.11.2
SCO Opensever has not native support for threads.
I am trying to build Amavis, an interface between sendmail and an antivirus
program.
I am planning to implement sendmail�s new milter feature, which is
threads-dependent. To achieve this, I have already compiled and installed
the following:
- sendmail�s latest version (8.12.1)
- GNU Pthreads 1.4.0 (created from ./configure --enable-pthread)
- sendmail�s threads-dependent milter library (libmilter.a)
- as well as other packages which I prefer to not mention because they�re
not relevant to my question here.
And then comes my problem. I cannot compile amavis. Its �configure� script
complains about sigwait not defined and now I�m stuck there. I was told by
SCO that Openserver has no sigwait() function. (Only pause(), but it has
nothing to do with threads)
Here is a portion of Amavis config.log after running the �configure� script
where we see that sigwait is called from libmilter.a, which is
threads-dependent and has been linked with libpthread.a from Pth 1.4.0.
[previous lines omitted]
configure:3183: checking for smfi_main in -lmilter
configure:3202: gcc -o conftest -g -O2 -I/sendmail-8.12.1/include
conftest.c -lmilter -lsm -lpthreads -lsocket -lc -lldap -llber 1>&5
Undefined first referenced
symbol in file
sigwait /usr/lib/libmilter.a(signal.o)
conftest: fatal error: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 3191 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char smfi_main();
int main() {
smfi_main()
; return 0; }
[following lines omitted]
Now my question is:
Is it feasible to find a workaround for sigwait() or will I have to give up
this project, considering this function doesn�t exist in SCO Unix?
I also tried rebuilding Pth running ./configure --enable-pthread
--enable-syscall-soft and then adding -lpth to LIBS , but amavis configure
script claimed that many other undefined symbols appeared within libpth.a
Thank you all for your help.
Fernando Ronci
E-mail: [EMAIL PROTECTED]
______________________________________________________________________
GNU Portable Threads (Pth) http://www.gnu.org/software/pth/
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager (Majordomo) [EMAIL PROTECTED]