4.1 build in readline dir fails
am 16.01.2003 19:27:28 von Paul DuBoisA while back a change was made to the Makefile.am files to remove
some "redundant" includes. As a result, the build in the readline
directory fails on some systems now:
Making all in readline
make[2]: Entering directory `/home/paul/mysql-4.1/readline'
gcc -DUNDEF_THREADS_HACK -DHAVE_CONFIG_H -DNO_KILL_INTR -I../include -O3 -DDBUG_OFF -c readline.c
readline.c:26:22: config.h: No such file or directory
In file included from readline.c:54:
rldefs.h:30:22: config.h: No such file or directory
make[2]: *** [readline.o] Error 1
make[2]: Leaving directory `/home/paul/mysql-4.1/readline'
config.h is in the top source directory, but there is no -I.. option
on the compile line. That's what happens on my RedHat 7.0 system.
On Mac OS X, the build succeeds, because when the Makefile.in file gets
generated, it includes this line:
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
Not sure where that comes from, it doesn't get put into Makefile.in
on my RedHat box.
Anyway, the build in the readline directory needs -I.. to come from
somewhere. This patch to Makefile.am fixes the problem, although
I'm not sure it's the best thing to do:
--- Makefile.am.orig Thu Jan 16 10:04:04 2003
+++ Makefile.am Thu Jan 16 11:44:03 2003
@@ -2,7 +2,7 @@
# Makefile for the GNU readline library.
# Copyright (C) 1994,1996,1997 Free Software Foundation, Inc.
-INCLUDES = -I$(top_srcdir)/include
+INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)
noinst_LIBRARIES = libreadline.a
How-To-Repeat: Try building 4.1 on RedHat 7.0.
Err, just tried it on RedHat 7.3, too. Same problem occurs.
------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail bugs-thread13497@lists.mysql.com
To unsubscribe, e-mail