[Mimedefang] Compile problems with MIMEdefang 2.16 on Solaris 7

fang LD jyang720 at hotmail.com
Tue Jul 23 21:31:01 EDT 2002


I try to install "MIMEdefang"  today, but meet some trouble, Can you give
me a good idea?  Thanks!

The environment of my system is:

      SYSTEM:    SunOS TESTSVR  5.7 Generic_106541-08 sun4u sparc 
    SENDMAIL:    220 testsvr.cdnu.edu.cn ESMTP Sendmail 8.12.5/8.12.5; Thu, 
18 Jul 2002 20:28:09 +0800 (CST)
        PERL:    perl-5.6.1
     C TOOLS:    gcc-3.0
                 DB:   db-2.7.7
   POP3 SOFT:    qpopper4.0.3

I have met following trouble:

1,  MAKE  the mimedefang...

gcc -g -O2  -DPERL_PATH=\"/usr/local/bin/perl\"  
n/mimedefang.pl\"  -DRM=\"/usr/bin/rm\"  -DVERSION=\"2.16\"  
pool/MIMEDefang\"  -DQDIR=\"/var/spool/MIMEDefang\"  -DCONFDIR=\"/etc/mail\" 
-o mimedefang.o mimedefang.c
mimedefang.c:139: warning: braces around scalar initializer
mimedefang.c:139: warning: (near initialization for 
gcc -g -O2 -DPERL_PATH=\"/usr/local/bin/perl\"  
/mimedefang.pl\"  -DRM=\"/usr/bin/rm\"  -DVERSION=\"2.16\"  
ool/MIMEDefang\"  -DQDIR=\"/var/spool/MIMEDefang\"  -DCONFDIR=\"/etc/mail\"  
-o drop_privs.o drop_privs.c
gcc -g -O2  -DPERL_PATH=\"/usr/local/bin/perl\"  
n/mimedefang.pl\"  -DRM=\"/usr/bin/rm\"  -DVERSION=\"2.16\"  
pool/MIMEDefang\"  -DQDIR=\"/var/spool/MIMEDefang\"  -DCONFDIR=\"/etc/mail\" 
-o utils.o utils.c
gcc -g -O2  -o mimedefang mimedefang.o drop_privs.o utils.o 
lter.a -lpthread -lnsl -lsocket -lresolv
Undefined                       first referenced
symbol                             in file
__inet_aton                         /usr/local/lib/libmilter.a(engine.o)
__inet_addr                         /usr/local/lib/libmilter.a(listener.o)
ld: fatal: Symbol referencing errors. No output written to mimedefang
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `mimedefang'

2,  PATCH  the MIME-tools-5.411a

[testsvr:admin]/appkit/mimedefang/MIME-tools-5.411>patch -p1 <mime*.txt
  Looks like a new-style context diff.
File to patch: mime*.txt
No file found -- skip this patch? [no] n
File to patch: mime-tools-patch.txt
Hunk #1 failed at line 9.
Hunk #2 failed at line 100.
Hunk #3 failed at line 108.
Hunk #4 failed at line 133.
Hunk #5 failed at line 160.
Hunk #6 failed at line 181.
Hunk #7 failed at line 200.
Malformed patch at line 286:
patch: Line must begin with '+ ', '  ', or '! '.

What shall I do? Can you help me?

Best Regards,


Name: MonkeySun
E-mail: jyang720 at hotmail.com


Chat with friends online, try MSN Messenger: http://messenger.msn.com

More information about the MIMEDefang mailing list