Install issue -lwrap
David Blacka
davidb at verisignlabs.com
Tue Mar 22 17:50:26 EST 2005
Reid Torosian wrote:
> I did a straight ./configure. libwrap.a does indeed exist, as does
> "all: libraries libwrap binaries" in the main Makefile. I tried
> configure with --with-local-libwrap and make gave this:
>
> Making
> (cd tools/tcpd_wrapper; make REAL_DAEMON_DIR="/" LIBS="-lresolv -lnsl
> -lcrypt " RANLIB=ranlib TLI= CC="gcc" EXTRA_CFLAGS="-DUSE_STRERROR"
> config-check; \
> make REAL_DAEMON_DIR="/" LIBS="-lresolv -lnsl -lcrypt " RANLIB=ranlib
> TLI= CC="gcc" EXTRA_CFLAGS="-DUSE_STRERROR" libwrap.a)
> make[1]: Entering directory
> `/home/rtorosia/rwhoisd-1.5.9.3/tools/tcpd_wrapper'
> make[1]: Leaving directory
> `/home/rtorosia/rwhoisd-1.5.9.3/tools/tcpd_wrapper'
> make[1]: Entering directory
> `/home/rtorosia/rwhoisd-1.5.9.3/tools/tcpd_wrapper'
> make[1]: Leaving directory
> `/home/rtorosia/rwhoisd-1.5.9.3/tools/tcpd_wrapper'
> making all in server
> make[1]: Entering directory `/home/rtorosia/rwhoisd-1.5.9.3/server'
> gcc -o rwhoisd class_directive.o daemon.o deadman.o directive.o
> display.o dump.o exit.o forward.o guardian.o holdconnect.o limit.o
> main.o notify.o referral.o register.o reg_ext.o reg_utils.o
> register_directive.o rwhois_directive.o schema_directive.o security.o
> security_directive.o session.o soa.o sresponse.o sschema.o sslave.o
> ssoa.o sstate.o state.o status.o sxfer.o xfer.o -L./tools/tcpd_wrapper
> -lwrap -L../mkdb -lmkdb -L../common -lrwcommon -L../regexp -lregexp
> -lresolv -lnsl -lcrypt /usr/bin/ld: cannot find -lwrap
> collect2: ld returned 1 exit status
> make[1]: *** [rwhoisd] Error 1
> make[1]: Leaving directory `/home/rtorosia/rwhoisd-1.5.9.3/server'
> make: *** [binaries] Error 1
>
> Which to me looks exactly the same as before :(
I think that the -L./tools/tcpd_wrapper statement is wrong. It should
be (I think) -L../tools/tcpd_wrapper, since at that point of the build
you are in the ./server directory.
Hmm. Not sure how to fix this off the top of my head. For now, just
edit ./server/Makefile and change the '-L./tools/tcpd_wrapper' to
'-L../tools/tcpd_wrapper' and let me know if that worked.
--
David Blacka <davidb at verisignlabs.com>
Sr. Engineer VeriSign Applied Research
More information about the Rwhois
mailing list