[Users] geolocation plugin compile error

Páder Rezső rezso at rezso.net
Thu Nov 15 14:03:16 CET 2012


> You probably need to change references to pluginconfig.h to config.h in
> configure.ac, and re-run autogen.sh...

But the geolocation plugin source contains pluginconfig.h.in, not
config.h.in, and the configure.ac contains AC_CONFIG_HEADERS(pluginconfig.h)
After running autogen.sh, the DEFS defined with -D_HAVE_CONFIG_H again.
So I simply removed the 
#ifdef HAVE_CONFIG_H
#  include "config.h"
#endif
lines from the geolocation_plugin.c:
geolocation_plugin.c: In function 'get_country_from_ip':
geolocation_plugin.c:257:23: warning: initialization discards 'const'
qualifier from pointer target type [enabled by default]
geolocation_plugin.c: In function 'geolocation_button_toggled_cb':
geolocation_plugin.c:352:39: error: dereferencing pointer to incomplete
type 
geolocation_plugin.c:382:121: error: dereferencing pointer to incomplete
type 
geolocation_plugin.c: In function
'get_geolocation_container_from_messageview': 
geolocation_plugin.c:399:132:
error: dereferencing pointer to incomplete type
geolocation_plugin.c:401:114: error: dereferencing pointer to incomplete
type

(gcc version: 4.7.1, gtk version 2.24.11)


Regards,

rezso
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.claws-mail.org/pipermail/users/attachments/20121115/a3197855/attachment.sig>


More information about the Users mailing list