spamass-milt-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: configure not find libmilter


From: Dan Nelson
Subject: Re: configure not find libmilter
Date: Mon, 28 Nov 2005 10:50:02 -0600
User-agent: Mutt/1.5.11

In the last episode (Nov 28), Koichi Mori said:
> Dan Nelson <address@hidden> wrote
> in article Re: configure not find libmilter 
> at Tue, 22 Nov 2005 13:09:52 -0600
> >Are you using the BIND package from ibiblio?  If that was installed
> >before you compiled sendmail, that would explain why libmilter has
> >references to __inet_addr.
> 
> No, I got BIND-8.4.6R from ISC. I got souce and made it. I looked for
> ibiblio Site. There are only sol2.5(BIND8) or sol9(BIND9) for BIND
> binary. How to get Solaris 2.8 BIND8 binary?

Doesn't Solaris 8 come with Bind 8 already?  Solaris 9 comes with Bind
8.3.3; I have no systems running Solaris 8 anymore.  There is a BIND8
package for Solaris 8/Sparc at sunfreeware:
http://www.sunfreeware.com/programlistsparc8.html#bind9 , but it looks
like the copy you have already compiled should work okay.
 
> >Try running "LIBS=-lbind ./configure".  If that works, I'll add
> >libbind to the list of libraries configure checks for.
> 
> Its worked....(but I have to add LDFLAGS=-L/usr/local/bind/lib)
> BUT! the error was changed! "configure: error: Cannot find libmilter"
> is same. but config.log is;
> 
> configure:7084: checking for mi_stop in -lmilter
> configure:7114: g++ -o conftest -g -O2 -Wall -fno-default-inline -fno-inline 
> -D_
> REENTRANT -pthreads  -L/usr/local/bind/lib conftest.cc -lmilter  -lresolv 
> -lsock
> et -lnsl -lbind  >&5
> Undefined                       first referenced
>  symbol                             in file
> __switch_gethostbyname              /usr/lib/libmilter.a(sm_gethost.o)
> ld: fatal: Symbol referencing errors. No output written to conftest
> collect2: ld returned 1 exit status
> 
> How to remove this error?......
> The probrem is in libmilter.a????

It seems to be, yes.  From my reading of the sendmail code
(libmilter/sm_gethost.c), __switch_gethostbyname should only be used on
Solaris 2.[012].  Solaris 2.5 and newer should just call gethostbyname. 
If you extract the sendmail source and run "make" in the libmilter
directory, you should see "-DSOLARIS=20800" in the compile lines.  If
you see something else, that may explain why the file didn't compile
correctly.  As a workaround, try adding a 

#define SOLARIS 20800

to sm_gethost.c on line 79 (just above the mi_gethostbyname function).


If you can, I recommend upgrading to Solaris 10, which comes with BIND9
and Sendmail 8.13.4+libmilter, so you don't need to manually compile
either one :)

-- 
        Dan Nelson
        address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]