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
Hi Steve,
On Tue, May 24, 2011 at 05:23:09PM +0100, Steve Mortimer wrote:
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)
sorry for the obvious hint, but can you please make sure you have the current git head of both versions and do a full make clean && autoreconf -fi && ./configure && make install for libosmocore and make clean && autoreconf -fi && ./configure && make for openbsc?
it may be that you still have some old code somewhere causing this problem.
I'm sorry for the fall-out, but in order to not duplicate code on the BTS side, I had to move quite a bit of stuff into libosmogsm recently, and will probably continue to do so over the next days or so.
Regards, Harald
On 24/05/11 18:17, Harald Welte wrote:
I'm sorry for the fall-out, but in order to not duplicate code on the BTS side, I had to move quite a bit of stuff into libosmogsm recently, and will probably continue to do so over the next days or so.
Regards, Harald
Thanks Harold,
I pulled down the git head for both again and OpenBSC now builds fine.
I would like to build an older version of OpenBSC (from around December) I have but are you saying this is not possible or is there a way of pulling down a matching version of libosmocore?
Many thanks, Steve
Hi Steve,
On Wed, May 25, 2011 at 10:06:44AM +0100, Steve Mortimer wrote:
I would like to build an older version of OpenBSC (from around December) I have but are you saying this is not possible or is there a way of pulling down a matching version of libosmocore?
well, i'd suggest to check out a version with the same date/timestamp.