[Mimedefang] 2.71 not compiling on FreeBSD 6.4

Kitione Lalakomacoi kitione at lalakomacoi.com
Mon Feb 14 04:07:46 EST 2011


Trying to install 2.71 on a FreeBSD box (running 6.4-RELEASE-p8), and
failing at the make - any ideas?

# ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for ar... ar
checking for a BSD-compatible install... /usr/bin/install -c
checking for perl... /usr/bin/perl
checking whether socklen_t is defined... yes
checking for Perl installation variable prefix... /usr/local
checking for Perl installation variable siteprefix... /usr/local
checking for Perl installation variable vendorprefix... /usr/local
checking for Perl installation variable installarchlib...
/usr/local/lib/perl5/5.8.7/i386-freebsd
checking for Perl installation variable installprivlib...
/usr/local/lib/perl5/5.8.7
checking for Perl installation variable installbin... /usr/local/bin
checking for Perl installation variable installman1dir... /usr/local/man/man1
checking for Perl installation variable installman3dir... /usr/local/man/man3
checking for Perl installation variable installscript... /usr/local/bin
checking for Perl installation variable installsitearch...
/usr/local/lib/perl5/site_perl/5.8.7/i386-freebsd
checking for Perl installation variable installsitelib...
/usr/local/lib/perl5/site_perl/5.8.7
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for wait3 that fills in rusage... yes
checking for nm... /usr/bin/nm
checking for Perl module IO::Socket... ok
checking for Perl module MIME::Tools 5.410 ()... ok
checking for Perl module MIME::WordDecoder... ok
checking for Perl module Digest::SHA1... ok
checking for Perl module Mail::SpamAssassin 1.6 or better... yes
checking for Perl module HTML::Parser... yes
checking for Perl module Archive::Zip... yes
checking MIME-Tools version... 5.500
checking for Perl module Sys::Syslog... ok
checking for Perl module Unix::Syslog... ok
checking for Perl module ExtUtils::Embed... ok
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for unistd.h... (cached) yes
checking for stdint.h... (cached) yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking whether stdint.h defines uint32_t... yes
checking whether sys/types.h defines uint32_t... yes
checking whether sig_atomic_t is defined... yes
checking whether gcc accepts -pthread... yes
checking if we can embed a Perl interpreter in C... yes
checking if it is safe to destroy and recreate a Perl interpreter... yes
checking for res_init in -lresolv... no
checking for htons in -lsocket... no
checking for gethostbyname in -lnsl... no
checking for pthread_once in -lpthread... yes
checking for initgroups... yes
checking for getpwnam_r... yes
checking for setrlimit... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for readdir_r... yes
checking for pathconf... yes
checking for inet_ntop... yes
checking for libmilter/mfapi.h... /usr/include/libmilter/mfapi.h
checking for antivir... /bin/false
checking for vascan... /bin/false
checking for uvscan... /bin/false
checking for bdc... /bin/false
checking for sweep... /bin/false
checking for savscan... /bin/false
checking for vscan... /bin/false
checking for kavscanner... /bin/false
checking for clamscan... /usr/local/bin/clamscan
checking for AvpLinux... /bin/false
checking for kavdaemon... /bin/false
checking for aveclient... /bin/false
checking for csav... /bin/false
checking for fsav... /bin/false
checking for f-prot... /bin/false
checking for fpscan... /bin/false
checking for sophie... /bin/false
checking for nvcc... /bin/false
checking for clamd... /usr/local/sbin/clamd
checking for trophie... /bin/false
checking for nod32cli... /bin/false
checking for libmilter.a... /usr/lib/libmilter.a
checking for libsm.a... no
checking for libmilter.so... /usr/lib/libmilter.so
checking for sendmail... /usr/sbin/sendmail
checking for rm... /bin/rm
checking whether libmilter requires -lsm... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mimedefang.pl
config.status: creating examples/init-script
config.status: creating mimedefang-filter.5
config.status: creating mimedefang-multiplexor.8
config.status: creating mimedefang-protocol.7
config.status: creating mimedefang-notify.7
config.status: creating mimedefang.8
config.status: creating mimedefang.pl.8
config.status: creating md-mx-ctrl.8
config.status: creating watch-mimedefang
config.status: creating redhat/mimedefang-init
config.status: creating redhat/mimedefang-sysconfig
config.status: creating config.h

*** Virus scanner detection results:
H+BEDV   'antivir'   NO (not found)
Vexira   'vascan'    NO (not found)
NAI      'uvscan'    NO (not found)
BDC      'bdc'       NO (not found)
Sophos   'sweep'     NO (not found)
Sophos   'savscan'   NO (not found)
TREND    'vscan'     NO (not found)
CLAMSCAN 'clamav'    YES - /usr/local/bin/clamscan
AVP      'AvpLinux'  NO (not found)
AVP5     'aveclient' NO (not found)
KAVSCANNER 'kavscanner' NO (not found)
CSAV     'csav'      NO (not found)
FSAV     'fsav'      NO (not found)
FPROT    'f-prot'    NO (not found)
FPSCAN   'fpscan'    NO (not found)
SOPHIE   'sophie'    NO (not found)
NVCC     'nvcc'      NO (not found)
CLAMD    'clamd'     YES - /usr/local/sbin/clamd
TROPHIE  'trophie'   NO (not found)
NOD32    'nod32cli'  NO (not found)

Make sure clamd runs as the defang user!
  ...and make sure you use clamd version 0.67 or higher.

Found Mail::SpamAssassin.  You may use spam_assassin_* functions
Found HTML::Parser.  You may use append_html_boilerplate()

Note: SpamAssassin and HTML::Parser are
detected at run-time, so if you install or remove any of those modules, you
do not need to re-run ./configure and make a new mimedefang.pl.


