[MacPorts] #62965: libmilter: Some additional files should be included
MacPorts
noreply at macports.org
Tue May 25 16:21:57 UTC 2021
#62965: libmilter: Some additional files should be included
-------------------------+------------------------
Reporter: grumpybozo | Owner: danielluke
Type: defect | Status: accepted
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: libmilter |
-------------------------+------------------------
Comment (by grumpybozo):
Replying to [comment:4 danielluke]:
> From https://github.com/The-McGrail-
Foundation/MIMEDefang/blob/master/Changelog:
>
> {{{
> 2002-07-17 Dianne Skoll <dfs at roaringpenguin.com>
>
> * configure.in: Take out tests for libsm.a and libsmutil.a -- they
> are internal Sendmail libraries which should not be required.
> INCOMPATIBILITY: YOU MUST NOW USE SENDMAIL 8.12.X
> }}}
I will investigate the specifics in MIMEDefang further, but according to
the output of MIMEDefang's 'configure' script in v2.84:
{{{
checking for libmilter/mfapi.h... /opt/local/include/libmilter/mfapi.h
checking for libmilter.a... no
checking for libsm.a... no
checking for libmilter.so... /opt/local/lib//libmilter.so
checking whether libmilter requires -lsm... yes
}}}
(Note that because MIMEDefang expects shared libraries to have .so
extensions, so I've symlinked /opt/local/lib/libmilter.so to
/opt/local/lib/libmilter.dyld)
The result of that is the addition of '-lsm' to the $LIBS flags used in
the final link, which fails unless I manually copy libsm.a from the
obj.<foo> directory of the libmilter port's build directory .
From looking at config.log, I suspect that the configure script is making
a wrong interpretation of an error in its test:
{{{
configure:6220: checking whether libmilter requires -lsm
configure:6234: gcc -o conftest -g -O2 -L/opt/local/lib conftest.c
-lpthread -lresolv -lmilter >&5
conftest.c:40:10: fatal error: 'libmilter/mfapi.h' file not found
#include "libmilter/mfapi.h"
^
1 error generated.
}}}
I will consult with Dianne regarding this, as she's the only person
intimately familiar with the C and autoconf portions of MIMEDefang.
--
Ticket URL: <https://trac.macports.org/ticket/62965#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list