OMV 에서 텔레그램을 설치하는 과정 중, 
make 했을 때, 이런 에러메시지가 나오는 경우.
------------------------------------------------------------------------------------------
telegram-cli: tgl/mtproto-utils.c:101: BN2ull: Assertion `0' failed.
------------------------------------------------------------------------------------------
텔레그램을 설치한 tg 디렉토리에서
vi tgl/mtproto-utils.c
------------------------------------------------------------------------------------------------------
static unsigned long long BN2ull (TGLC_bn *b) {
  if (sizeof (unsigned long) == 8) {
    return TGLC_bn_get_word (b);
  } else if (sizeof (unsigned long long) == 8) {
    //assert (0); // As long as nobody ever uses this code, assume it is broken.
    unsigned long long tmp;
    /* Here be dragons, but it should be okay due to be64toh */
    TGLC_bn_bn2bin (b, (unsigned char *) &tmp);
    return be64toh (tmp);
  } else {
    assert (0);
  }
}
------------------------------------------------------------------------------------------------------
BN2ull 함수를 찾아가서 
assert (0); 부분을 주석처리 해준다.
그리고나서 
make
해주면 잘 될 것이다.
해결.
끝.
 
댓글 없음:
댓글 쓰기