Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#16770 closed defect (worksforme)

Error: implicit declaration of function 'gtk_widget_get_allocated_height'

Reported by: computergeoffrey@… Owned by: EionRobb
Milestone: Component: unclassified
Version: 2.10.11 Keywords:
Cc:

Description

This is a coding mistake, I think. See also http://stackoverflow.com/questions/8440816/warning-implicit-declaration-of-function

While building Pidgin 2:

make[4]: Entering directory `/home/geoffrey/release-2.x.y/pidgin' CC pidginstock.lo CC gtkaccount.lo CC gtkblist.lo CC gtkblist-theme.lo CC gtkblist-theme-loader.lo CC gtkcellrendererexpander.lo CC gtkcertmgr.lo CC gtkconn.lo CC gtkconv.lo gtkconv.c: In function 'resize_webview_cb': gtkconv.c:4948:10: warning: assignment from incompatible pointer type [enabled by default] gtkconv.c:4951:2: warning: passing argument 1 of 'pidgin_webview_get_DOM_height' from incompatible pointer type [enabled by default] gtkwebview.h:602:1: note: expected 'struct PidginWebView? *' but argument is of type 'struct WebKitWebView? *' gtkconv.c:4962:2: warning: passing argument 1 of 'pidgin_webview_get_font_size' from incompatible pointer type [enabled by default] gtkwebview.h:613:1: note: expected 'struct PidginWebView? *' but argument is of type 'struct WebKitWebView? *' gtkconv.c:4971:3: error: implicit declaration of function 'gtk_widget_get_allocated_height' [-Werror=implicit-function-declaration] gtkconv.c:4971:3: warning: passing argument 1 of 'pidgin_webview_get_toolbar' from incompatible pointer type [enabled by default] gtkwebview.h:672:1: note: expected 'struct PidginWebView? *' but argument is of type 'struct WebKitWebView? *' cc1: some warnings being treated as errors make[4]: * [gtkconv.lo] Error 1 make[4]: Leaving directory `/home/geoffrey/release-2.x.y/pidgin' make[3]: * [all-recursive] Error 1 make[3]: Leaving directory `/home/geoffrey/release-2.x.y/pidgin' make[2]: * [all] Error 2 make[2]: Leaving directory `/home/geoffrey/release-2.x.y/pidgin' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory `/home/geoffrey/release-2.x.y' make: * [all] Error 2

Change History (4)

comment:1 Changed 2 years ago by computergeoffrey@…

This is in Ubuntu 12.04, fully updated.

Configure output: http://pastebin.com/hQRdktCs

comment:2 Changed 2 years ago by EionRobb

  • Resolution set to worksforme
  • Status changed from new to closed

webkit isn't part of Pidgin 2, looks like you're trying to build Pidgin 3 or you have the wrong ./configure options enabled. If you want to build Pidgin 2, do it from a tarball instead of hg https://developer.pidgin.im/wiki/Installing%20Pidgin#WhydoyoualwayssaynottousetheMercurialrepository

comment:3 Changed 2 years ago by computergeoffrey@…

It was indeed Pidgin 3. I missed the -u switch for mercurial:

hg clone https://hg.pidgin.im/pidgin/main -u release-2.x.y

comment:4 Changed 2 years ago by EionRobb

Yeah, but best to download a tarball https://pidgin.im/download/source/ instead of using hg

Note: See TracTickets for help on using tickets.
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!