[Asterisk-Users] Can't build cdr_addon_mysql.

Marcel van Kaam, Fonetica marcel at fonetica.be
Wed Jun 29 22:49:22 MST 2005


I had the same problem with installing addons. I checked out in the file
cdr_addons_mysql.c what the location of the asterisk.h must be and changed
the cdr_addons_mysql.c to the location of the asterisk.h file.

After this it worked. Also to be sure do: locate asterisk.h to check or you
have the file on your system.

Marcel 
 
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Chris Mason
(Lists)
Sent: donderdag 30 juni 2005 7:29
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [Asterisk-Users] Can't build cdr_addon_mysql.

I have been unable to build cdr_addon_mysql from asterisk-addons-1.09. 
Could it be a mysql4 issue

[root at server9 asterisk-addons-1.0.9]# make cdr_addon_mysql
cc -fPIC -I../asterisk -D_GNU_SOURCE  -I/usr/include/mysql     -c -o 
cdr_addon_mysql.o cdr_addon_mysql.c
cdr_addon_mysql.c:24:22: asterisk.h: No such file or directory

I have MySQL devel

# ls /usr/include/mysql/
total 404
drwxr-xr-x    2 root     root         4096 Jun 30 00:21 .
drwxr-xr-x   67 root     root         8192 Jun 30 00:21 ..
-rw-r--r--    1 root     root         4544 May 13 06:14 chardefs.h
-rw-r--r--    1 root     root         3428 May 13 06:14 errmsg.h
-rw-r--r--    1 root     root         9472 May 13 06:14 history.h
-rw-r--r--    1 root     root         6774 May 13 06:14 keycache.h
-rw-r--r--    1 root     root         3529 May 13 06:14 keymaps.h
-rw-r--r--    1 root     root        17851 May 13 06:14 m_ctype.h
-rw-r--r--    1 root     root         8085 May 13 06:14 m_string.h
-rw-r--r--    1 root     root         1858 May 13 06:14 my_alloc.h
-rw-r--r--    1 root     root        28423 May 13 06:14 my_config.h
-rw-r--r--    1 root     root         3463 May 13 06:14 my_dbug.h
-rw-r--r--    1 root     root         3509 May 13 06:14 my_dir.h
-rw-r--r--    1 root     root         3000 May 13 06:14 my_getopt.h
-rw-r--r--    1 root     root        38891 May 13 06:14 my_global.h
-rw-r--r--    1 root     root         1510 May 13 06:14 my_list.h
-rw-r--r--    1 root     root         3588 May 13 06:14 my_net.h
-rw-r--r--    1 root     root         1245 May 13 06:14 my_no_pthread.h
-rw-r--r--    1 root     root        24524 May 13 06:14 my_pthread.h
-rw-r--r--    1 root     root         1784 May 13 06:14 my_semaphore.h
-rw-r--r--    1 root     root        15028 May 13 06:14 mysql_com.h
-rw-r--r--    1 root     root        11315 May 13 06:14 mysqld_error.h
-rw-r--r--    1 root     root         1241 May 13 06:14 mysql_embed.h
-rw-r--r--    1 root     root        27544 May 13 06:14 mysql.h
-rw-r--r--    1 root     root         2184 May 13 06:14 mysql_time.h
-rw-r--r--    1 root     root          821 May 13 06:14 mysql_version.h
-rw-r--r--    1 root     root        32097 May 13 06:14 my_sys.h
-rw-r--r--    1 root     root         2007 May 13 06:14 my_xml.h
-rw-r--r--    1 root     root         5841 May 13 06:14 raid.h
-rw-r--r--    1 root     root        32081 May 13 06:14 readline.h
-rw-r--r--    1 root     root         3751 May 13 06:14 rlmbutil.h
-rw-r--r--    1 root     root         9687 May 13 06:14 rlprivate.h
-rw-r--r--    1 root     root         1385 May 13 06:14 rlshell.h
-rw-r--r--    1 root     root         2789 May 13 06:14 rltypedefs.h
-rw-r--r--    1 root     root         1751 May 13 06:14 sql_common.h
-rw-r--r--    1 root     root         6401 May 13 06:14 sql_state.h
-rw-r--r--    1 root     root         1055 May 13 06:14 sslopt-case.h
-rw-r--r--    1 root     root         1883 May 13 06:14 sslopt-longopts.h
-rw-r--r--    1 root     root          970 May 13 06:14 sslopt-vars.h
-rw-r--r--    1 root     root         3022 May 13 06:14 tilde.h
-rw-r--r--    1 root     root         1265 May 13 06:14 typelib.h
-rw-r--r--    1 root     root         1439 May 13 06:14 xmalloc.h

-- 
Chris Mason
NetConcepts
(264) 497-5670 Fax: (264) 497-8463
Int:  (305) 704-7249 Fax: (815)301-9759 
Cell: 264-235-5670
Yahoo IM: netconcepts_anguilla at yahoo.com 

_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list