Install issue -lwrap
David Blacka
davidb at verisignlabs.com
Wed Mar 23 17:26:29 EST 2005
Reid Torosian wrote:
> No lex.yy.o, but I do have lex.yy.c. In /mkdb/Makefile the second item
> under PARSEOBJS *was* but ".o", but I had to remove that to get the make
> process to even attempt to start.
I think that this means that you don't have any form of lex installed.
Which shouldn't be a problem, really, but if you had lex (usually flex
on linux) then this build problem probably wouldn't have manifested.
Try this patch.
--
David Blacka <davidb at verisignlabs.com>
Sr. Engineer VeriSign Applied Research
-------------- next part --------------
Index: configure
===================================================================
--- configure (revision 1819)
+++ configure (working copy)
@@ -3042,6 +3042,13 @@
fi
fi
+if test "$LEX" != flex; then
+ LEX="$SHELL $missing_dir/missing flex"
+ LEX_OUTPUT_ROOT=lex.yy
+
+ LEXLIB=''
+
+fi
for ac_prog in 'bison -y' byacc
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
@@ -6198,8 +6205,8 @@
LIBWRAP=libwrap
- wrap_dir=$srcdir/tools/tcpd_wrapper
- WRAP_INCLUDE=-I$wrap_dir
+ wrap_dir=../tools/tcpd_wrapper
+ WRAP_INCLUDE=-I'$(srcdir)'/$wrap_dir
WRAP_LIBS="-L$wrap_dir -lwrap"
else
WRAP_INCLUDE=
Index: configure.ac
===================================================================
--- configure.ac (revision 1819)
+++ configure.ac (working copy)
@@ -29,7 +29,12 @@
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_RANLIB
-AC_PROG_LEX
+AC_PROG_LEX
+if test "$LEX" != flex; then
+ LEX="$SHELL $missing_dir/missing flex"
+ AC_SUBST(LEX_OUTPUT_ROOT, lex.yy)
+ AC_SUBST(LEXLIB, '')
+fi
AC_PROG_YACC
AC_PREFIX_DEFAULT(/usr/local/rwhoisd)
@@ -121,8 +126,8 @@
AC_SUBST(TCPD_EXTRA_CFLAGS)
LIBWRAP=libwrap
AC_SUBST(LIBWRAP)
- wrap_dir=$srcdir/tools/tcpd_wrapper
- WRAP_INCLUDE=-I$wrap_dir
+ wrap_dir=../tools/tcpd_wrapper
+ WRAP_INCLUDE=-I'$(srcdir)'/$wrap_dir
WRAP_LIBS="-L$wrap_dir -lwrap"
else
WRAP_INCLUDE=
More information about the Rwhois
mailing list