Re: [gnome-db] Configuration problem for V4 branch



On Sun, May 11, 2008 at 7:16 PM, Phil Longstaff <plongstaff rogers com> wrote:
> I checkout out the V4 branch.  When I tried to configure it, it couldn't
>  find readline.  Here's the section from the output of configure:
>
>  checking for Xbase files... configure: WARNING: Xbase backend not used
>  checking for MDB Tools files... configure: WARNING: MDB backend not used
>  checking for LDAP files... found LDAP in /usr
>  checking for SQLITE... checking for readline in -lreadline... no
>  checking for add_history in -lhistory... yes
>  checking readline/readline.h usability... yes
>  checking readline/readline.h presence... yes
>  checking for readline/readline.h... yes
>  checking readline/history.h usability... yes
>  checking readline/history.h presence... yes
>  checking for readline/history.h... yes
>
>  When I try 'make all install', I get:
>
>  /bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2   -o gda-sql-4.0
>  gda-sql.o tools-input.o command-exec.o ../libgda/libgda-4.0.la -pthread
>  -Wl,--export-dynamic -L/opt/gnome/lib -lgobject-2.0 -lgthread-2.0
>  -lgmodule-2.0 -ldl -lglib-2.0 -lxml2 -lz -lm    -lhistory  -lpthread
>  gcc -g -O2 -o .libs/gda-sql-4.0 gda-sql.o tools-input.o command-exec.o
>  -pthread -Wl,--export-dynamic  ../libgda/.libs/libgda-4.0.so
>  -L/opt/gnome/lib /usr/lib/libfam.so -lrpcsvc -ldb
>  /opt/gnome/lib/libgobject-2.0.so /opt/gnome/lib/libgthread-2.0.so
>  /opt/gnome/lib/libgmodule-2.0.so /opt/gnome/lib/libglib-2.0.so -lrt
>  /usr/lib/libxml2.so -ldl -lz -lm -lhistory -lpthread -Wl,--rpath
>  -Wl,/opt/libgda-V4-branch-svn/lib
>  tools-input.o: In function `init_history':
>  /home/phil/libgda/V4-branch/tools/tools-input.c:152: undefined reference
>  to `rl_set_signals'
>  tools-input.o: In function `input_from_console':
>  /home/phil/libgda/V4-branch/tools/tools-input.c:56: undefined reference
>  to `readline'
>  tools-input.o: In function `init_input':
>  /home/phil/libgda/V4-branch/tools/tools-input.c:107: undefined reference
>  to `rl_set_signals'
>  collect2: ld returned 1 exit status
>  make[1]: *** [gda-sql-4.0] Error 1
>  make[1]: Leaving directory `/home/phil/libgda/V4-branch/tools'
>  make: *** [all-recursive] Error 1
>
>  which makes sense since READLINE_LIB is an empty string.
>
>  I do have both readline and readline-devel rpms installed.
>
>  If I modify READLINE_LIB to have the value '-lreadline', it builds fine:
>
>  /bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2   -o gda-sql-4.0
>  gda-sql.o tools-input.o command-exec.o ../libgda/libgda-4.0.la -pthread
>  -Wl,--export-dynamic -L/opt/gnome/lib -lgobject-2.0 -lgthread-2.0
>  -lgmodule-2.0 -ldl -lglib-2.0 -lxml2 -lz -lm   -lreadline -lhistory
>  -lpthread
>  gcc -g -O2 -o .libs/gda-sql-4.0 gda-sql.o tools-input.o command-exec.o
>  -pthread -Wl,--export-dynamic  ../libgda/.libs/libgda-4.0.so
>  -L/opt/gnome/lib /usr/lib/libfam.so -lrpcsvc -ldb
>  /opt/gnome/lib/libgobject-2.0.so /opt/gnome/lib/libgthread-2.0.so
>  /opt/gnome/lib/libgmodule-2.0.so /opt/gnome/lib/libglib-2.0.so -lrt
>  /usr/lib/libxml2.so -ldl -lz -lm -lreadline -lhistory -lpthread
>  -Wl,--rpath -Wl,/opt/libgda-V4-branch-svn/lib
>  creating gda-sql-4.0
>  if gcc -DPACKAGE_NAME=\"GNU\ Data\ Access\" -DPACKAGE_TARNAME=\"libgda\"
>  -DPACKAGE_VERSION=\"3.99.1\" -DPACKAGE_STRING=\"GNU\ Data\ Access\
>  3.99.1\" -DPACKAGE_BUGREPORT=\"gnome-db-list gnome org\"
>  -DBONOBO_EXPLICIT_TRANSLATION_DOMAIN=\"libgda-4.0\" -DSTDC_HEADERS=1
>  -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
>  -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
>  -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1
>  -DYYTEXT_POINTER=1 -DGETTEXT_PACKAGE=\"libgda-4.0\" -DHAVE_LOCALE_H=1
>  -DHAVE_LC_MESSAGES=1 -DHAVE_BIND_TEXTDOMAIN_CODESET=1 -DHAVE_GETTEXT=1
>  -DHAVE_DCGETTEXT=1 -DENABLE_NLS=1 -DENABLE_BINRELOC= -DHAVE_LIBPTHREAD=1
>  -DBR_PTHREAD=1 -DHAVE_FAM_H=1 -DHAVE_FAM= -DHAVE_MYSQL=1
>  -DHAVE_POSTGRES=1 -DHAVE_LDAP=1 -DHAVE_READLINE_READLINE_H=1
>  -DHAVE_READLINE_HISTORY_H=1 -DGDA_DEBUG=1 -I. -I.  -I.. -I..
>  -I../libgda/sqlite -I../libgda -I. -pthread -I/usr/include/libxml2
>  -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include
>  -DLIBGDA_ABI_NAME=\"libgda-4.0\"   -g -O2 -MT gda-list-server-op.o -MD
>  -MP -MF ".deps/gda-list-server-op.Tpo" -c -o gda-list-server-op.o
>  gda-list-server-op.c; \
>         then mv -f ".deps/gda-list-server-op.Tpo"
>  ".deps/gda-list-server-op.Po"; else rm -f
>  ".deps/gda-list-server-op.Tpo"; exit 1; fi
>
>  I don't know the autotools/configure system well enough to debug the
>  problem.  I am running on opensuse 10.2.
>

It seems the script does not find the readline lib, but find the
readline headers, and (as it is currently broken) still uses the
library even though it's not useable. I'll correct that ASAP.

I don't know why it fails to detect the readline library though...

Vivien


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]