Compiler.h Asterisk Error
Sudah lama ga update blog … sibuk atau sok sibuk
. Dapat tugas baru ganti server voip, wah kesempatan upgrade nich. Setelah donwload Asterisk 1.4.19 dan FreePBX 2.4.0 mulai dech install n install.
Setelah selesai semua coba dial pake Xlite, walah ternyata belom bisa. Aku liat2 di lognya asterisk tidak ada error. Hm hm apanya yang salah ya …. Akhirnya aku putuskan untuk nurunin versi Asterisknya ke versi 1.2.1 dan pass compile tiba2 muncul error seperti dibawah ini:
chan_phone.c:41:29: error: linux/compiler.h: No such file or directory
make[1]: *** [chan_phone.o] Error 1
Setelah coba masih belom bisa aku coba buka file chan_phone.c dan edit file tersebut dibaris
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
# include
#endif
Ubah menjadi:
#ifdef HAVE_LINUX_COMPILER_H
#include
#endif
Sekarang coba compile lagi … he he ternyata berhasil dan sukses. Ubahan script tersebut aku temukan di versi 1.4.19, OK selamat mencoba!
Comments
Leave a Reply



