[Mimedefang] Strange MIME-Tools error when make-ing Mimedefang 2.31

Matt Bruce mbruce at insl.co.uk
Mon Mar 24 10:29:01 EST 2003


Hi all,

I have two problems on this Solaris 8 machine that I can't work out,
actually. I'd recently installed MD successfully (on a system not yet
operational), and received the following errors:

---8<---8<---
Mar 24 15:00:27 srv-waterloo mimedefang-multiplexor: [ID 980602 mail.info]
Slave 0 stderr: Can't locate MIME/Tools.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.8.0/sun4-solaris /usr/local/lib/perl5/5.8.0
/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris
/usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl .) at
/usr/local/bin/mimedefang.pl line 52.
---8<---8<---

The obvious response is to say I don't have MIME-Tools installed, but I do -
it's at /usr/local/lib/perl5/site_perl/5.8.0/MIME/Tools.pm (having installed
the RP patched version). Any ideas?

If it's of any relevance, I've been using mostly SunFreeware (SMC*)
packages: gcc, perl, glib, libtool, m4, make, zlib.

So I blew it all away (uninstalled PERL, and deleted the CPAN and
/usr/local/lib/perl5/* directories and MD source) and reinstalled. Seriously
frustrated. :)

The other problem I'm having a weird problem while trying to get MIMEDefang
installed. I've compiled/installed all of the relevant pre-requisites: PERL
5.8.0, CPAN modules (see below), Sendmail 8.12.8, MIMEdefang 2.31, ClamAV
(clamd), MIME-tools-5.411a-RP-Patched-02, and Razor Agents 2.22.

Configure runs fine - see the configure-output.txt attachment. The error I
get when running make on MD is:

---8<---8<---
gcc -g -O2  -D_POSIX_PTHREAD_SEMANTICS -DPERL_PATH=\"/usr/local/bin/perl\"
-DMIMEDEFANG_PL=\"/usr/local/bin/mimedefang.pl\" -DRM=\"/usr/bin/rm\"
-DVERSION=\"2.31\" -DSPOOLDIR=\"/var/spool/MIMEDefang\"
-DQDIR=\"/var/spool/MIMEDefang\" -DCONFDIR=\"/etc/mail\"  -c -o mimedefang.o
mimedefang.c
gcc -g -O2  -D_POSIX_PTHREAD_SEMANTICS -DPERL_PATH=\"/usr/local/bin/perl\"
-DMIMEDEFANG_PL=\"/usr/local/bin/mimedefang.pl\" -DRM=\"/usr/bin/rm\"
-DVERSION=\"2.31\" -DSPOOLDIR=\"/var/spool/MIMEDefang\"
-DQDIR=\"/var/spool/MIMEDefang\" -DCONFDIR=\"/etc/mail\"  -c -o
drop_privs_threaded.o drop_privs.c
gcc -g -O2  -D_POSIX_PTHREAD_SEMANTICS -DPERL_PATH=\"/usr/local/bin/perl\"
-DMIMEDEFANG_PL=\"/usr/local/bin/mimedefang.pl\" -DRM=\"/usr/bin/rm\"
-DVERSION=\"2.31\" -DSPOOLDIR=\"/var/spool/MIMEDefang\"
-DQDIR=\"/var/spool/MIMEDefang\" -DCONFDIR=\"/etc/mail\"  -c -o utils.o
utils.c
gcc -g -O2  -D_POSIX_PTHREAD_SEMANTICS -DPERL_PATH=\"/usr/local/bin/perl\"
-DMIMEDEFANG_PL=\"/usr/local/bin/mimedefang.pl\" -DRM=\"/usr/bin/rm\"
-DVERSION=\"2.31\" -DSPOOLDIR=\"/var/spool/MIMEDefang\"
-DQDIR=\"/var/spool/MIMEDefang\" -DCONFDIR=\"/etc/mail\"  -c -o rm_r.o
rm_r.c
gcc -g -O2  -o mimedefang mimedefang.o drop_privs_threaded.o utils.o rm_r.o
/usr/local/lib/libmilter.a -lpthread -lnsl -lsocket -lresolv
/usr/local/lib/libmilter.a(listener.o): In function `mi_milteropen':
listener.o(.text+0x424): undefined reference to `__inet_addr'
/usr/local/lib/libmilter.a(sm_gethost.o): In function `mi_inet_pton':
sm_gethost.o(.text+0x68): undefined reference to `__inet_pton'
/usr/local/lib/libmilter.a(engine.o): In function `st_connectinfo':
engine.o(.text+0x9a4): undefined reference to `__inet_aton'
collect2: ld returned 1 exit status
make: *** [mimedefang] Error 1
---8<---8<---

All the searches I've done on Google indicate that adding -lresolv seems to
fix it for most people. As you can see - that's already there.


Cheers,

Matt Bruce
mbruce at insl.co.uk


P.S. CPAN modules (all latest with newest Bundle::CPAN) installed:
HTTP::Date, Term::ReadKey, HTML::Parser, Net::Ping, Net::DNS, Time::HiRes,
Digest::SHA1, Getopt::Long, File::Copy, Digest::Nilsimsa, URI::Escape,
Convert::Uulib, Convert::TNEF, Net::Server, Compress::Zlib, Archive::Zip,
M/MA/MARKOV/MailTools-1.58.tar.gz, Mail::Audit::Razor, DBI, File::Scan,
Net::SSLeay, and Mail::SpamAssassin.
-------------- next part --------------
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ar... ar
checking for a BSD compatible install... /usr/local/bin/install -c
checking for perl... /usr/local/bin/perl
checking whether socklen_t is defined... yes
checking for wait3 that fills in rusage... yes
checking for nm... /usr/local/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 Sys::Syslog... ok
checking for Perl module Unix::Syslog... no
checking for Perl module Mail::SpamAssassin 1.6 or better... yes
checking for Perl module Anomy::HTMLCleaner... no
checking for Perl module Unix::Syslog... no
checking for Perl module HTML::Parser... yes
checking for Perl module File::Scan... yes
checking that MIME-Tools has been patched... yes
checking if setlogsock('unix') works... no
checking how to run the C preprocessor... gcc -E
checking for getopt.h... no
checking for unistd.h... yes
checking whether sig_atomic_t is defined... yes
checking whether gcc accepts -pthread... no
checking for res_init in -lresolv... yes
checking for htons in -lsocket... yes
checking for gethostbyname in -lnsl... yes
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 ravav... /bin/false
checking for antivir... /bin/false
checking for uvscan... /bin/false
checking for sweep... /bin/false
checking for vscan... /bin/false
checking for clamscan... /usr/local/bin/clamscan
checking for AvpLinux... /bin/false
checking for kavscanner... /bin/false
checking for kavdaemon... /bin/false
checking for fsav... /bin/false
checking for f-prot... /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 libmilter.a... /usr/local/lib/libmilter.a
checking for libsm.a... /usr/local/lib/libsm.a
checking for sendmail... /usr/lib/sendmail
checking for rm... /usr/bin/rm
checking whether libmilter must be linked with libsm... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating mimedefang.pl
creating examples/init-script
creating mimedefang-filter.5
creating mimedefang-multiplexor.8
creating mimedefang-protocol.7
creating mimedefang.8
creating mimedefang.pl.8
creating md-mx-ctrl.8
creating watch-mimedefang
creating config.h
config.h is unchanged

*** Virus scanner detection results:
RAV      'ravav'     NO (not found)
H+BEDV   'antivir'   NO (not found)
NAI      'uvscan'    NO (not found)
Sophos   'sweep'     NO (not found)
TREND    'vscan'     NO (not found)
CLAMSCAN 'clamav'    YES - /usr/local/bin/clamscan
AVP      'AvpLinux'  NO (not found)
FSAV     'fsav'      NO (not found)
FPROT    'f-prot'    NO (not found)
SOPHIE   'sophie'    NO (not found)
NVCC     'nvcc'      NO (not found)
CLAMD    'clamd'     YES - /usr/local/sbin/clamd
File::Scan           YES
TROPHIE  'trophie'   NO (not found)


More information about the MIMEDefang mailing list