Install problem 1.7.6 - Unk Library

John Reynolds gnucash@reynj.fastmail.fm
Sun, 05 Jan 2003 20:15:05 -0500


On 06 Jan 2003 02:10:04 +1100, "Conrad Canterford"
<conrad@mail.watersprite.com.au> said:
> On Sun, 2003-01-05 at 15:24, John Reynolds wrote:
> > The new error is similar, and at the same place:
> > 
> > checking if guile needs our copy of (guile www)... yes
> > checking for gnome-config... /opt/gnome/bin/gnome-config
> > checking for xmlNewDoc in -lxml... no
> > configure: error: Could not link sample xml program
> > 
> > Now it does not complain about the missing lib, just that it can't link
> > to it. I ran ldconfig (after checking its usage). Still same error. Any
> > ideas on this one. Thank you all for your kindness.
> > John
> 
> The very first thing I'd check is that you installed the libxml-devel
> package and NOT the libxml2-devel package. Gnucash uses libxml 1.
> 
> If that isn't the problem, have a look at the config.log file in the top
> level of your source tree - at the bottom of that file you should see
> the actual compile/link that causes the error, and you can often find a
> more meaningful error there. Feel free to respond to this list with what
> you find if it isn't immediately obvious.
> 
> Conrad.
> -- 
> Conrad Canterford  (conrad@mail.watersprite.com.au)
> 

Conrad,

Thanks for your assistance. I double-checked the lib version, both are
installed (libxml-devel & libxml2-devel). I looked at the config.log, and
you are correct, nothing is readily appearent. It is below. Sorry to all
for the length, and to Christian S., sorry for the double emails.

John 

