Re: GtkHtml module with libgtkhtml 0.11
- From: Andrew Schretter <schrett math duke edu>
- To: Raul Dias <chaos swi com br>
- Cc: <gtk-perl-list gnome org>
- Subject: Re: GtkHtml module with libgtkhtml 0.11
- Date: Thu, 13 Sep 2001 09:02:38 -0400 (EDT)
This small patch will allow the compile to complete although
the functions in question may not operate exactly correctly
with gtkhtml-0.12.0. Probably okay with gtkhtml-0.11.0 but maybe
the first part and the part about paste are not needed with this one.
Andrew
---------------------------------------------------------------------------
--- Gtk-Perl-0.7008/GtkHTML/pkg.defs Sun Jan 21 06:21:06 2001
+++ Gtk-Perl-0.7008/GtkHTML/pkg.defs.new Mon Sep 10 15:10:31 2001
@@ -61,7 +61,7 @@
(remove-link GTK_HTML_COMMAND_REMOVE_LINK)
(delete GTK_HTML_COMMAND_DELETE)
(delete-back GTK_HTML_COMMAND_DELETE_BACK)
- (set-mark GTK_HTML_COMMAND_SET_MARK)
+ (selection-mode GTK_HTML_COMMAND_SELECTION_MODE)
(disable-selection GTK_HTML_COMMAND_DISABLE_SELECTION)
(bold-on GTK_HTML_COMMAND_BOLD_ON)
(bold-off GTK_HTML_COMMAND_BOLD_OFF)
--- Gtk-Perl-0.7008/GtkHTML/xs/GtkHTML.xs Sun Jun 17 12:35:46 2001
+++ Gtk-Perl-0.7008/GtkHTML/xs/GtkHTML.xs.new Mon Sep 10 15:10:44 2001
@@ -122,9 +122,10 @@
RETVAL
void
-gtk_html_set_iframe_parent (html, parent)
+gtk_html_set_iframe_parent (html, parent, frame)
Gtk::HTML html
Gtk::Widget parent
+ char * frame
gulong
gtk_html_begin (html)
@@ -167,8 +168,9 @@
bool allow
int
-gtk_html_request_paste (html, type, time)
+gtk_html_request_paste (html, selection, type, time)
Gtk::HTML html
+ int selection
int type
int time
------------------------------------------------------------------------
I am trying to compile the GtkHtml module with libgtkhmtl 0.11.
I have a Conectiva Linux 7.0 system with glibc 2.2.3, perl 5.6.1 and
gcc 2.95.3.
I get the following errors:
(warning: full log below)
--------------8<-----------------------------------------------------
$ perl Makefile.PL
maUsing ../blib
keFound Gtk::Install::Files in /chaos/rpm/BUILD/Gtk-Perl-0.7008/GtkHTML/../blib/arch/Gtk/Install/
GOT gtkhtml-0.11.1
Loading pkg.defs
Dir ||
Exporting enum: GtkHTMLCommandType
Exporting enum: GtkHTMLCursorSkipType
Exporting enum: GtkHTMLParagraphAlignment
Exporting enum: GtkHTMLParagraphStyle
Exporting enum: GtkHTMLStreamStatus
Exporting flags: GtkHTMLFontStyle
Creating reference documentation
Using ../blib
No parent info for package Gtk/HTML/Types
No parent info for package Gtk/GLArea/Types
No parent info for package Gtk/GladeXML/Types
Writing Makefile for Gtk::HTML
[chaos speedy GtkHTML]$ make
/usr/bin/perl ../tools/genext.pl GtkHTML </dev/null
cp Simple.pm blib/arch/Gtk/HTML/Simple.pm
cp /chaos/rpm/BUILD/Gtk-Perl-0.7008/GtkHTML/pkg.typemap blib/arch/Gtk/HTML/Install/pkg.typemap
cp build/PerlGtkHTMLInt.h blib/arch/Gtk/HTML/Install/PerlGtkHTMLInt.h
cp GtkHTML.pm blib/arch/Gtk/HTML.pm
cp /chaos/rpm/BUILD/Gtk-Perl-0.7008/GtkHTML/build/GtkHTMLTypemap blib/arch/Gtk/HTML/Install/GtkHTMLTypemap
cp build/GtkHTMLDefs.h blib/arch/Gtk/HTML/Install/GtkHTMLDefs.h
cp build/GtkHTMLTypes.pm blib/arch/Gtk/HTML/Types.pm
cp build/Files.pm blib/arch/Gtk/HTML/Install/Files.pm
/usr/bin/perl -I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 /usr/lib/perl5/5.6.1/ExtUtils/xsubpp
-noversioncheck -typemap /usr/lib/perl5/5.6.1/ExtUtils/typemap -typemap
/chaos/rpm/BUILD/Gtk-Perl-0.7008/GtkHTML/../blib/arch/Gtk/Install//GtkTypemap -typemap
/chaos/rpm/BUILD/Gtk-Perl-0.7008/GtkHTML/../blib/arch/Gtk/Install//gtk-0.99.typemap -typemap
/chaos/rpm/BUILD/Gtk-Perl-0.7008/GtkHTML/../blib/arch/Gtk/Install//gtk-1.2.typemap -typemap
/chaos/rpm/BUILD/Gtk-Perl-0.7008/GtkHTML/pkg.typemap -typemap
/chaos/rpm/BUILD/Gtk-Perl-0.7008/GtkHTML/build/GtkHTMLTypemap xs/GtkHTMLEmbedded.xs >
xs/GtkHTMLEmbedded.xsc && mv xs/GtkHTMLEmbedded.xsc xs/GtkHTMLEmbedded.c
Please specify prototyping behavior for GtkHTMLEmbedded.xs (see perlxs manual)
gcc -c -I/chaos/rpm/BUILD/Gtk-Perl-0.7008/GtkHTML/../blib/arch/Gtk/Install/ -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I. -I./build -I/usr/include
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
-DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gnome-xml -fno-strict-aliasing
-I/usr/include/db1 -I/usr/local/include -O2 -mpentium -fno-strength-reduce -march=i386
-DVERSION=\"0.7008\" -DXS_VERSION=\"0.7008\" -fPIC -I/usr/include/gdbm -I/usr/include/db1
-I/usr/lib/perl5/5.6.1/i386-linux/CORE -DPERL_POLLUTE -DLAZY_LOAD -DGTK_HVER=0x01020a
-DGTKHTML_HVER=0x000b01 xs/GtkHTMLEmbedded.c
/usr/bin/perl -I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 /usr/lib/perl5/5.6.1/ExtUtils/xsubpp
-noversioncheck -typemap /usr/lib/perl5/5.6.1/ExtUtils/typemap -typemap
/chaos/rpm/BUILD/Gtk-Perl-0.7008/GtkHTML/../blib/arch/Gtk/Install//GtkTypemap -typemap
/chaos/rpm/BUILD/Gtk-Perl-0.7008/GtkHTML/../blib/arch/Gtk/Install//gtk-0.99.typemap -typemap
/chaos/rpm/BUILD/Gtk-Perl-0.7008/GtkHTML/../blib/arch/Gtk/Install//gtk-1.2.typemap -typemap
/chaos/rpm/BUILD/Gtk-Perl-0.7008/GtkHTML/pkg.typemap -typemap
/chaos/rpm/BUILD/Gtk-Perl-0.7008/GtkHTML/build/GtkHTMLTypemap xs/GtkHTML.xs > xs/GtkHTML.xsc && mv
xs/GtkHTML.xsc xs/GtkHTML.c
Please specify prototyping behavior for GtkHTML.xs (see perlxs manual)
gcc -c -I/chaos/rpm/BUILD/Gtk-Perl-0.7008/GtkHTML/../blib/arch/Gtk/Install/ -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I. -I./build -I/usr/include
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
-DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include -I/usr/include/gnome-xml -fno-strict-aliasing
-I/usr/include/db1 -I/usr/local/include -O2 -mpentium -fno-strength-reduce -march=i386
-DVERSION=\"0.7008\" -DXS_VERSION=\"0.7008\" -fPIC -I/usr/include/gdbm -I/usr/include/db1
-I/usr/lib/perl5/5.6.1/i386-linux/CORE -DPERL_POLLUTE -DLAZY_LOAD -DGTK_HVER=0x01020a
-DGTKHTML_HVER=0x000b01 xs/GtkHTML.c
GtkHTML.c: In function `XS_Gtk__HTML_set_iframe_parent':
GtkHTML.c:180: too few arguments to function `gtk_html_set_iframe_parent'
GtkHTML.c: In function `XS_Gtk__HTML_begin':
GtkHTML.c:203: warning: assignment makes integer from pointer without a cast
GtkHTML.xs: In function `XS_Gtk__HTML_write':
GtkHTML.xs:142: warning: passing arg 2 of `gtk_html_write' makes pointer from integer without a cast
GtkHTML.c: In function `XS_Gtk__HTML_end':
GtkHTML.c:261: warning: passing arg 2 of `gtk_html_end' makes pointer from integer without a cast
GtkHTML.c: In function `XS_Gtk__HTML_request_paste':
GtkHTML.c:376: too few arguments to function `gtk_html_request_paste'
GtkHTML.c: In function `XS_Gtk__HTML_get_title':
GtkHTML.c:697: warning: assignment discards qualifiers from pointer target type
GtkHTML.xs: In function `XS_Gtk__HTML_save':
GtkHTML.xs:250: warning: passing arg 2 of `gtk_html_save' from incompatible pointer type
GtkHTML.xs: In function `XS_Gtk__HTML_export':
GtkHTML.xs:268: warning: passing arg 3 of `gtk_html_export' from incompatible pointer type
make: *** [xs/GtkHTML.o] Error 1
------------------------>8-------------------------------------------
It seems that the API has changed in lingtkhtml, but some people told me that it could be compiled
with Mandrake 7.2.
Any ideas (or patches)?
Regards,
Raul Dias
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
--
Andrew Schretter
Systems Programmer, Duke University
Dept. of Mathematics (919) 660-2866
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]