Jeremy Malcolm
2007-Jul-13 14:06 UTC
[asterisk-users] asterisk-addons compilation "error: dereferencing pointer to incomplete type"
I am having trouble getting asterisk-addons 1.4.2 to compile (after a successful configure). Asterisk itself (and AsteriskGUI) compile fine. I get: cdr_addon_mysql.c: In function `handle_cdr_mysql_status': cdr_addon_mysql.c:91: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:93: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:95: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:97: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:98: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:99: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:100: error: dereferencing pointer to incomplete type cdr_addon_mysql.c: In function `mysql_log': cdr_addon_mysql.c:154: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:155: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:155: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:155: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:155: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:220: error: dereferencing pointer to incomplete type ...lots more of these cdr_addon_mysql.c:222: error: dereferencing pointer to incomplete type ...lots more of these cdr_addon_mysql.c:225: error: dereferencing pointer to incomplete type ...lots more of these cdr_addon_mysql.c:227: error: dereferencing pointer to incomplete type ...lots more of these cdr_addon_mysql.c: In function `my_load_config_string': cdr_addon_mysql.c:279: warning: assignment makes pointer from integer without a cast cdr_addon_mysql.c: In function `my_load_module': cdr_addon_mysql.c:378: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:382: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:383: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:384: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:385: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:387: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:388: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:389: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:390: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:391: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:392: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:393: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:394: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:395: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:396: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:397: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:398: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:399: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:400: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:401: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:408: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:409: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:409: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:409: error: dereferencing pointer to incomplete type cdr_addon_mysql.c:409: error: dereferencing pointer to incomplete type make[1]: *** [cdr_addon_mysql.o] Error 1 make: *** [all] Error 2 Has anyone come across this? TIA -- Jeremy Malcolm LLB (Hons) B Com Internet and Open Source lawyer, IT consultant, actor host -t NAPTR 1.0.8.0.3.1.2.9.8.1.6.e164.org|awk -F! '{print $3}'
Tzafrir Cohen
2007-Jul-13 15:16 UTC
[asterisk-users] asterisk-addons compilation "error: dereferencing pointer to incomplete type"
On Fri, Jul 13, 2007 at 10:06:13PM +0800, Jeremy Malcolm wrote:> I am having trouble getting asterisk-addons 1.4.2 to compile (after a > successful configure). Asterisk itself (and AsteriskGUI) compile fine.Please provide the following: * Version of Asterisk you have installed * Linux distribution and version * MySQL is installed from a distro package, right?> I get: > > cdr_addon_mysql.c: In function `handle_cdr_mysql_status': > cdr_addon_mysql.c:91: error: dereferencing pointer to incomplete type > cdr_addon_mysql.c:93: error: dereferencing pointer to incomplete type-- Tzafrir Cohen icq#16849755 jabber:tzafrir at jabber.org +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Dave Miller
2007-Jul-13 16:20 UTC
[asterisk-users] asterisk-addons compilation "error: dereferencing pointer to incomplete type"
Jeremy Malcolm wrote on 7/13/07 10:06 AM:> I am having trouble getting asterisk-addons 1.4.2 to compile (after a > successful configure). Asterisk itself (and AsteriskGUI) compile fine. > I get:[snipped] Sounds like you're missing the -devel package for MySQL would be my first guess. -- Dave Miller http://www.justdave.net/ System Administrator, Mozilla Corporation http://www.mozilla.com/ Project Leader, Bugzilla Bug Tracking System http://www.bugzilla.org/
Jeremy Malcolm
2007-Jul-14 00:48 UTC
[asterisk-users] asterisk-addons compilation "error: dereferencing pointer to incomplete type"
On Fri, Jul 13, 2007 at 12:00:11PM -0500, asterisk-users-request at lists.digium.com wrote:> > I am having trouble getting asterisk-addons 1.4.2 to compile (after a > > successful configure). Asterisk itself (and AsteriskGUI) compile fine. > > Please provide the following: > > * Version of Asterisk you have installed > * Linux distribution and version > * MySQL is installed from a distro package, right?1.4.5 compiled from source on Debian sarge (with backported packages from etch as needed by Asterisk) and MySQL 5.0.32.> Sounds like you're missing the -devel package for MySQL would be my > first guess.I have libmysqlclient15-dev, which should be correct...? Thanks. -- Jeremy Malcolm LLB (Hons) B Com Internet and Open Source lawyer, IT consultant, actor host -t NAPTR 1.0.8.0.3.1.2.9.8.1.6.e164.org|awk -F! '{print $3}'