chan_skype build problems

A forum for Skype For Asterisk users to ask questions and get advice from other users

Moderators: twilson, pete engler

chan_skype build problems

Postby bleedinge » Fri Jul 31, 2009 8:27 am

I'm trying to build chan_skype in my Debian system and it doesn't work.
Asterisk version is 1.4.13 and any module I've built so far has worked flawlessly.

These are the errors I'm getting:

Code: Select all
gcc -o chan_skype.o -c chan_skype.c -pipe -fPIC -DAST_MODULE=\"chan_skype\" -MD -MT chan_skype.o -MF .chan_skype.o.d -MP
chan_skype.c:208: error: unknown field 'duplicate' specified in initializer
chan_skype.c:208: warning: excess elements in struct initializer
chan_skype.c:208: warning: (near initialization for 'skype_call_datastore')
chan_skype.c: In function 'indicate':
chan_skype.c:393: error: 'AST_CONTROL_SRCUPDATE' undeclared (first use in this function)
chan_skype.c:393: error: (Each undeclared identifier is reported only once
chan_skype.c:393: error: for each function it appears in.)
chan_skype.c: In function 'skype_datastore_write':
chan_skype.c:2171: error: 'struct ast_datastore' has no member named 'inheritance'
chan_skype.c:2171: error: 'DATASTORE_INHERIT_FOREVER' undeclared (first use in this function)
make: *** [chan_skype.o] Error 1


Are the Asterisk headers up-to-date or do I need a newer Asterisk version in order for SFA to build?
bleedinge
Newsterisk
 
Posts: 2
Joined: Fri Jul 31, 2009 6:16 am

From the README

Postby twilson » Fri Jul 31, 2009 8:34 am

Second paragraph:

------------
Beta Testing
------------
As an SFA beta tester, you have received an SFA product package as either an
RPM to be installed on AsteriskNOW 1.5 or as a tar-file that can be used to
install SFA on any 32-bit or 64-bit Linux system with Asterisk 1.4 (version
1.4.25 or higher
) already installed.


There are some bugs in releases prior to 1.4.25 that impact using SFA. Other than that, as long as you have Asterisk installed and are compiling the SFA version that corresponds with the major version of Asterisk that is currently installed on the system, things should work.
twilson
Oldsterisk
 
Posts: 87
Joined: Mon Jun 01, 2009 9:35 am

compile error in ubuntu 6.06

Postby scott_lvsha » Sun Aug 02, 2009 10:59 pm

My system is ubuntu 6.06, I installed asterisk-1.4.26, but still have error.
I just untar skypeforasterisk-1.6.1_0.9.10-x86_32.tar.gz
and run make

