佐久間です.

Asterisk に,chan_sccp というチャンネルドライバがあるのですが,こちらを FreeBSD 
上でコンパイルしようとすると,


Now compiling .... sccp_pbx.c                943 lines
sccp_pbx.c: In function 'sccp_rtp_read':
sccp_pbx.c:49: error: invalid operands to binary !=


といったエラーがでます.

どうも調べてみると,FreeBSD 特有の問題のようで,解決に至ったというケースは見つけ
られませんでした.

gcc のバージョンを疑ったのですが,以下のどちらもダメでした.


# gcc -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.4.4 [FreeBSD] 20050518


# gcc42 -v
Using built-in specs.
Target: i386-portbld-freebsd6.2
Configured with: ./..//gcc-4.2-20080702/configure --disable-nls --with-system-
zlib --with-libiconv-prefix=/usr/local --with-gmp=/usr/local 
--program-suffix=42 
--libdir=/usr/local/lib/gcc-4.2.5 --with-gxx-include-dir=/usr/local/lib/gcc-4.2.
5/include/c++/ --disable-rpath --prefix=/usr/local --mandir=/usr/local/man --
infodir=/usr/local/info/gcc42 i386-portbld-freebsd6.2
Thread model: posix
gcc version 4.2.5 20080702 (prerelease)


もし思い当たる原因などありましたら,アドバイスをお願いいたします.



=====================
Hiroaki Sakuma
 [メールアドレス保護]

メールによる返信