Bug 459349 - undefined reference to `gtk_html_request_paste'
Summary: undefined reference to `gtk_html_request_paste'
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: gtkhtml3
Version: 9
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Matthew Barnes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-08-17 08:59 UTC by Remi Collet
Modified: 2008-08-17 14:13 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-08-17 14:13:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Remi Collet 2008-08-17 08:59:48 UTC
Description of problem:
Trying to build php-gtk result in this error

Version-Release number of selected component (if applicable):
gtkhtml3-3.18.3-1.fc9.x86_64

How reproducible:
Simple code :
#include <gtkhtml/gtkhtml.h>

int main (int argc, char *argv[])

	{
	void *p;
	p=(void *)gtk_html_select_all;
	p=(void *)gtk_html_request_paste;
	if (p) puts("Ok\n"); else puts("Ko\n");
	return 0;
	}


Steps to Reproduce:
1. use above minimal test case.
2. gcc $(pkg-config --cflags --libs libgtkhtml-3.14) testload.c
3.
  
Actual results:
testload.c:(.text+0x1b): undefined reference to `gtk_html_request_paste'


Expected results:


Additional info:
gtk_html_request_paste is defined in gtkhtml.h but i don't find this function in the source code of libgtkhtml 3.18.1 (and 3.18.3).

Is there a missing lib (which should be provided by pkg-config) ?
If this function is not provided, it probably should not be declared in .h ?

Regards

Comment 1 Remi Collet 2008-08-17 09:58:56 UTC
Forget this....

I haven't check CVS and see revision 1.61.

Comment 2 Remi Collet 2008-08-17 10:00:14 UTC
Forget Comment #1, (wrong bugzilla)...

Comment 3 Matthew Barnes 2008-08-17 14:13:56 UTC
Here's the revision where it got removed (Oct, 2007), and I'm betting the API break was never noticed and the libgtkhtml soname never got bumped.

   http://svn.gnome.org/viewvc/gtkhtml?view=revision&revision=8594

Not much I can do now except remove the declaration from the header file, which I've now done upstream.

I guess gtk_html_paste() should be used now instead of gtk_html_request_paste().


Note You need to log in before you can comment on or make changes to this bug.