# make
gcc -g -O2 -pthread -D_POSIX_PTHREAD_SEMANTICS  -DEMBED_PERL
-DSAFE_EMBED_PERL   -DPERL_PATH=\"/usr/bin/perl\" 
-DMIMEDEFANG_PL=\"/usr/local/bin/mimedefang.pl\"  -DRM=\"/bin/rm\" 
-DVERSION=\"2.71\"  -DSPOOLDIR=\"/var/spool/MIMEDefang\" 
-DQDIR=\"/var/spool/MD-Quarantine\"  -DCONFDIR=\"/etc/mail\"  -c -o
mimedefang.o ./mimedefang.c
gcc -g -O2 -pthread -D_POSIX_PTHREAD_SEMANTICS  -DEMBED_PERL
-DSAFE_EMBED_PERL   -DPERL_PATH=\"/usr/bin/perl\" 
-DMIMEDEFANG_PL=\"/usr/local/bin/mimedefang.pl\"  -DRM=\"/bin/rm\" 
-DVERSION=\"2.71\"  -DSPOOLDIR=\"/var/spool/MIMEDefang\" 
-DQDIR=\"/var/spool/MD-Quarantine\"  -DCONFDIR=\"/etc/mail\"  -c -o
drop_privs_threaded.o ./drop_privs.c
gcc -g -O2 -pthread -D_POSIX_PTHREAD_SEMANTICS  -DEMBED_PERL
-DSAFE_EMBED_PERL   -DPERL_PATH=\"/usr/bin/perl\" 
-DMIMEDEFANG_PL=\"/usr/local/bin/mimedefang.pl\"  -DRM=\"/bin/rm\" 
-DVERSION=\"2.71\"  -DSPOOLDIR=\"/var/spool/MIMEDefang\" 
-DQDIR=\"/var/spool/MD-Quarantine\"  -DCONFDIR=\"/etc/mail\"  -c -o
utils.o ./utils.c
gcc -g -O2 -pthread -D_POSIX_PTHREAD_SEMANTICS  -DEMBED_PERL
-DSAFE_EMBED_PERL   -DPERL_PATH=\"/usr/bin/perl\" 
-DMIMEDEFANG_PL=\"/usr/local/bin/mimedefang.pl\"  -DRM=\"/bin/rm\" 
-DVERSION=\"2.71\"  -DSPOOLDIR=\"/var/spool/MIMEDefang\" 
-DQDIR=\"/var/spool/MD-Quarantine\"  -DCONFDIR=\"/etc/mail\"  -c -o rm_r.o
./rm_r.c
gcc -g -O2 -pthread -D_POSIX_PTHREAD_SEMANTICS  -DEMBED_PERL
-DSAFE_EMBED_PERL   -DPERL_PATH=\"/usr/bin/perl\" 
-DMIMEDEFANG_PL=\"/usr/local/bin/mimedefang.pl\"  -DRM=\"/bin/rm\" 
-DVERSION=\"2.71\"  -DSPOOLDIR=\"/var/spool/MIMEDefang\" 
-DQDIR=\"/var/spool/MD-Quarantine\"  -DCONFDIR=\"/etc/mail\"  -c -o
syslog-fac.o ./syslog-fac.c
gcc -g -O2 -pthread -D_POSIX_PTHREAD_SEMANTICS  -DEMBED_PERL
-DSAFE_EMBED_PERL   -DPERL_PATH=\"/usr/bin/perl\" 
-DMIMEDEFANG_PL=\"/usr/local/bin/mimedefang.pl\"  -DRM=\"/bin/rm\" 
-DVERSION=\"2.71\"  -DSPOOLDIR=\"/var/spool/MIMEDefang\" 
-DQDIR=\"/var/spool/MD-Quarantine\"  -DCONFDIR=\"/etc/mail\"  -c -o
dynbuf.o ./dynbuf.c
gcc -g -O2 -pthread -D_POSIX_PTHREAD_SEMANTICS  -DEMBED_PERL
-DSAFE_EMBED_PERL   -DPERL_PATH=\"/usr/bin/perl\" 
-DMIMEDEFANG_PL=\"/usr/local/bin/mimedefang.pl\"  -DRM=\"/bin/rm\" 
-DVERSION=\"2.71\"  -DSPOOLDIR=\"/var/spool/MIMEDefang\" 
-DQDIR=\"/var/spool/MD-Quarantine\"  -DCONFDIR=\"/etc/mail\"  -c -o
milter_cap.o ./milter_cap.c
gcc -g -O2 -pthread -D_POSIX_PTHREAD_SEMANTICS  -DEMBED_PERL
-DSAFE_EMBED_PERL   -DPERL_PATH=\"/usr/bin/perl\" 
-DMIMEDEFANG_PL=\"/usr/local/bin/mimedefang.pl\"  -DRM=\"/bin/rm\" 
-DVERSION=\"2.71\"  -DSPOOLDIR=\"/var/spool/MIMEDefang\" 
-DQDIR=\"/var/spool/MD-Quarantine\"  -DCONFDIR=\"/etc/mail\"  -c -o
gen_id.o ./gen_id.c
gcc -g -O2 -pthread -o mimedefang mimedefang.o drop_privs_threaded.o
utils.o rm_r.o syslog-fac.o dynbuf.o milter_cap.o gen_id.o  -lmilter
-lpthread
mimedefang.o(.text+0x3292): In function `eom':
./mimedefang.c:1887: undefined reference to `smfi_chgfrom'
milter_cap.o(.text+0x13): In function `milter_version_ok':
./milter_cap.c:37: undefined reference to `smfi_version'
*** Error code 1






More information about the MIMEDefang mailing list