[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: zmailer && shared libwrap



> Hi,
> I just tried to compile 2.99.51 with shared libwrap...
> 
> cc -O2 -mpentium  -w  -DHAVE_CONFIG_H -I./../include -I../include -I.. -Iyes   -o smtpserver smtpserver.o rfc821scn.o debugreport.o fdstatfs.o wantconn.o policytest.o cfgread.o smtpdata.o smtpcmds.o smtphelp.o smtprouter.o smtpchild.o mxverify.o contentpolicy.o smtpauth.o zpwmatch.o smtptls.o version.o -L../libs -lzm -lzc -lident -lta  -lcrypt -ldb -lgdbm -lwrap -Lyes -lwhoson -lresolv /usr/lib/libssl.so /usr/lib/libsslcrypto.so -lpam -ldl
> /usr/lib/libwrap.so: undefined reference to `allow_severity'
> /usr/lib/libwrap.so: undefined reference to `deny_severity'
> collect2: ld returned 1 exit status
> make[1]: *** [smtpserver] Error 1

	Weird... indeed weird...

> shared lib patches for tcpd are at:
> http://cvsweb.pld.org.pl/SOURCES/tcp_wrappers-config.patch?rev=1.2
> 
> It will be nice if zmailer will support shared libwrap.

How about this patch ?  (And then 'autoconf')
(this is cut&paste from xterm, so TABs may be wrong..)

[mea@mea zmailer-2-cvs]$ cvs diff -u configure.in 
Index: configure.in
===================================================================
RCS file: /home/mea/src/CVSROOT/zmailer/configure.in,v
retrieving revision 1.48
diff -u -r1.48 configure.in
--- configure.in        1999/07/19 10:01:06     1.48
+++ configure.in        1999/07/19 12:49:25
@@ -1248,7 +1248,7 @@
 #      fi
 #      : # "nop"
 #-------------
-       AC_CHECK_HEADER(tcpd.h)
+       AC_CHECK_HEADERS(tcpd.h)
        if test "$ac_cv_header_tcpd_h" = yes; then
            LIBWRAP="-lwrap"
            INCLWRAP=""



It should not matter, but it apparently does (at my Linux/Alpha system...)

> -- 
>  _____  __    ____       arkadiusz mi¶kiewicz      misiek@pld.org.pl

/Matti Aarnio <mea@nic.funet.fi>