[Mimedefang] mimedefang build issues for Tru64 unix

David Potterveld POTTERVELD at ANLMEP.PHY.ANL.GOV
Tue Oct 1 16:39:00 EDT 2002


Hi,

There are a few build issues to report for mimedefang 2.21 on
DEC/Compaq/HP's Tru64 Unix (version 4.0f) [aka OSF1] with sendmail 8.12.5:

1) The native compiler "cc" can be used, but needs to be called as
   "cc -pthread". The configure process should detect whether or not
   the compiler supports "-pthread" and use it if it does.

2) The macro __P(X) is used in sendmail's timers.h (which gets pulled in by
mimedefang.c) but for some reason is undefined. This can be resolved by
adding the following line to config.h

#define __P(X) X

Perhaps this should be protected by an #ifndef to avoid breakage if already
defined on other platforms.

3) This OS doesn't have snprintf() or vsnprintf(). The workaround is to use
sm_snprintf() and sm_vsnprintf() replacements contained in sendmail's libsm.

Thus, I would like to see the configure process do a test for snprintf and
vsnprintf, and if not present then insert the following into config.h

#define snprintf sm_snprintf
#define vsnprintf sm_vsnprintf

and also tailor the makefile so that libsm is included in the link.
You'll also need to modify rm_r.c so that it includes config.h near the top.

Thanks!
David Potterveld (Argonne National Laboratory)




More information about the MIMEDefang mailing list