[OPEN-ILS-DEV] ***SPAM*** Re: Redhat/Centos patch for Makefile.install
Lee Dickens
ldickens at esilibrary.com
Wed Mar 3 10:58:59 EST 2010
I am having some issues with AC_CHECK_LIB correctly finding the
libraries. The following lines from configure.ac do not work.
AC_CHECK_LIB([readline], [main], [], AC_MSG_ERROR(*** OpenILS
requires libreadline))
AC_CHECK_LIB([xml2], [main], [], AC_MSG_ERROR(*** OpenILS
requires libxml2))
AC_CHECK_LIB([xslt], [main], [], AC_MSG_ERROR(*** OpenILS
requires libxslt))
AC_CHECK_LIB([perl], [main], [], AC_MSG_ERROR(*** OpenILS
requires libperl-dev))
AC_CHECK_LIB([pq], [main], [], AC_MSG_ERROR(*** OpenILS requires
libpq))
Please note that if I manually set the flags to "yes" in ./configure
that it compiles and runs fine without issue. The errors from
config.log follow.
Thanks,
Lee Dickens
configure:11918: checking for main in -lreadline
configure:11937: gcc -o conftest -g -O2 conftest.c -lreadline -lexpat
-ldbi -ldl >&5
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so:
undefined reference to `PC'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so:
undefined reference to `tgetflag'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so:
undefined reference to `tgetent'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so:
undefined reference to `UP'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so:
undefined reference to `tputs'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so:
undefined reference to `tgoto'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so:
undefined reference to `tgetnum'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so:
undefined reference to `BC'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libreadline.so:
undefined reference to `tgetstr'
collect2: ld returned 1 exit status
configure:11937: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Open-ILS"
| #define PACKAGE_TARNAME "open-ils"
| #define PACKAGE_VERSION "trunk"
| #define PACKAGE_STRING "Open-ILS trunk"
| #define PACKAGE_BUGREPORT "open-ils-dev at list.georgialibraries.org"
| #define PACKAGE_URL ""
| #define PACKAGE "OpenILS"
| #define VERSION "trunk"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_LIBDL 1
| #define HAVE_LIBDBI 1
| #define HAVE_LIBEXPAT 1
| /* end confdefs.h. */
|
|
| int
| main ()
| {
| return main ();
| ;
| return 0;
| }
configure:11946: result: no
configure:11956: error: *** OpenILS requires libreadline
Equinox will be at the 2010 Public Library Association
Conference in Portland, Oregon, March 23-27.
Please come by and see us in booth #1407!
More information about the Open-ils-dev
mailing list