RangeNetworks / OpenBTS-UMTS

3G UMTS Data Radio Access Network Node
GNU Affero General Public License v3.0
296 stars 196 forks source link

need help ? boolean error #28

Open muratoznn opened 5 years ago

muratoznn commented 5 years ago

I take this error I tried git submodule init git submodule update ./autogen.sh ./configure make But it has same error

BOOLEAN.c: In function ‘BOOLEAN_encode_xer’: BOOLEAN.c:192:10: error: ‘_ASN_ENCODE_FAILED’ undeclared (first use in this function); did you mean ‘ASNENCODE_FAILED’? if(!st) _ASN_ENCODE_FAILED; ^~~~~~ ASNENCODE_FAILED BOOLEAN.c:192:10: note: each undeclared identifier is reported only once for each function it appears in BOOLEAN.c: In function ‘BOOLEAN_decode_uper’: BOOLEAN.c:251:11: error: ‘_ASN_DECODE_FAILED’ undeclared (first use in this function); did you mean ‘ASNDECODE_FAILED’? if(!st) _ASN_DECODE_FAILED; ^~~~~~ ASNDECODE_FAILED BOOLEAN.c:260:20: error: ‘_ASN_DECODE_STARVED’ undeclared (first use in this function); did you mean ‘ASNDECODE_STARVED’? case -1: default: _ASN_DECODE_STARVED; ^~~~~~~ ASNDECODE_STARVED BOOLEAN.c: In function ‘BOOLEAN_encode_uper’: BOOLEAN.c:279:10: error: ‘_ASN_ENCODE_FAILED’ undeclared (first use in this function); did you mean ‘ASNENCODE_FAILED’? if(!st) _ASN_ENCODE_FAILED; ^~~~~~ ASNENCODE_FAILED make[3]: [makefile:4846: o/BOOLEAN.o] Error 1 make[3]: Leaving directory '/root/OpenBTS-UMTS/ASN' make[2]: [makefile:4803: all] Error 2 make[2]: Leaving directory '/root/OpenBTS-UMTS/ASN' make[1]: [Makefile:550: all-recursive] Error 1 make[1]: Leaving directory '/root/OpenBTS-UMTS' make: [Makefile:481: all] Error 2

muratoznn commented 5 years ago

please help nobody know this error ?

maceyldn commented 5 years ago

Using the wrong version of the asn compiler.... compile/install the one included in the repo

tranzmatt commented 4 years ago

I tried that, but then get a slurry of complaints:

../CommonLibs/ScalarTypes.h:58:1: note: in expansion of macro ‘_DECLARE_SCALAR_TYPE’ _DECLARE_SCALAR_TYPE(Bool_i, Bool_z, bool) ^~~~~~~~ In file included from ../ASN/o/asn_SEQUENCE_OF.h:8:0, from ../ASN/o/IMSI-GSM-MAP.h:16, from ../ASN/o/InitialUE-Identity.h:15, from URRCMessages.h:23, from URRCMessages.cpp:16: ../ASN/o/TFC-SubsetList.h: At global scope: ../ASN/o/TFC-SubsetList.h:38:23: error: redefinition of ‘struct ASN::TFC_SubsetList::::TFC_SubsetListMember’ A_SEQUENCE_OF(struct TFC_SubsetList__Member { ^ ../ASN/o/asn_SET_OF.h:17:16: note: in definition of macro ‘A_SET_OF’ void (free)(type ); \ ^~~~ ../ASN/o/TFC-SubsetList.h:38:2: note: in expansion of macro ‘A_SEQUENCE_OF’ A_SEQUENCE_OF(struct TFC_SubsetListMember { ^~~~~ ../ASN/o/TFC-SubsetList.h:38:23: note: previous definition of ‘struct ASN::TFC_SubsetList::::TFC_SubsetList__Member’ A_SEQUENCE_OF(struct TFC_SubsetList__Member {