Hi,
I have followed the instructions on building openBSC and have used the git versions of both libosmocore and openbsc. libosmocore builds fine but openbsc gives the following error when running make (after autoreconf -i && ./configure)
Making all in libcommon make[3]: Entering directory `/home/user/Desktop/openbsc_git/openbsc/src/libcommon' CC common_vty.o In file included from common_vty.c:27: ../../include/openbsc/gsm_data.h:26: error: nested redefinition of ‘enum gsm_phys_chan_config’ ../../include/openbsc/gsm_data.h:26: error: redeclaration of ‘enum gsm_phys_chan_config’ ../../include/openbsc/gsm_data.h:27: error: redeclaration of enumerator ‘GSM_PCHAN_NONE’ /usr/local/include/osmocom/gsm/gsm_utils.h:119: note: previous definition of ‘GSM_PCHAN_NONE’ was here ../../include/openbsc/gsm_data.h:28: error: redeclaration of enumerator ‘GSM_PCHAN_CCCH’ /usr/local/include/osmocom/gsm/gsm_utils.h:120: note: previous definition of ‘GSM_PCHAN_CCCH’ was here ../../include/openbsc/gsm_data.h:29: error: redeclaration of enumerator ‘GSM_PCHAN_CCCH_SDCCH4’ /usr/local/include/osmocom/gsm/gsm_utils.h:121: note: previous definition of ‘GSM_PCHAN_CCCH_SDCCH4’ was here ../../include/openbsc/gsm_data.h:30: error: redeclaration of enumerator ‘GSM_PCHAN_TCH_F’ /usr/local/include/osmocom/gsm/gsm_utils.h:122: note: previous definition of ‘GSM_PCHAN_TCH_F’ was here ../../include/openbsc/gsm_data.h:31: error: redeclaration of enumerator ‘GSM_PCHAN_TCH_H’ /usr/local/include/osmocom/gsm/gsm_utils.h:123: note: previous definition of ‘GSM_PCHAN_TCH_H’ was here ../../include/openbsc/gsm_data.h:32: error: redeclaration of enumerator ‘GSM_PCHAN_SDCCH8_SACCH8C’ /usr/local/include/osmocom/gsm/gsm_utils.h:124: note: previous definition of ‘GSM_PCHAN_SDCCH8_SACCH8C’ was here ../../include/openbsc/gsm_data.h:33: error: redeclaration of enumerator ‘GSM_PCHAN_PDCH’ /usr/local/include/osmocom/gsm/gsm_utils.h:125: note: previous definition of ‘GSM_PCHAN_PDCH’ was here ../../include/openbsc/gsm_data.h:34: error: redeclaration of enumerator ‘GSM_PCHAN_TCH_F_PDCH’ /usr/local/include/osmocom/gsm/gsm_utils.h:126: note: previous definition of ‘GSM_PCHAN_TCH_F_PDCH’ was here ../../include/openbsc/gsm_data.h:35: error: redeclaration of enumerator ‘GSM_PCHAN_UNKNOWN’ /usr/local/include/osmocom/gsm/gsm_utils.h:127: note: previous definition of ‘GSM_PCHAN_UNKNOWN’ was here ../../include/openbsc/gsm_data.h:37: error: redeclaration of enumerator ‘_GSM_PCHAN_MAX’ /usr/local/include/osmocom/gsm/gsm_utils.h:129: note: previous definition of ‘_GSM_PCHAN_MAX’ was here ../../include/openbsc/gsm_data.h:39: error: nested redefinition of ‘enum gsm_chan_t’ ../../include/openbsc/gsm_data.h:39: error: redeclaration of ‘enum gsm_chan_t’ ../../include/openbsc/gsm_data.h:40: error: redeclaration of enumerator ‘GSM_LCHAN_NONE’ /usr/local/include/osmocom/gsm/gsm_utils.h:133: note: previous definition of ‘GSM_LCHAN_NONE’ was here ../../include/openbsc/gsm_data.h:41: error: redeclaration of enumerator ‘GSM_LCHAN_SDCCH’ /usr/local/include/osmocom/gsm/gsm_utils.h:134: note: previous definition of ‘GSM_LCHAN_SDCCH’ was here ../../include/openbsc/gsm_data.h:42: error: redeclaration of enumerator ‘GSM_LCHAN_TCH_F’ /usr/local/include/osmocom/gsm/gsm_utils.h:135: note: previous definition of ‘GSM_LCHAN_TCH_F’ was here ../../include/openbsc/gsm_data.h:43: error: redeclaration of enumerator ‘GSM_LCHAN_TCH_H’ /usr/local/include/osmocom/gsm/gsm_utils.h:136: note: previous definition of ‘GSM_LCHAN_TCH_H’ was here ../../include/openbsc/gsm_data.h:44: error: redeclaration of enumerator ‘GSM_LCHAN_UNKNOWN’ /usr/local/include/osmocom/gsm/gsm_utils.h:137: note: previous definition of ‘GSM_LCHAN_UNKNOWN’ was here ../../include/openbsc/gsm_data.h:45: error: redeclaration of enumerator ‘GSM_LCHAN_CCCH’ /usr/local/include/osmocom/gsm/gsm_utils.h:138: note: previous definition of ‘GSM_LCHAN_CCCH’ was here ../../include/openbsc/gsm_data.h:47: error: redeclaration of enumerator ‘_GSM_LCHAN_MAX’ /usr/local/include/osmocom/gsm/gsm_utils.h:140: note: previous definition of ‘_GSM_LCHAN_MAX’ was here make[3]: *** [common_vty.o] Error 1 make[3]: Leaving directory `/home/user/openbsc_git/openbsc/src/libcommon' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/user/openbsc_git/openbsc/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/user/openbsc_git/openbsc' make: *** [all] Error 2
Any ideas?
Steve