Re: Problem compiling glib



Sergei Steshenko <sergstesh yahoo com>:



--- On Thu, 4/4/13, Patrick Welche <prlw1 cam ac uk> wrote:

From: Patrick Welche <prlw1 cam ac uk>
Subject: Re: Problem compiling glib
To: "Chris Fisichella" <chris communityrenewables com>
Cc: gtk-list gnome org
Date: Thursday, April 4, 2013, 2:39 AM
On Wed, Apr 03, 2013 at 06:19:10PM
-0400, Chris Fisichella wrote:
> /usr/bin/xmllint: symbol lookup error:
> /usr/local/lib/libreadline.so.6: undefined symbol: PC

Does "xmllint --help" work?

(Guess: you have an xmllint from a distribution, linked
against a libreadline
from a distribution. Somehow you ended up building your own
libreadline in
/usr/local. Your system doesn't like -rpath, and xmllint
found the /usr/local
readline rather than the one it was compiled with. Maybe
build your own
libxml2 which contains xmllint?)

Cheers,

Patrick
_______________________________________________
gtk-list mailing list
gtk-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-list



Interestingly enough my self-built 'xmllint' which is a part of libxml2-2.9.0 doesn't at all show dependency on 'readline':

"
sergei amdam2:~/junk> ~/AFSWD/install/libxml2-2.9.0/binsh/libxml2-2.9.0.generic_wrapper
ldd
-v ~/AFSWD/install/libxml2-2.9.0/bin/xmllint
        linux-gate.so.1 =>  (0xffffe000)
libxml2.so.2 => /mnt/sdb8/sergei/AFSWD_debug/20121021/libxml2-2.9.0/lib/libxml2.so.2

(0xb75c6000)
        libdl.so.2 => /lib/libdl.so.2 (0xb75a3000)
libz.so.1 => /mnt/sdb8/sergei/AFSWD_debug/20121021/zlib-1.2.7/lib/libz.so.1 (0xb758b000)
        libiconv.so.2 =>
/mnt/sdb8/sergei/AFSWD_debug/20121021/libiconv_pre-1.14/lib/libiconv.so.2

(0xb7491000)
        libm.so.6 => /lib/libm.so.6 (0xb7468000)
        libc.so.6 => /lib/libc.so.6 (0xb730c000)
        /lib/ld-linux.so.2 (0xb76f6000)

        Version information:
        /home/sergei/AFSWD/install/libxml2-2.9.0/bin/xmllint:
libxml2.so.2 (LIBXML2_2.9.0) => /mnt/sdb8/sergei/AFSWD_debug/20121021/libxml2-2.9.0/lib/libxml2.so.2 libxml2.so.2 (LIBXML2_2.5.6) => /mnt/sdb8/sergei/AFSWD_debug/20121021/libxml2-2.9.0/lib/libxml2.so.2 libxml2.so.2 (LIBXML2_2.6.3) => /mnt/sdb8/sergei/AFSWD_debug/20121021/libxml2-2.9.0/lib/libxml2.so.2 libxml2.so.2 (LIBXML2_2.6.18) => /mnt/sdb8/sergei/AFSWD_debug/20121021/libxml2-2.9.0/lib/libxml2.so.2 libxml2.so.2 (LIBXML2_2.6.8) => /mnt/sdb8/sergei/AFSWD_debug/20121021/libxml2-2.9.0/lib/libxml2.so.2 libxml2.so.2 (LIBXML2_2.5.7) => /mnt/sdb8/sergei/AFSWD_debug/20121021/libxml2-2.9.0/lib/libxml2.so.2 libxml2.so.2 (LIBXML2_2.6.20) => /mnt/sdb8/sergei/AFSWD_debug/20121021/libxml2-2.9.0/lib/libxml2.so.2 libxml2.so.2 (LIBXML2_2.6.21) => /mnt/sdb8/sergei/AFSWD_debug/20121021/libxml2-2.9.0/lib/libxml2.so.2 libxml2.so.2 (LIBXML2_2.5.0) => /mnt/sdb8/sergei/AFSWD_debug/20121021/libxml2-2.9.0/lib/libxml2.so.2 libxml2.so.2 (LIBXML2_2.6.0) => /mnt/sdb8/sergei/AFSWD_debug/20121021/libxml2-2.9.0/lib/libxml2.so.2 libxml2.so.2 (LIBXML2_2.5.2) => /mnt/sdb8/sergei/AFSWD_debug/20121021/libxml2-2.9.0/lib/libxml2.so.2 libxml2.so.2 (LIBXML2_2.5.8) => /mnt/sdb8/sergei/AFSWD_debug/20121021/libxml2-2.9.0/lib/libxml2.so.2 libxml2.so.2 (LIBXML2_2.4.30) => /mnt/sdb8/sergei/AFSWD_debug/20121021/libxml2-2.9.0/lib/libxml2.so.2
                libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
                libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
                libc.so.6 (GLIBC_2.0) => /lib/libc.so.6

/mnt/sdb8/sergei/AFSWD_debug/20121021/libxml2-2.9.0/lib/libxml2.so.2:
libz.so.1 (ZLIB_1.2.2.3) => /mnt/sdb8/sergei/AFSWD_debug/20121021/zlib-1.2.7/lib/libz.so.1 libz.so.1 (ZLIB_1.2.3.3) => /mnt/sdb8/sergei/AFSWD_debug/20121021/zlib-1.2.7/lib/libz.so.1
                libdl.so.2 (GLIBC_2.1) => /lib/libdl.so.2
                libdl.so.2 (GLIBC_2.0) => /lib/libdl.so.2
                libm.so.6 (GLIBC_2.1) => /lib/libm.so.6
                libm.so.6 (GLIBC_2.0) => /lib/libm.so.6
                libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
                libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
                libc.so.6 (GLIBC_2.3.2) => /lib/libc.so.6
                libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
                libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
                libc.so.6 (GLIBC_2.3) => /lib/libc.so.6
        /lib/libdl.so.2:
                ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
                libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
                libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
                libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
                libc.so.6 (GLIBC_PRIVATE) => /lib/libc.so.6

/mnt/sdb8/sergei/AFSWD_debug/20121021/zlib-1.2.7/lib/libz.so.1:
                libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
                libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
                libc.so.6 (GLIBC_2.0) => /lib/libc.so.6

/mnt/sdb8/sergei/AFSWD_debug/20121021/libiconv_pre-1.14/lib/libiconv.so.2:
                libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
                libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
                libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
        /lib/libm.so.6:
                ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
                libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
                libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
        /lib/libc.so.6:
                ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
                ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2
                ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2
sergei amdam2:~/junk>
".

And I build glib-2.34.3 from sources successfully.

Regards,
  Sergei.

Okay, thank you both for your experiences. When I booted this morning, I lost my desktop (gdm3). I had to manually uninstall my manual builds of dbus and readline. I will try your ideas as soon as I can figure out a way to build what I need for glib, but not interfere with other things happening in the system.I thought /usr/local was safe. I guess not.

Thanks,
Chris




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