RangeNetworks / OpenBTS-UMTS

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

error: _ASN_ENCODE_FAILED undeclared #27

Closed sgoudelis closed 6 years ago

sgoudelis commented 6 years ago

Hello,

I am seeing this when doing "make":

make libRRCASN.la       # Recur to re-load the newly created .c files
make[3]: Entering directory '/home/sgoudelis/projects/OpenBTS-UMTS/ASN'
cd o && libtool --mode=compile --tag=CC cc -O3 -g -w -I. -o BOOLEAN.o -c BOOLEAN.c
libtool: compile:  cc -O3 -g -w -I. -c BOOLEAN.c  -fPIC -DPIC -o .libs/BOOLEAN.o
BOOLEAN.c: In function ‘BOOLEAN_encode_xer’:
BOOLEAN.c:192:10: error: ‘error: ‘_ASN_ENCODE_FAILED’ undeclared’ undeclared (first use in this function); did you mean ‘ASN__ENCODE_FAILED’?
  if(!st) _ASN_ENCODE_FAILED;
          ^~~~~~~~~~~~~~~~~~
          ASN__ENCODE_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 ‘ASN__DECODE_FAILED’?
   if(!st) _ASN_DECODE_FAILED;
           ^~~~~~~~~~~~~~~~~~
           ASN__DECODE_FAILED
BOOLEAN.c:260:20: error: ‘_ASN_DECODE_STARVED’ undeclared (first use in this function); did you mean ‘ASN__DECODE_STARVED’?
  case -1: default: _ASN_DECODE_STARVED;
                    ^~~~~~~~~~~~~~~~~~~
                    ASN__DECODE_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 ‘ASN__ENCODE_FAILED’?
  if(!st) _ASN_ENCODE_FAILED;
          ^~~~~~~~~~~~~~~~~~
          ASN__ENCODE_FAILED
makefile:4846: recipe for target 'o/BOOLEAN.o' failed
make[3]: *** [o/BOOLEAN.o] Error 1
make[3]: Leaving directory '/home/sgoudelis/projects/OpenBTS-UMTS/ASN'
makefile:4803: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/sgoudelis/projects/OpenBTS-UMTS/ASN'
Makefile:550: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/sgoudelis/projects/OpenBTS-UMTS'
Makefile:481: recipe for target 'all' failed
make: *** [all] Error 2

Does anyone have an idea why this is caused ?

sgoudelis commented 6 years ago

Its the ans1c version I am using, isn't ?

sgoudelis commented 6 years ago

Yeap that was it.