Discussion:
[surf] view source?
Julien Steinhauser
2009-10-21 15:03:55 UTC
Permalink
Hello,

when I build last tip, I have this error :

surf.c: In function ‘source’:
surf.c:695: error: implicit declaration of function ‘webkit_web_view_get_view_source_mode’
surf.c:696: error: implicit declaration of function ‘webkit_web_view_set_view_source_mode’

I commented out from line 693 to 696 in surf.c
as I don't know how to declare the two functions properly,
but there's probably a cleaner method to let surf build smoothly.
Peter John Hartman
2009-10-21 15:06:54 UTC
Permalink
Post by Julien Steinhauser
Hello,
surf.c:695: error: implicit declaration of function ‘webkit_web_view_get_view_source_mode’
surf.c:696: error: implicit declaration of function ‘webkit_web_view_set_view_source_mode’
I commented out from line 693 to 696 in surf.c
as I don't know how to declare the two functions properly,
but there's probably a cleaner method to let surf build smoothly.
This seems to be a matter of the webkit-gtk+ version you are using. The default in gentoo stable
is still 1.1.10 and those functions aren't in it. I think those functions come with 1.1.14
(the latest stable on the webkit-gtk site is 1.1.15).

Peter
pancake
2009-10-21 15:08:21 UTC
Permalink
you have an old version of webkit
Post by Julien Steinhauser
Hello,
surf.c:695: error: implicit declaration of function ‘webkit_web_view_get_view_source_mode’
surf.c:696: error: implicit declaration of function ‘webkit_web_view_set_view_source_mode’
I commented out from line 693 to 696 in surf.c
as I don't know how to declare the two functions properly,
but there's probably a cleaner method to let surf build smoothly.
Julien Steinhauser
2009-10-21 16:57:57 UTC
Permalink
Post by pancake
you have an old version of webkit
You're right, after upgrading my webkit package, the warnings are gone,
the new warnings are even worst, but are not surf related so it's off topic.
I'll stay without the view source feature until packages change
in the debian repository.
Julien Steinhauser
2009-10-21 20:49:31 UTC
Permalink
Post by Julien Steinhauser
Post by pancake
you have an old version of webkit
You're right, after upgrading my webkit package, the warnings are gone,
the new warnings are even worst, but are not surf related so it's off topic.
I'll stay without the view source feature until packages change
in the debian repository.
All is fixed!
After logging out from dwm I've seen the solution written in the console,
I just had to install libxslt1-dev and all is fine again.

Loading...