[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 --------------
An embedded and charset-unspecified text was scrubbed...
Name: configure-output.txt
URL: <https://lists.mimedefang.org/pipermail/mimedefang_lists.mimedefang.org/attachments/20030324/3086854d/attachment.txt>


More information about the MIMEDefang mailing list