below is compile error message
gcc -o chan_skype.o -c chan_skype.c -pipe -fPIC -DAST_MODULE=\"chan_skype\" -MD -MT chan_skype.o -MF .chan_skype.o.d -MP
chan_skype.c:290: warning: initialization from incompatible pointer type
chan_skype.c:298: warning: initialization from incompatible pointer type
chan_skype.c:1316: warning: 鈥榮truct ast_cli_args鈥?declared inside parameter list
chan_skype.c:1316: warning: its scope is only this definition or declaration, which is probably not what you want
chan_skype.c: In function 鈥榮how_settings_cli鈥?
chan_skype.c:1319: error: 鈥楥LI_INIT鈥?undeclared (first use in this function)
chan_skype.c:1319: error: (Each undeclared identifier is reported only once
chan_skype.c:1319: error: for each function it appears in.)
chan_skype.c:1320: error: 鈥榮truct ast_cli_entry鈥?has no member named 鈥榗ommand鈥?
chan_skype.c:1325: error: 鈥楥LI_GENERATE鈥?undeclared (first use in this function)
chan_skype.c:1329: error: dereferencing pointer to incomplete type
chan_skype.c:1330: error: 鈥楥LI_SHOWUSAGE鈥?undeclared (first use in this function)
chan_skype.c:1333: error: dereferencing pointer to incomplete type
chan_skype.c:1334: error: dereferencing pointer to incomplete type
chan_skype.c:1335: error: dereferencing pointer to incomplete type
chan_skype.c:1336: error: dereferencing pointer to incomplete type
chan_skype.c:1337: error: dereferencing pointer to incomplete type
chan_skype.c:1338: error: dereferencing pointer to incomplete type
chan_skype.c:1339: error: dereferencing pointer to incomplete type
chan_skype.c:1340: error: dereferencing pointer to incomplete type
chan_skype.c:1341: error: dereferencing pointer to incomplete type
chan_skype.c:1342: error: dereferencing pointer to incomplete type
chan_skype.c:1343: error: dereferencing pointer to incomplete type
chan_skype.c:1344: error: dereferencing pointer to incomplete type
chan_skype.c:1345: error: dereferencing pointer to incomplete type
chan_skype.c:1346: error: dereferencing pointer to incomplete type
chan_skype.c:1347: error: dereferencing pointer to incomplete type
chan_skype.c:1348: error: dereferencing pointer to incomplete type
chan_skype.c:1350: error: 鈥楥LI_SUCCESS鈥?undeclared (first use in this function)
chan_skype.c: At top level:
chan_skype.c:1353: warning: 鈥榮truct ast_cli_args鈥?declared inside parameter list
chan_skype.c: In function 鈥榮how_version_cli鈥?
chan_skype.c:1356: error: 鈥楥LI_INIT鈥?undeclared (first use in this function)
chan_skype.c:1357: error: 鈥榮truct ast_cli_entry鈥?has no member named 鈥榗ommand鈥?
chan_skype.c:1362: error: 鈥楥LI_GENERATE鈥?undeclared (first use in this function)
chan_skype.c:1366: error: dereferencing pointer to incomplete type
chan_skype.c:1367: error: 鈥楥LI_SHOWUSAGE鈥?undeclared (first use in this function)
chan_skype.c:1370: error: dereferencing pointer to incomplete type
chan_skype.c:1371: error: dereferencing pointer to incomplete type
chan_skype.c:1372: error: dereferencing pointer to incomplete type
chan_skype.c:1374: error: 鈥楥LI_SUCCESS鈥?undeclared (first use in this function)
chan_skype.c: At top level:
chan_skype.c:1377: warning: 鈥榮truct ast_cli_args鈥?declared inside parameter list
chan_skype.c: In function 鈥榮how_users_cli鈥?
chan_skype.c:1383: error: 鈥楥LI_INIT鈥?undeclared (first use in this function)
chan_skype.c:1384: error: 鈥榮truct ast_cli_entry鈥?has no member named 鈥榗ommand鈥?
chan_skype.c:1389: error: 鈥楥LI_GENERATE鈥?undeclared (first use in this function)
chan_skype.c:1393: error: dereferencing pointer to incomplete type
chan_skype.c:1394: error: 鈥楥LI_SHOWUSAGE鈥?undeclared (first use in this function)
chan_skype.c:1396: error: dereferencing pointer to incomplete type
chan_skype.c:1401: error: dereferencing pointer to incomplete type
chan_skype.c:1404: error: 鈥楥LI_SUCCESS鈥?undeclared (first use in this function)
chan_skype.c: At top level:
chan_skype.c:1429: warning: 鈥榮truct ast_cli_args鈥?declared inside parameter list
chan_skype.c: In function 鈥榮et_debug_cli鈥?
chan_skype.c:1434: error: 鈥楥LI_INIT鈥?undeclared (first use in this function)
chan_skype.c:1435: error: 鈥榮truct ast_cli_entry鈥?has no member named 鈥榗ommand鈥?
chan_skype.c:1440: error: 鈥楥LI_GENERATE鈥?undeclared (first use in this function)
chan_skype.c:1441: error: dereferencing pointer to incomplete type
chan_skype.c:1442: error: dereferencing pointer to incomplete type
chan_skype.c:1443: error: dereferencing pointer to incomplete type
chan_skype.c:1443: error: dereferencing pointer to incomplete type
chan_skype.c:1444: error: dereferencing pointer to incomplete type
chan_skype.c:1444: error: dereferencing pointer to incomplete type
chan_skype.c:1448: error: dereferencing pointer to incomplete type
chan_skype.c:1449: error: 鈥楥LI_SHOWUSAGE鈥?undeclared (first use in this function)
chan_skype.c:1452: error: dereferencing pointer to incomplete type
chan_skype.c:1454: error: dereferencing pointer to incomplete type
chan_skype.c:1456: error: dereferencing pointer to incomplete type
chan_skype.c:1457: error: dereferencing pointer to incomplete type
chan_skype.c:1462: error: dereferencing pointer to incomplete type
chan_skype.c:1463: error: 鈥楥LI_FAILURE鈥?undeclared (first use in this function)
chan_skype.c:1465: error: dereferencing pointer to incomplete type
chan_skype.c:1470: error: dereferencing pointer to incomplete type
chan_skype.c:1471: error: dereferencing pointer to incomplete type
chan_skype.c:1482: error: dereferencing pointer to incomplete type
chan_skype.c:1486: error: dereferencing pointer to incomplete type
chan_skype.c:1486: error: dereferencing pointer to incomplete type
chan_skype.c:1491: error: 鈥楥LI_SUCCESS鈥?undeclared (first use in this function)
chan_skype.c: At top level:
chan_skype.c:1503: warning: 鈥榮truct ast_cli_args鈥?declared inside parameter list
chan_skype.c: In function 鈥榮how_user_cli鈥?
chan_skype.c:1510: error: 鈥楥LI_INIT鈥?undeclared (first use in this function)
chan_skype.c:1511: error: 鈥榮truct ast_cli_entry鈥?has no member named 鈥榗ommand鈥?
chan_skype.c:1516: error: 鈥楥LI_GENERATE鈥?undeclared (first use in this function)
chan_skype.c:1517: error: dereferencing pointer to incomplete type
chan_skype.c:1517: error: dereferencing pointer to incomplete type
chan_skype.c:1518: error: dereferencing pointer to incomplete type
chan_skype.c:1518: error: dereferencing pointer to incomplete type
chan_skype.c:1522: error: dereferencing pointer to incomplete type
chan_skype.c:1523: error: 鈥楥LI_SHOWUSAGE鈥?undeclared (first use in this function)
chan_skype.c:1525: error: dereferencing pointer to incomplete type
chan_skype.c:1526: error: dereferencing pointer to incomplete type
chan_skype.c:1587: error: dereferencing pointer to incomplete type
chan_skype.c:1589: error: dereferencing pointer to incomplete type
chan_skype.c:1589: error: dereferencing pointer to incomplete type
chan_skype.c:1593: error: 鈥楥LI_SUCCESS鈥?undeclared (first use in this function)
chan_skype.c: In function 鈥榖uddy_cli_write鈥?
chan_skype.c:1607: error: dereferencing pointer to incomplete type
chan_skype.c: At top level:
chan_skype.c:1610: warning: 鈥榮truct ast_cli_args鈥?declared inside parameter list
chan_skype.c: In function 鈥榮how_buddies_cli鈥?
chan_skype.c:1615: error: 鈥楥LI_INIT鈥?undeclared (first use in this function)
chan_skype.c:1616: error: 鈥榮truct ast_cli_entry鈥?has no member named 鈥榗ommand鈥?
chan_skype.c:1621: error: 鈥楥LI_GENERATE鈥?undeclared (first use in this function)
chan_skype.c:1622: error: dereferencing pointer to incomplete type
chan_skype.c:1622: error: dereferencing pointer to incomplete type
chan_skype.c:1623: error: dereferencing pointer to incomplete type
chan_skype.c:1623: error: dereferencing pointer to incomplete type
chan_skype.c:1627: error: dereferencing pointer to incomplete type
chan_skype.c:1628: error: 鈥楥LI_SHOWUSAGE鈥?undeclared (first use in this function)
chan_skype.c:1631: error: dereferencing pointer to incomplete type
chan_skype.c:1632: error: dereferencing pointer to incomplete type
chan_skype.c:1632: error: dereferencing pointer to incomplete type
chan_skype.c:1633: error: 鈥楥LI_SUCCESS鈥?undeclared (first use in this function)
chan_skype.c:1636: error: dereferencing pointer to incomplete type
chan_skype.c: At top level:
chan_skype.c:1644: warning: 鈥榮truct ast_cli_args鈥?declared inside parameter list
chan_skype.c: In function 鈥榮how_hostid_cli鈥?
chan_skype.c:1647: error: 鈥楥LI_INIT鈥?undeclared (first use in this function)
chan_skype.c:1648: error: 鈥榮truct ast_cli_entry鈥?has no member named 鈥榗ommand鈥?
chan_skype.c:1653: error: 鈥楥LI_GENERATE鈥?undeclared (first use in this function)
chan_skype.c:1657: error: dereferencing pointer to incomplete type
chan_skype.c:1658: error: 鈥楥LI_SHOWUSAGE鈥?undeclared (first use in this function)
chan_skype.c:1661: error: dereferencing pointer to incomplete type
chan_skype.c:1663: error: 鈥楥LI_SUCCESS鈥?undeclared (first use in this function)
chan_skype.c: At top level:
chan_skype.c:1666: warning: 鈥榮truct ast_cli_args鈥?declared inside parameter list
chan_skype.c: In function 鈥榮how_licenses_cli鈥?
chan_skype.c:1672: error: 鈥楥LI_INIT鈥?undeclared (first use in this function)
chan_skype.c:1673: error: 鈥榮truct ast_cli_entry鈥?has no member named 鈥榗ommand鈥?
chan_skype.c:1678: error: 鈥楥LI_GENERATE鈥?undeclared (first use in this function)
chan_skype.c:1682: error: dereferencing pointer to incomplete type
chan_skype.c:1683: error: 鈥楥LI_SHOWUSAGE鈥?undeclared (first use in this function)
chan_skype.c:1686: error: dereferencing pointer to incomplete type
chan_skype.c:1687: error: dereferencing pointer to incomplete type
chan_skype.c:1688: error: dereferencing pointer to incomplete type
chan_skype.c:1691: error: dereferencing pointer to incomplete type
chan_skype.c:1692: error: 鈥楥LI_SUCCESS鈥?undeclared (first use in this function)
chan_skype.c:1695: error: dereferencing pointer to incomplete type
chan_skype.c:1697: error: dereferencing pointer to incomplete type
chan_skype.c: At top level:
chan_skype.c:1708: warning: 鈥榮truct ast_cli_args鈥?declared inside parameter list
chan_skype.c: In function 鈥榣ogout_user_cli鈥?
chan_skype.c:1713: error: 鈥楥LI_INIT鈥?undeclared (first use in this function)
chan_skype.c:1714: error: 鈥榮truct ast_cli_entry鈥?has no member named 鈥榗ommand鈥?
chan_skype.c:1719: error: 鈥楥LI_GENERATE鈥?undeclared (first use in this function)
chan_skype.c:1720: error: dereferencing pointer to incomplete type
chan_skype.c:1720: error: dereferencing pointer to incomplete type
chan_skype.c:1721: error: dereferencing pointer to incomplete type
chan_skype.c:1721: error: dereferencing pointer to incomplete type
chan_skype.c:1726: error: dereferencing pointer to incomplete type
chan_skype.c:1727: error: 鈥楥LI_SHOWUSAGE鈥?undeclared (first use in this function)
chan_skype.c:1730: error: dereferencing pointer to incomplete type
chan_skype.c:1731: error: dereferencing pointer to incomplete type
chan_skype.c:1731: error: dereferencing pointer to incomplete type
chan_skype.c:1732: error: 鈥楥LI_SUCCESS鈥?undeclared (first use in this function)
chan_skype.c:1736: error: dereferencing pointer to incomplete type
chan_skype.c:1736: error: dereferencing pointer to incomplete type
chan_skype.c: At top level:
chan_skype.c:1747: warning: 鈥榮truct ast_cli_args鈥?declared inside parameter list
chan_skype.c: In function 鈥榣ogin_user_cli鈥?
chan_skype.c:1752: error: 鈥楥LI_INIT鈥?undeclared (first use in this function)
chan_skype.c:1753: error: 鈥榮truct ast_cli_entry鈥?has no member named 鈥榗ommand鈥?
chan_skype.c:1758: error: 鈥楥LI_GENERATE鈥?undeclared (first use in this function)
chan_skype.c:1759: error: dereferencing pointer to incomplete type
chan_skype.c:1759: error: dereferencing pointer to incomplete type
chan_skype.c:1760: error: dereferencing pointer to incomplete type
chan_skype.c:1760: error: dereferencing pointer to incomplete type
chan_skype.c:1765: error: dereferencing pointer to incomplete type
chan_skype.c:1766: error: 鈥楥LI_SHOWUSAGE鈥?undeclared (first use in this function)
chan_skype.c:1769: error: dereferencing pointer to incomplete type
chan_skype.c:1770: error: dereferencing pointer to incomplete type
chan_skype.c:1770: error: dereferencing pointer to incomplete type
chan_skype.c:1771: error: 鈥楥LI_SUCCESS鈥?undeclared (first use in this function)
chan_skype.c:1775: error: dereferencing pointer to incomplete type
chan_skype.c:1775: error: dereferencing pointer to incomplete type
chan_skype.c: At top level:
chan_skype.c:1787: error: initializer element is not constant
chan_skype.c:1787: error: (near initialization for 鈥榗li[0].cmda[0]鈥?
chan_skype.c:1788: error: initializer element is not constant
chan_skype.c:1788: error: (near initialization for 鈥榗li[0].cmda[1]鈥?
chan_skype.c:1789: error: initializer element is not constant
chan_skype.c:1789: error: (near initialization for 鈥榗li[0].cmda[2]鈥?
chan_skype.c:1790: error: initializer element is not constant
chan_skype.c:1790: error: (near initialization for 鈥榗li[0].cmda[3]鈥?
chan_skype.c:1791: error: initializer element is not constant
chan_skype.c:1791: error: (near initialization for 鈥榗li[0].cmda[4]鈥?
chan_skype.c:1792: error: initializer element is not constant
chan_skype.c:1792: error: (near initialization for 鈥榗li[0].cmda[5]鈥?
chan_skype.c:1793: error: initializer element is not constant
chan_skype.c:1793: error: (near initialization for 鈥榗li[0].cmda[6]鈥?
chan_skype.c:1794: error: initializer element is not constant
chan_skype.c:1794: error: (near initialization for 鈥榗li[0].cmda[7]鈥?
chan_skype.c:1795: error: initializer element is not constant
chan_skype.c:1795: error: (near initialization for 鈥榗li[0].cmda[8]鈥?
chan_skype.c:1796: error: initializer element is not constant
chan_skype.c:1796: error: (near initialization for 鈥榗li[0].cmda[9]鈥?
chan_skype.c: In function 鈥榮kype_datastore_write鈥?
chan_skype.c:2090: warning: passing argument 3 of 鈥榓st_channel_datastore_find鈥?discards qualifiers from pointer target type
chan_skype.c:2091: warning: assignment makes pointer from integer without a cast
chan_skype.c: At top level:
chan_skype.c:2159: warning: initialization from incompatible pointer type
chan_skype.c:2160: warning: initialization from incompatible pointer type
chan_skype.c:2248: warning: initialization from incompatible pointer type
chan_skype.c:2249: warning: initialization from incompatible pointer type
chan_skype.c:2288: warning: initialization from incompatible pointer type
chan_skype.c:2330: warning: initialization from incompatible pointer type
chan_skype.c: In function 鈥榣oad_config鈥?
chan_skype.c:2422: error: 鈥楥ONFIG_FLAG_FILEUNCHANGED鈥?undeclared (first use in this function)
chan_skype.c:2422: warning: initialization makes integer from pointer without a cast
chan_skype.c:2424: error: too many arguments to function 鈥榓st_config_load鈥?
chan_skype.c:2430: error: 鈥楥ONFIG_STATUS_FILEUNCHANGED鈥?undeclared (first use in this function)
chan_skype.c:2430: warning: comparison of distinct pointer types lacks a cast
chan_skype.c: In function 鈥榓ccount_status_change鈥?
chan_skype.c:2873: error: storage size of 鈥榯m鈥?isn鈥檛 known
chan_skype.c:2921: warning: passing argument 1 of 鈥榓st_localtime鈥?from incompatible pointer type
chan_skype.c:2921: warning: passing argument 2 of 鈥榓st_localtime鈥?from incompatible pointer type
chan_skype.c:2922: error: request for member 鈥榯m_gmtoff鈥?in something not a structure or union
chan_skype.c: In function 鈥榣oad_module鈥?
chan_skype.c:3065: warning: passing argument 2 of 鈥榓st_devstate_prov_add鈥?from incompatible pointer type
make: *** [chan_skype.o] Error 1
scott_lvsha
Newsterisk
 
Posts: 5
Joined: Mon Oct 16, 2006 8:01 am

Postby twilson » Mon Aug 03, 2009 7:36 am

You have Asterisk 1.4 installed and are trying to compile skypeforasterisk for Asterisk 1.6.1. This won't work! Download the SFA for Asterisk 1.4.
twilson
Oldsterisk
 
Posts: 87
Joined: Mon Jun 01, 2009 9:35 am

Postby hartparr » Mon Aug 03, 2009 8:33 am

I'm having the same problem but with the correct versions.

Running AsteriskNOW 1.5 with Asterisk Version 1.4.26. Trying to build skypeforasterisk-1.4_0.9.11-x86_32 and getting...

chan_skype.c:25:22: error: asterisk.h: No such file or directory
chan_skype.c:27: error: expected declaration specifiers or â...â before string constant
chan_skype.c:27: error: expected declaration specifiers or â...â before string constant
In file included from /usr/include/stdio.h:34,
from chan_skype.c:29:
............
.......
...
chan_skype.c:3379: error: expected â{â at end of input
make: *** [chan_skype.o] Error 1
hartparr
Newsterisk
 
Posts: 12
Joined: Mon Aug 03, 2009 7:02 am

Postby twilson » Mon Aug 03, 2009 9:07 am

It is saying it can't find asterisk.h, which means that you do not have the asterisk development libraries installed--and therefore can't compile anything against asterisk. If you are using AsteriskNOW, you can install skypeforasterisk via yum. Otherwise, if you want to compile, you will need to install the asterisk14-devel package.

The AsteriskNOW package is asterisk14-skypeforasterisk
twilson
Oldsterisk
 
Posts: 87
Joined: Mon Jun 01, 2009 9:35 am


Return to Skype For Asterisk

Who is online

Users browsing this forum: No registered users and 1 guest