Subject: problem compiling sendmail with pthreads
To: None <netbsd-users@netbsd.org>
From: Lista de NetBSD Users <list10@sepc.edu.mx>
List: netbsd-users
Date: 06/05/2002 21:51:08
Hello

I need compile pkgsrc/mail/sendmail with the milter
support but it needs pthreads and I got error messages
such as

Including ../devtools/Site/site.config.m4
Making dependencies in ../obj.NetBSD.1.5.2.i386/sendmail
cc -M -I. -I../../include -DNEWDB -DNIS -DMAP_REGEX  -DNETISO
-DNETINET6 -DNEEDSGETIPNODE -DTCPWRAPPERS -D_FFR_MILTER=1
main.c alias.c arpadate.c bf_torek.c clock.c collect.c conf.c
control.c convtime.c daemon.c deliver.c domain.c envelope.c
err.c headers.c macro.c map.c mci.c milter.c mime.c parseaddr.c
queue.c readcf.c recipient.c savemail.c sfsasl.c shmticklib.c
srvrsmtp.c stab.c stats.c sysexits.c timers.c trace.c udb.c
usersmtp.c util.c version.c   >> Makefile
In file included from sendmail.h:1412,
                 from main.c:30:
../../include/libmilter/milter.h:76: pthread.h: No such file or directory

The config specs seems not to be a problem because I
add 3 lines (as README says) to files/site.config.m4

dnl Milter
APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_MILTER=1')
APPENDDEF(`conf_libmilter_ENVDEF', `-D_FFR_MILTER=1')

I have testing installing {mit,unproven}-threads, then
pkg_deleting.... I have tried with adding some lines
to Makefile

USE_PTHREAD=    unproven-pthreads
PTHREAD_TYPE=   "unproven-pthreads"
.include "../../devel/unproven-pthreads/buildlink.mk"
.include "../../mk/bsd.prefs.mk"

But all of this give me exactly the same results and errors.

This is my first experience with pthreads and I am
feeling lost because I have not idea about what is
happening.

Does somebody can give me ideas?

Thanks in advance

Heron Gallegos
Centro Siglo XXI - Informatica Educativa
Saltillo, Coahuila Mexico

PS: Using NetBSD-1.5.2/i386 and my pkgsrc.tar.gz is of past week.