--------------- Begin config.log -----------------------
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:813: checking host system type
configure:861: checking host system type
configure:882: checking target system type
configure:900: checking build system type
configure:943: checking for a BSD compatible install
configure:996: checking whether build environment is sane
configure:1067: checking for mawk
configure:1097: checking whether make sets ${MAKE}
configure:1217: checking for gcc
configure:1330: checking whether the C compiler (gcc  ) works
configure:1346: gcc -o conftest    conftest.c  1>&5
configure:1372: checking whether the C compiler (gcc  ) is a
cross-compiler
configure:1377: checking whether we are using GNU C
configure:1405: checking whether gcc accepts -g
configure:1444: checking for style of include used by make
configure:1478: checking dependency style of gcc
configure:1556: checking for a BSD compatible install
configure:1620: checking for Cygwin environment
configure:1653: checking for mingw32 environment
configure:1682: checking how to run the C preprocessor
configure:1842: checking for ld used by GCC
configure:1910: checking if the linker (/usr/i486-suse-linux/bin/ld) is
GNU ld
configure:1927: checking for /usr/i486-suse-linux/bin/ld option to reload
object files
configure:1939: checking for BSD-compatible nm
configure:1977: checking for a sed that does not truncate output
configure:2061: checking whether ln -s works
configure:2082: checking how to recognise dependent libraries
configure:2268: checking for object suffix
configure:2294: checking for executable suffix
configure:2335: checking command to parse /usr/bin/nm -B output
configure:2521: checking for dlfcn.h
configure:2700: checking for ranlib
configure:2767: checking for strip
configure:3010: checking for objdir
configure:3037: checking for gcc option to produce PIC
configure:3185: checking if gcc PIC flag   -fPIC works
configure:3251: checking if gcc static flag -static works
configure:3293: checking if gcc supports -c -o file.o
configure:3341: checking if gcc supports -c -o file.lo
configure:3409: checking if gcc supports -fno-rtti -fno-exceptions
configure:3422: gcc -c -g -O2 -fno-rtti -fno-exceptions -c conftest.c 
conftest.c 1>&5
configure:3449: checking whether the linker (/usr/i486-suse-linux/bin/ld)
supports shared libraries
configure:4148: checking how to hardcode library paths into programs
configure:4176: checking whether stripping libraries is possible
configure:4190: checking dynamic linker characteristics
configure:4614: checking if libtool supports shared libraries
configure:4618: checking whether to build shared libraries
configure:4641: checking whether to build static libraries
configure:5177: checking whether -lc should be explicitly linked in
configure:5786: checking for bison
configure:5786: checking for byacc
configure:5827: checking for ANSI C header files
configure:5931: checking for working const
configure:6006: checking whether time.h and sys/time.h may both be
included
configure:6041: checking whether struct tm is in sys/time.h or time.h
configure:6076: checking whether gcc needs -traditional
configure:6122: checking return type of signal handlers
configure:6167: checking for dirent.h
configure:6167: checking for errno.h
configure:6167: checking for fcntl.h
configure:6167: checking for inttypes.h
configure:6167: checking for memory.h
configure:6167: checking for netdb.h
configure:6167: checking for netinet/in.h
configure:6167: checking for stdint.h
configure:6167: checking for stdlib.h
configure:6167: checking for string.h
configure:6167: checking for strings.h
configure:6167: checking for sys/ioctl_compat.h
configure:6167: checking for sys/ioctl.h
configure:6167: checking for sys/malloc.h
configure:6167: checking for sys/select.h
configure:6167: checking for sys/sockio.h
configure:6167: checking for sys/time.h
configure:6167: checking for sys/utsname.h
configure:6167: checking for unistd.h
configure:6206: checking for atexit
configure:6206: checking for cfmakeraw
configure:6206: checking for cfsetispeed
configure:6206: checking for cfsetospeed
configure:6206: checking for cfsetspeed
configure:6206: checking for dup2
configure:6206: checking for gethostname
configure:6206: checking for inet_aton
configure:6206: checking for malloc
configure:6206: checking for memcpy
configure:6206: checking for memmove
configure:6206: checking for putenv
configure:6206: checking for sigaction
configure:6206: checking for snprintf
configure:6206: checking for strchr
configure:6206: checking for strdup
configure:6206: checking for strtok
configure:6206: checking for strtoul
configure:6206: checking for uname
configure:6261: checking for connect
configure:6402: checking for gethostbyname
configure:6486: checking for main in -linet
configure:6523: checking for cispeed and cospeed members of struct
termios
configure:6577: checking for main in -lpng
configure:6727: checking for unistd.h
configure:6756: checking for getopt
configure:6756: checking for getopt_long
configure:6816: checking for getopt.h
configure:6845: checking for getopt
configure:6845: checking for getopt_long
configure:6932: checking for libiconv in -liconv
configure:6971: checking for iconv
configure:7017: checking for gnu_get_libc_version
configure:7070: checking if system iconv handles CP1252
configure:7105: gcc -o conftest -g -O2     conftest.c  1>&5
configure: In function `main':
configure:7095: parse error before numeric constant
configure: failed program was:
#line 7075 "configure"
#include "confdefs.h"

#include <iconv.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_GNU_GET_LIBC_VERSION
#include <gnu/libc-version.h>
#endif

int main (int argc, char **argv)
{
	const char *pc = "\x66\x66\x66\x66\x66\x66\x66\xA9";
	const char *utf8 = "\x66\x66\x66\x66\x66\x66\x66\xC2\xA9";
	char transbuf[10], *trans = transbuf;
	iconv_t cd;
	size_t pc_len = strlen (pc), utf8_len = 10;
	size_t utf8_real_len = strlen (utf8);

	cd = iconv_open ("UTF-8", "CP1252");
	if (!cd)
		exit 1
	if (iconv (cd, &pc, &pc_len, &trans, &utf8_len) == -1 || pc_len != 0)
		exit 1
	if (memcmp (utf8, transbuf, utf8_real_len) != 0)
		exit 1

	exit 0
}
configure:7153: checking for tputs in -lncurses
configure:7153: checking for tputs in -lcurses
configure:7153: checking for tputs in -ltermcap
configure:7153: checking for tputs in -lterminfo
configure:7153: checking for tputs in -ltermlib
configure:7196: checking for readline
configure:7205: gcc -o conftest -g -O2   conftest.c  1>&5
/tmp/ccydbD2U.o: In function `main':
/home/reynj/pilot-link-0.11.6/configure:7201: undefined reference to
`readline'
collect2: ld returned 1 exit status
configure: failed program was:
#line 7198 "configure"
#include "confdefs.h"

int main() {
(void)readline(0);
; return 0; }
configure:7220: gcc -o conftest -g -O2   conftest.c  1>&5
/tmp/ccmRdmY1.o: In function `main':
/home/reynj/pilot-link-0.11.6/configure:7216: undefined reference to
`readline'
collect2: ld returned 1 exit status
configure: failed program was:
#line 7213 "configure"
#include "confdefs.h"

int main() {
(void)readline(0);
; return 0; }
configure:7417: checking for c++
configure:7449: checking whether the C++ compiler (c++  ) works
configure:7465: c++ -o conftest    conftest.C  1>&5
configure:7491: checking whether the C++ compiler (c++  ) is a
cross-compiler
configure:7496: checking whether we are using GNU C++
configure:7524: checking whether c++ accepts -g
configure:7558: checking dependency style of c++
configure:7922: checking for Tcl

-------------------- End of config.log -------------------