Log in

No account? Create an account
LogJam [entries|archive|friends|userinfo]

[ website | LogJam ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Configure can't find libgtkhtml [Sep. 12th, 2007|07:05 am]


[Current Location |Chez J]

Hi there. New to logjam and fairly new to my current distro, altho' not new to Linux as such, so bear with me...

I'm running VectorLinux 5.8 SoHo, which is based on Slackware. I downloaded the current logjam source (logjam-4.5.3.tar.bz2), configured and installed -- all fine, except the configure script couldn't find libgtkhtml3. I've since realised that in order to be able to display the offline copy I really don't want to do without this functionality -- but I simply can't get it to work.

I have tried downgrading gtkhtml-3.14.3 to 3.0.8 (on the basis that 3.0.8 specifically lists libgtkhtml3); separately installing libgtkhtml-3.0.10 from somewhere; and variations on these.

Currently, I have libgtkhtml-3.0.so in (I believe -- I'm not at home right now) /opt/gnome2/lib/, which seems an odd place to put it, so I have tried soft-linking this to targets in /usr/lib and /usr/bin. I have also tried doing ./configure --with-libgtkhtml30, and I have tried --libdir="/opt/gnome2/lib" (or whatever the syntax is -- like I say, I'm not at home right now, but I copied and pasted the options from the --help itself, so there wasn't some silly mistake there).

All to no avail. I'm stumped. Everything else works -- apart from the XMMS support, which I can't be bothered with -- but I want to get this fixed. Suggestions, anyone?

TIA :)

EDIT: All fixed and happy now, mostly thanks to spot! The fix needed was basically just his patch, plus me learning a little bit about how to use it :)

[User Picture]From: tortipede
2007-09-12 01:19 pm (UTC)
Replying to myself, but... It appears from the archives that I'm missing the -dev or -devel libraries, and/or pkg-config can't find libgtkhtml. So this is progress. Since I was using an old old RedHat box until a few weeks ago I've never even heard of pkg-config before, so I can see this is going to be a steep learning curve. Any suggestions as to where I find the appropriate libs, preferably as .tgz so that they'll play nicely with slapt, and what I need to check up on wrt pkg-config?

(Reply) (Thread)
[User Picture]From: spot
2007-09-12 01:57 pm (UTC)
Logjam's gtkhtml detection isn't very smart. I had to patch it in order to keep it working on Fedora.

Here's the patch:

(Reply) (Thread)
From: evan
2007-09-12 03:49 pm (UTC)
Wow, what a mess! (gtkhtml, I mean, not the patch.)

How did upstream feel about your patch?
(Reply) (Parent) (Thread)
[User Picture]From: spot
2007-09-12 04:04 pm (UTC)
Aren't you upstream for logjam? :)

Honestly, I figured that there had to be a better way to fix the gtkhtml detection, but I couldn't come up with one. I was hoping that you (or someone else with more free time) would fix it more eloquently than I did.
(Reply) (Parent) (Thread)
[User Picture]From: tortipede
2007-09-12 06:59 pm (UTC)
Thx to all for advice so far... Uninstalled all the downgrades etc. & reinstalled gtkhtml-3.14. Downloaded & applied patch, which appeared to work:

richard:$ patch configure.in logjam-4.5.3-gtkhtml314.patch
patching file configure.in

(and I also looked manually, so to speak, at configure.in to make sure it had changed...)

But when I redid ./configure I saw no difference in the output

checking whether to use gtk... yes
checking for gtkspell-2.0... yes
checking for libgtkhtml-3.6... not found
checking for libgtkhtml-3.0... not found
checking for librsvg-2.0 > 2.2.3... yes

and it still wound up configured as

- GtkSpell: yes
- GtkHTML: no

So then I reinstalled libgtkhtml3.0.10 using installpkg, and repeated -- with no difference.

So then I got libgtkhtml-3.6.something from linuxpackages.net & installed, and repeated -- with no difference.

Am I still missing -dev(el) libraries, or should I be playing with pkg-config manually, or... ?

Thanks once again...
(Reply) (Parent) (Thread)
[User Picture]From: spot
2007-09-12 07:03 pm (UTC)
gtkhtml should be providing a /usr/lib/pkgconfig/libgtkhtml-3.*.pc file. If it is not, then you need to have the -devel package installed.

Let me put it this way: If there is a -devel package for gtkhtml3 for your distribution, install it.
(Reply) (Parent) (Thread)
[User Picture]From: tortipede
2007-09-12 11:44 pm (UTC)
Hm. Can't find a -devel package; can find /usr/lib/pkgconfig/libgtkhtml-3.0.pc and -3.14.pc. Still no joy...
(Reply) (Parent) (Thread)
[User Picture]From: spot
2007-09-13 02:31 am (UTC)
OK, look at the output from:

[spot@localhost ~]$ pkg-config --list-all |grep gtkhtml
libgtkhtml-3.14 libgtkhtml - libgtkhtml
gtkhtml-sharp-2.0 Gtkhtml - Gtkhtml

It should show a libgtkhtml-3.* something. If it does, look at config.log from your logjam/ src directory, see why it is failing the gtkhtml3 check.
(Reply) (Parent) (Thread)
[User Picture]From: tortipede
2007-09-13 06:27 am (UTC)
OK, this is frustrating. I'd be on the point of saying "Sod it", except that people are being so helpful. But...

richard:$ pkg-config --list-all | grep gtkhtml
libgtkhtml-3.0 libgtkhtml - libgtkhtml
libgtkhtml-3.6 libgtkhtml - libgtkhtml
libgtkhtml-2.0 libgtkhtml - libgtkhtml
libgtkhtml-3.14 libgtkhtml - libgtkhtml

And on the other hand:

configure:21561: checking whether to use gtk
configure:21564: result: yes
configure:21629: checking for gtkspell-2.0
configure:21632: result: yes
configure:21713: checking for libgtkhtml-3.6
configure:21726: result: not found
configure:21799: checking for libgtkhtml-3.0
configure:21812: result: not found
configure:21896: checking for librsvg-2.0 > 2.2.3
configure:21899: result: yes

One thing that's really kind of confusing me is the fact that the config.log doesn't seem to reflect in any way the fact that I applied your patch...
(Reply) (Parent) (Thread)
[User Picture]From: spot
2007-09-13 01:55 pm (UTC)
Aha! I forgot that my patch is for configure.in, not configure.

Run: autoconf

Then try: ./configure
(Reply) (Parent) (Thread)
From: brutal_truth
2007-09-12 06:08 pm (UTC)
Now that you got gtkhtml3 you ought to try reinstalling logjam. Keep in mind that it is during logjams ./configure that it is configured for your system.

To find binaries for any slack based system you can head on over to linuxpackages.net although on my old Slackware box I sometimes used netbsd packages...
(Reply) (Thread)