Gutenbrowser Won't Open
Hi,
In Slackware 9.1 the program gutenbrowser which I have used for years in RedHat will not open.
I get the error message:
:$ gutenbrowser
gutenbrowser: relocation error: gutenbrowser: undefined symbol:qInitNetworkProtocols__Fv
How could that be corrected?
Thanks & regards
Signature · 7 lines
Peter - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 5 lines · Peter
Hi,
In Slackware 9.1 the program gutenbrowser which I have used for years in RedHat will not open.
Quoted 7 lines
I get the error message:
:$ gutenbrowser
gutenbrowser: relocation error: gutenbrowser: undefined symbol:qInitNetworkProtocols__FvHow could that be corrected?
This sort of error ("undefined symbol") *usually* indicates a shared-library version mismatch. If you actually moved gutenbrowser app from your RH install to your Slackware install, this is a likely cause. (It's the sort of thing that modern package-management systems, like the ones Red Hat and Debian use, catches for you ... but that mixing packages from two distros will occasionally introduce.)
Use "ldd /$PATH_TO/gutenbrowser" to find out which shared libraries gutenbrowser uses. Then compare versions between RH and Slack to find out which ones are different.
Or, if you have the development packages for your libraries instailed, you can grep "qInitNetworkProtocols__Fv" in the various include directories (the RH versions) to try to identify the library involved.
Or maybe there's a way to use "strace" to wort this out. If so, someone else will have to provide the details.
From the leading "q", I'd speculate that a KDE library is involved. But that's just a guess. And, of course, if the version of gutenbrowser that's failing was part of your Slackware install, then all this guessing isn't as good as I think it is.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Thanks Ray!
Quoted 7 lines
At 04:17 PM 2/26/2004 +0800, Peter wrote:
Hi, > >In Slackware 9.1 the
program gutenbrowser which I have used for years in RedHat will not open.Quoted 1 line
I get the error message:
Quoted 1 line
:$ gutenbrowser >gutenbrowser: relocation error:
Quoted 3 lines
gutenbrowser: undefined symbol: >qInitNetworkProtocols__Fv
Quoted 1 line
How could that be corrected?
Quoted 2 lines · [email protected] said:
If you actually moved gutenbrowser app from your RH install to your
Slackware install
No, I made a new installation of the latest gutenbrowser-0.6.8.3 into /usr/local. The program is not included in the slackware package it used to be in SUSE as kgutenbook(browser?) that's where I encountered it for the first time. It was rather buggy.
Now the libs requirements in SW and RH are very different from each other for gutenbrowser. How can that be for the same program. All the libs needed by gutenbrowser in RH are present in SW. Why are they then not used? And there is no "not found" running ldd. I added the end of strace gutenbrowser.
Quoted 1 line · [email protected] said:
you can grep "
qInitNetworkProtocols__Fv" in the various include directories
(the RH versions)
Yielded negative
ldd /usr/local/bin/gutenbrowser gives:
cat gutbrowslibsSlackWare:
libqt.so.2 => /usr/local/qt/lib/libqt.so.2 (0x40016000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40515000) libX11.so.6 => /usr/local/lib/libX11.so.6 (0x40523000) libstdc++-libc6.2-2.so.3 => /usr/i486-slackware-linux/lib/libstdc++-libc6.2-2.s o.3 (0x405c7000)
libm.so.6 => /lib/libm.so.6 (0x4060d000)
libc.so.6 => /lib/libc.so.6 (0x40630000)
libstdc++-libc6.1-1.so.2 => /usr/i486-slackware-linux/lib/libstdc++-libc6.1-1.s o.2 (0x40766000)/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
cat gutbrowslibsRedHat:
libqt.so.2 => /usr/lib/qt-2.3.1/lib/libqt.so.2 (0x40029000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x404f1000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x404ff000) libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x405df000) libm.so.6 => /lib/i686/libm.so.6 (0x40621000)
libc.so.6 => /lib/i686/libc.so.6 (0x40643000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x4077b000) libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40784000) libXft.so.1 => /usr/X11R6/lib/libXft.so.1 (0x4079b000) libpng.so.2 => /usr/lib/libpng.so.2 (0x407aa000)
libz.so.1 => /usr/lib/libz.so.1 (0x407cc000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x407da000) libmng.so.1 => /usr/lib/libmng.so.1 (0x407f8000)
libdl.so.2 => /lib/libdl.so.2 (0x4083c000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40840000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x40849000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x40851000) libexpat.so.0 => /usr/lib/libexpat.so.0 (0x40876000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40896000)
strace gutenbrowser ends:
open("/usr/X11R6/lib/X11/locale/compose.dir", O_RDONLY) = 5 fstat64(5, {st_mode=S_IFREG|0444, st_size=24253, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
x40502000read(5, "# $Xorg: compose.dir,v 1.3 2000/"..., 4096) = 4096
close(5) = 0munmap(0x40502000, 4096) = 0access("/usr/X11R6/lib/X11/locale/iso8859-1/Compose", R_OK) = 0 open("/usr/X11R6/lib/X11/locale/iso8859-1/Compose", O_RDONLY) = 5 fstat64(5, {st_mode=S_IFREG|0444, st_size=20412, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0
x40502000read(5, "# $Xorg: iso8859-1,v 1.3 2000/08"..., 4096) = 4096 read(5, "\n<Multi_key> <a> <underscore>\t\t:"..., 4096) = 4096 read(5, "\t: \"\\303\"\tAtilde\n<Multi_key> <mi"..., 4096) = 4096 read(5, "\t: \"\\355\"\tiacute\n<Multi_key> <i>"..., 4096) = 4096 read(5, "te\n<Multi_key> <Y> <apostrophe>\t"..., 4096) = 4028
read(5, "", 4096) = 0 close(5) = 0 munmap(0x40502000, 4096) = 0 brk(0) = 0x811c000 brk(0x811d000) = 0x811d000
write(3, "\2\0\4\0:\0\0\0\0\10\0\0003@`\0\2t\4\0:\0\0\0\0\10\0\0"..., 56) = 56read(3, 0xbffff3f8, 32) = -1 EAGAIN (Resource temporarily
unavai
lable)select(4, [3], NULL, NULL, NULL) = 1 (in [3])read(3, "\1\0006\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\350\353"..., 32) = 32write(3, "\24\0\6\0:\0\0\0\27\0\0\0\0\0\0\0\0\0\0\0\0 \0\0", 24) = 24read(3, 0xbffff490, 32) = -1 EAGAIN (Resource temporarily
unavai
lable)select(4, [3], NULL, NULL, NULL) = 1 (in [3])read(3, "\1\0007\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\350\353"..., 32) = 32
brk(0) = 0x811d000 brk(0x8120000) = 0x8120000 brk(0) = 0x8120000 brk(0x8121000) = 0x8121000
writev(2, [{"gutenbrowser", 12}, {": ", 2}, {"relocation error", 16}, {": ", 2},
{"gutenbrowser", 12}, {": ", 2}, {"undefined symbol: qInitNetworkPr"..., 43},
{
"", 0}, {"", 0}, {"\n", 1}], 10gutenbrowser: relocation error: gutenbrowser:
und
efined symbol: qInitNetworkProtocols__Fv
) = 90exit_group(127) = ?
Regards
Signature · 9 lines
Peter - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
At 05:14 PM 2/27/2004 +0800, Peter wrote:
[...]
Quoted 4 lines
No, I made a new installation of the latest gutenbrowser-0.6.8.3 into
/usr/local. The program is not included in the slackware package it used to be in SUSE as kgutenbook(browser?) that's where I encountered it for the first time. It was rather buggy.
Are you saying you got current gutenbrowser source from its upstream site and compiled it yourself? If so, the details of the candidate explanation change a bit, but library mismatch still suggests itself. I'd **guess** (this is partly from the leading "q", partly from seeing this library in /usr/local) that the version of libqt.so.2 that your Slackware install is using is out of date and does not include the required function call ... the fact that it is found it /usr/local rencourages me to think it is not part of the standard Slackware install so could be the source of an error.
I'm also inclined to suspect that you are compiling using header files that do not match this library; otherwise, the compile itself (more exactly, the link step) should error out.
The current (or near current, anyway) version of libqt that I see in my Debian installs is:
lrwxrwxrwx 1 root root 14 Jan 5 2003/usr/lib/libqt.so.3 -> libqt.so.3.1.1
-rw-r--r-- 1 root root 6011396 Dec 20 2002
/usr/lib/libqt.so.3.1.1
You should probably follow the symlink pointers in the RH setup to find out what it is really using, then make sure your Slackware install has the same version installed (as well as its -dev counterpart, or whatever either Slackware or upstrream calls the package that provides the #include header files) by following its symlink trail, and getting a newer version if needed. Then try compiling again.
If that is not it, then the basic idea is probably still right, but I've guessed the wrong library. So check the others in the same way. All the big-picture differences between the two versions of gutenbrowser are in X libraries, and offhand I do not know why that should be so, at least not without more detail on how you installed gutenbrowser.
If I'm mistaken and you did not compile gutenbrowser from upstream source yourself, you are going to have to say more than "I made a new installation" for me to understand what you did.
Quoted 93 lines
Now the libs requirements in SW and RH are very different from each other for gutenbrowser. How can that be for the same program. All the libs needed by gutenbrowser in RH are present in SW. Why are they then not used? And there is no "not found" running ldd. I added the end of strace gutenbrowser.
Quoted 1 line · [email protected] said:
you can grep "
qInitNetworkProtocols__Fv" in the various includedirectories
(the RH versions)Yielded negative
ldd
/usr/local/bin/gutenbrowsergives:cat gutbrowslibsSlackWare:
libqt.so.2 =>/usr/local/qt/lib/libqt.so.2(0x40016000) libXext.so.6 =>/usr/X11R6/lib/libXext.so.6(0x40515000) libX11.so.6 =>/usr/local/lib/libX11.so.6(0x40523000) libstdc++-libc6.2-2.so.3 =>/usr/i486-slackware-linux/lib/libstdc++-libc6.2-2.so.3 (0x405c7000)
libm.so.6 =>/lib/libm.so.6(0x4060d000)
libc.so.6 =>/lib/libc.so.6(0x40630000)
libstdc++-libc6.1-1.so.2 =>/usr/i486-slackware-linux/lib/libstdc++-libc6.1-1.so.2 (0x40766000)/lib/ld-linux.so.2=>/lib/ld-linux.so.2(0x40000000)cat gutbrowslibsRedHat:
libqt.so.2 =>/usr/lib/qt-2.3.1/lib/libqt.so.2(0x40029000) libXext.so.6 =>/usr/X11R6/lib/libXext.so.6(0x404f1000) libX11.so.6 =>/usr/X11R6/lib/libX11.so.6(0x404ff000) libstdc++-libc6.2-2.so.3 =>/usr/lib/libstdc++-libc6.2-2.so.3(0x405df000) libm.so.6 =>/lib/i686/libm.so.6(0x40621000)
libc.so.6 =>/lib/i686/libc.so.6(0x40643000)
libSM.so.6 =>/usr/X11R6/lib/libSM.so.6(0x4077b000) libICE.so.6 =>/usr/X11R6/lib/libICE.so.6(0x40784000) libXft.so.1 =>/usr/X11R6/lib/libXft.so.1(0x4079b000) libpng.so.2 =>/usr/lib/libpng.so.2(0x407aa000)
libz.so.1 =>/usr/lib/libz.so.1(0x407cc000)
libjpeg.so.62 =>/usr/lib/libjpeg.so.62(0x407da000) libmng.so.1 =>/usr/lib/libmng.so.1(0x407f8000)
libdl.so.2 =>/lib/libdl.so.2(0x4083c000)
libgcc_s.so.1 =>/lib/libgcc_s.so.1(0x40840000)/lib/ld-linux.so.2=>/lib/ld-linux.so.2(0x40000000) libXrender.so.1 =>/usr/X11R6/lib/libXrender.so.1(0x40849000) libfontconfig.so.1 =>/usr/lib/libfontconfig.so.1(0x40851000) libexpat.so.0 =>/usr/lib/libexpat.so.0(0x40876000) libfreetype.so.6 =>/usr/lib/libfreetype.so.6(0x40896000)strace gutenbrowser ends:
open("/usr/X11R6/lib/X11/locale/compose.dir", O_RDONLY)= 5fstat64(5, {st_mode=S_IFREG|0444, st_size=24253, ...})= 0old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)= 0
x40502000read(5, "# $Xorg: compose.dir,v 1.3 2000/"..., 4096)= 4096
close(5) = 0munmap(0x40502000, 4096)= 0access("/usr/X11R6/lib/X11/locale/iso8859-1/Compose", R_OK)= 0open("/usr/X11R6/lib/X11/locale/iso8859-1/Compose", O_RDONLY)= 5fstat64(5, {st_mode=S_IFREG|0444, st_size=20412, ...})= 0old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)= 0
x40502000read(5, "# $Xorg: iso8859-1,v 1.3 2000/08"..., 4096)= 4096read(5, "\n<Multi_key> <a> <underscore>\t\t:"..., 4096)= 4096read(5, "\t: \"\\303\"\tAtilde\n<Multi_key> <mi"..., 4096)= 4096read(5, "\t: \"\\355\"\tiacute\n<Multi_key> <i>"..., 4096)= 4096read(5, "te\n<Multi_key> <Y> <apostrophe>\t"..., 4096)= 4028read(5, "", 4096) = 0 close(5) = 0 munmap(0x40502000, 4096) = 0 brk(0) = 0x811c000 brk(0x811d000) = 0x811d000write(3, "\2\0\4\0:\0\0\0\0\10\0\0003@`\0\2t\4\0:\0\0\0\0\10\0\0"..., 56) = 56
read(3, 0xbffff3f8, 32)= -1 EAGAIN (Resource temporarily
unavai
lable)select(4, [3], NULL, NULL, NULL)= 1 (in [3])read(3, "\1\0006\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\350\353"..., 32)= 32write(3, "\24\0\6\0:\0\0\0\27\0\0\0\0\0\0\0\0\0\0\0\0 \0\0", 24)= 24read(3, 0xbffff490, 32)= -1 EAGAIN (Resource temporarily
unavai
lable)select(4, [3], NULL, NULL, NULL)= 1 (in [3])read(3, "\1\0007\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\350\353"..., 32)= 32brk(0) = 0x811d000 brk(0x8120000) = 0x8120000 brk(0) = 0x8120000 brk(0x8121000) = 0x8121000
Quoted 10 lines
writev(2, [{"gutenbrowser", 12}, {": ", 2}, {"relocation error", 16}, {": ", 2},
{"gutenbrowser", 12}, {": ", 2}, {"undefined symbol: qInitNetworkPr"...,
43},
{
"", 0}, {"", 0}, {"\n", 1}], 10gutenbrowser: relocation error: gutenbrowser:
und
efined symbol:qInitNetworkProtocols__Fv
) = 90exit_group(127)= ?
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Thanks Ray, you are a genius.
First I moved the /usr/local/qt out of the way, then I copied libqt.so.2.3.1 from RedHat over to /lib in slackware made the symbolic link libqt.so.2 to it and gutenbrowser came to live fast. Slackware has the latest qt library in in /usr/lib/qt.....
How do these programs decide where to look for a library?
Quoted 2 lines · [email protected] said:
you are going to have to say more than "I made a new installation" for me
to understand what you did.
Well if I have a .tar.gz program file I do tar xzvf file.tar.gz in usually /usr/local and then follow the install instructions which in the case of gutenbrowser are different from the normal routine. It uses tmake. Is this procedure not called installation or is there another more professional speak?
Regards
Signature · 7 lines
Peter - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 8 lines · Peter
Thanks Ray, you are a genius.
First I moved the
/usr/local/qtout of the way, then I copied libqt.so.2.3.1 from RedHat over to /lib in slackware made the symbolic link libqt.so.2 to it and gutenbrowser came to live fast. Slackware has the latest qt library in in/usr/lib/qt.....How do these programs decide where to look for a library?
They ask the shared-library loader, /lib/ld-linux.so.2 You set it up using ldconfig . See the relevant man pages for the details. (Usually your distro's installer does all that is necessary for you, but once you start doing installs outside your distro's system, you may need to pay attention to this.)
Normally /lib and /usr/lib are safe standard places to put shared libraries. Other allowed places (e.g., /usr/local/lib) will be listed in /etc/ld.so.conf .
Quoted 8 lines
Quoted 2 lines · [email protected] said:
you are going to have to say more than "I made a new installation" for me
to understand what you did.Well if I have a .tar.gz program file I do tar xzvf file.tar.gz in usually
/usr/localand then follow the install instructions which in the case of gutenbrowser are different from the normal routine. It uses tmake. Is this procedure not called installation or is there another more professional speak?
Yes, I would call it "installation". And I did, after all, surmise that this was what you meant.
But I would also use the term "installation" if I installed a binary package (.rpm, .tgz, .deb) that was part of my distro. Or if I installed from the source package that came with my distro (.srpm, .deb-src, whatever nameing convention Slackware uses). So the reason for my comment was not that your usage was wrong, but that it was not specific.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs