[Bug 210074] net/asterisk13

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jun 6 10:03:07 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210074

            Bug ID: 210074
           Summary: net/asterisk13
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: madpilot at FreeBSD.org
          Reporter: technotrance at list.ru
          Assignee: madpilot at FreeBSD.org
             Flags: maintainer-feedback?(madpilot at FreeBSD.org)

Hello!
I am trying to install asterisk from the port. At the first attempt got a
message about to need to add the parameter "MAKE_JOBS_UNSAFE=yes" to makefile.
And I did it.
At the second attempt I see here is such an error:
-------------------------
codec_ilbc.c:44:1: error: unknown type name 'WebRtc_UWord16'
 typedef WebRtc_UWord16 ilbc_bytes;
 ^
codec_ilbc.c:45:1: error: unknown type name 'WebRtc_Word16'
 typedef WebRtc_Word16  ilbc_block;
 ^
codec_ilbc.c: In function 'ilbctolin_framein':
codec_ilbc.c:127:3: warning: passing argument 1 of 'WebRtcIlbcfix_DecodeImpl'
from incompatible pointer type [enabled by default]
   iLBC_decode(tmpf, plc_mode ? f->data.ptr + x : NULL, &tmp->dec, plc_mode);
   ^
In file included from codec_ilbc.c:43:0:
/usr/local/include/ilbc.h:413:8: note: expected 'int16_t *' but argument is of
type 'ilbc_block *'
   void WebRtcIlbcfix_DecodeImpl(int16_t *decblock,
        ^
codec_ilbc.c: In function 'lintoilbc_frameout':
codec_ilbc.c:166:3: warning: passing argument 1 of 'WebRtcIlbcfix_EncodeImpl'
from incompatible pointer type [enabled by default]
   iLBC_encode((ilbc_bytes *) pvt->outbuf.BUF_TYPE, tmpf, &tmp->enc);
   ^
In file included from codec_ilbc.c:43:0:
/usr/local/include/ilbc.h:417:8: note: expected 'uint16_t *' but argument is of
type 'ilbc_bytes *'
   void WebRtcIlbcfix_EncodeImpl(uint16_t *bytes,
        ^
codec_ilbc.c:166:3: warning: passing argument 2 of 'WebRtcIlbcfix_EncodeImpl'
from incompatible pointer type [enabled by default]
   iLBC_encode((ilbc_bytes *) pvt->outbuf.BUF_TYPE, tmpf, &tmp->enc);
   ^
In file included from codec_ilbc.c:43:0:
/usr/local/include/ilbc.h:417:8: note: expected 'const int16_t *' but argument
is of type 'ilbc_block *'
   void WebRtcIlbcfix_EncodeImpl(uint16_t *bytes,
        ^
/usr/ports/net/asterisk13/work/asterisk-13.9.1/Makefile.rules:145: ошибка
выполнения рецепта для цели <<codec_ilbc.o>>
gmake[3]: *** [codec_ilbc.o] Ошибка 1
gmake[3]: выход из каталога
<</usr/ports/net/asterisk13/work/asterisk-13.9.1/codecs>>
Makefile:398: ошибка выполнения рецепта для цели <<codecs>>
gmake[2]: *** [codecs] Ошибка 2
gmake[2]: выход из каталога <</usr/ports/net/asterisk13/work/asterisk-13.9.1>>
*** Error code 1
---------------------

If I use base compiler, the error is as follows:
------------------------
codec_ilbc.c:44:9: error: unknown type name 'WebRtc_UWord16'
typedef WebRtc_UWord16 ilbc_bytes;
        ^
codec_ilbc.c:45:9: error: unknown type name 'WebRtc_Word16'
typedef WebRtc_Word16  ilbc_block;
        ^
codec_ilbc.c:127:15: warning: incompatible pointer types passing 'ilbc_block
[240]' to parameter of type 'int16_t *' (aka 'short *')
      [-Wincompatible-pointer-types]
                iLBC_decode(tmpf, plc_mode ? f->data.ptr + x : NULL, &tmp->dec,
plc_mode);
                            ^~~~
/usr/local/include/ilbc.h:413:42: note: passing argument to parameter
'decblock' here
  void WebRtcIlbcfix_DecodeImpl(int16_t *decblock,
                                         ^
codec_ilbc.c:166:15: warning: incompatible pointer types passing 'ilbc_bytes *'
(aka 'int *') to parameter of type 'uint16_t *'
      (aka 'unsigned short *') [-Wincompatible-pointer-types]
                iLBC_encode((ilbc_bytes *) pvt->outbuf.BUF_TYPE, tmpf,
&tmp->enc);
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/ilbc.h:417:43: note: passing argument to parameter 'bytes'
here
  void WebRtcIlbcfix_EncodeImpl(uint16_t *bytes,
                                          ^
codec_ilbc.c:166:52: warning: incompatible pointer types passing 'ilbc_block
[240]' to parameter of type 'const int16_t *'
      (aka 'const short *') [-Wincompatible-pointer-types]
                iLBC_encode((ilbc_bytes *) pvt->outbuf.BUF_TYPE, tmpf,
&tmp->enc);
                                                                 ^~~~
/usr/local/include/ilbc.h:418:20: note: passing argument to parameter 'block'
here
                                const int16_t *block,
                                               ^
3 warnings and 2 errors generated.
/usr/ports/net/asterisk13/work/asterisk-13.9.1/Makefile.rules:145: ошибка
выполнения рецепта для цели <<codec_ilbc.o>>
gmake[3]: *** [codec_ilbc.o] Ошибка 1
gmake[3]: выход из каталога
<</usr/ports/net/asterisk13/work/asterisk-13.9.1/codecs>>
Makefile:398: ошибка выполнения рецепта для цели <<codecs>>
gmake[2]: *** [codecs] Ошибка 2
gmake[2]: выход из каталога <</usr/ports/net/asterisk13/work/asterisk-13.9.1>>
*** Error code 1
---------------------

I tried to seek a solution independently. But to no avail.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list