Bug 459349

Summary: undefined reference to `gtk_html_request_paste'
Product: [Fedora] Fedora Reporter: Remi Collet <fedora>
Component: gtkhtml3Assignee: Matthew Barnes <mbarnes>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 9CC: mbarnes, mcrha
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-08-17 14:13:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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().