Error in cross compiling h235auth.cxx
Posted: Thu Oct 27, 2011 1:16 am
I just did a cvs up . today. When I tried to cross compile h323plus, it spitted out the following error messages ('H2351_Authenticator' was not declared in this scope) on h325auth.cxx file:
Code: Select all
=================== Plugin configuration ======================
prefix : /usr
exec_prefix : /usr
libdir : ${exec_prefix}/lib
Audio Codec plugin install dir : ${libdir}/opal-1.23.1/codecs/audio
Video Codec plugin install prefix: ${libdir}/opal-1.23.1/codecs/video
LID plugin install prefix : ${libdir}/opal-1.23.1/lid
FAX plugin install prefix : ${libdir}/opal-1.23.1/fax
GSM : yes (internal)
gsm-amr : yes
iLBC : yes (internal)
Speex : yes (internal, version 1.1.11.1)
LPC10 : yes
G.726 : yes
IMA_ADPCM : yes
SBC : no
H.261 : yes
H.263 : no (ffmpeg version)
H.263/H.263+ : no
H.264 : no
THEORA : no
MPEG4 Part 2 : no
CELT : no
SpanDSP FAX : no
CAPI : no
Quicknet xJACK support : yes
Voicetronics VPB support : yes
OS Type : linux-gnu
Machine Type : mipsel
If all settings are OK, type make and make install
========================================================
configure: WARNING: unrecognized options: --disable-nls, --disable-ipv6, --enable-capi, --enable-celt, --enable-default-to-full-capabilties, --enable-h264, --enable-ixj, --enable-libavcodec, --enable-libavcodec-stackalign-hack, --enable-localgsm, --enable-localilbc, --enable-localspeex, --enable-sbc, --enable-spandsp, --enable-theora, --enable-vpb, --enable-x264, --enable-x264-link-static
touch /opt/openwrt-svn-trunk/build_dir/target-mipsel_uClibc-0.9.32/h323plus/.configured_
make -j1 -C /opt/openwrt-svn-trunk/build_dir/target-mipsel_uClibc-0.9.32/h323plus DESTDIR="/opt/openwrt-svn-trunk/build_dir/target-mipsel_uClibc-0.9.32/h323plus/ipkg-install" optshared
make[3]: Entering directory `/opt/openwrt-svn-trunk/build_dir/target-mipsel_uClibc-0.9.32/h323plus'
make DEBUG= P_SHAREDLIB=1 default_target
make[4]: Entering directory `/opt/openwrt-svn-trunk/build_dir/target-mipsel_uClibc-0.9.32/h323plus'
make[4]: Leaving directory `/opt/openwrt-svn-trunk/build_dir/target-mipsel_uClibc-0.9.32/h323plus'
make -C src optshared
make[4]: Entering directory `/opt/openwrt-svn-trunk/build_dir/target-mipsel_uClibc-0.9.32/h323plus/src'
make DEBUG= P_SHAREDLIB=1 default_target
make[5]: Entering directory `/opt/openwrt-svn-trunk/build_dir/target-mipsel_uClibc-0.9.32/h323plus/src'
mipsel-openwrt-linux-uclibc-g++ -I/opt/openwrt-svn-trunk/build_dir/target-mipsel_uClibc-0.9.32/ptlib2_svn/include -DPTRACING=2 -D_REENTRANT -fexceptions -I/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/usr/include -I/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/include -I/opt/openwrt-svn-trunk/staging_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.32/usr/include -I/opt/openwrt-svn-trunk/staging_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.32/include -Wall -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fPIC -DPIC -DNDEBUG -Os -I/opt/openwrt-svn-trunk/build_dir/target-mipsel_uClibc-0.9.32/h323plus/include -fno-strict-aliasing -felide-constructors -Wreorder -I/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/usr/include -I/opt/openwrt-svn-trunk/staging_dir/target-mipsel_uClibc-0.9.32/include -I/opt/openwrt-svn-trunk/staging_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.32/usr/include -I/opt/openwrt-svn-trunk/staging_dir/toolchain-mipsel_gcc-4.6-linaro_uClibc-0.9.32/include -c h235auth.cxx -o /opt/openwrt-svn-trunk/build_dir/target-mipsel_uClibc-0.9.32/h323plus/lib/obj/h235auth.o
h235auth.cxx:1084:44: error: 'H2351_Authenticator' was not declared in this scope
h235auth.cxx:1084:63: error: template argument 1 is invalid
h235auth.cxx:1084:91: error: invalid type in declaration before '(' token
h235auth.cxx:1084:113: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
/opt/openwrt-svn-trunk/build_dir/target-mipsel_uClibc-0.9.32/ptlib2_svn/include/ptlib/sound.h:745:1: warning: 'PPlugin_PSoundChannel_WAVFile_loader' defined but not used [-Wunused-variable]
/opt/openwrt-svn-trunk/build_dir/target-mipsel_uClibc-0.9.32/ptlib2_svn/include/ptlib/videoio.h:1176:1: warning: 'PPlugin_PVideoInputDevice_FakeVideo_loader' defined but not used [-Wunused-variable]
/opt/openwrt-svn-trunk/build_dir/target-mipsel_uClibc-0.9.32/ptlib2_svn/include/ptlib/videoio.h:1179:1: warning: 'PPlugin_PVideoInputDevice_Application_loader' defined but not used [-Wunused-variable]
/opt/openwrt-svn-trunk/build_dir/target-mipsel_uClibc-0.9.32/ptlib2_svn/include/ptlib/videoio.h:1183:1: warning: 'PPlugin_PVideoInputDevice_FFMPEG_loader' defined but not used [-Wunused-variable]
/opt/openwrt-svn-trunk/build_dir/target-mipsel_uClibc-0.9.32/ptlib2_svn/include/ptlib/videoio.h:1187:1: warning: 'PPlugin_PVideoInputDevice_YUVFile_loader' defined but not used [-Wunused-variable]
h235auth.cxx:1084:65: warning: 'factoryH2351_Authenticator' defined but not used [-Wunused-variable]
/opt/openwrt-svn-trunk/build_dir/target-mipsel_uClibc-0.9.32/ptlib2_svn/include/ptlib/pluginmgr.h:175:1: warning: 'PFactoryLoader::PluginLoaderStartup_loader' defined but not used [-Wunused-variable]
make[5]: *** [/opt/openwrt-svn-trunk/build_dir/target-mipsel_uClibc-0.9.32/h323plus/lib/obj/h235auth.o] Error 1
make[5]: Leaving directory `/opt/openwrt-svn-trunk/build_dir/target-mipsel_uClibc-0.9.32/h323plus/src'
make[4]: *** [optshared] Error 2
make[4]: Leaving directory `/opt/openwrt-svn-trunk/build_dir/target-mipsel_uClibc-0.9.32/h323plus/src'
make[3]: *** [optshared] Error 2
make[3]: Leaving directory `/opt/openwrt-svn-trunk/build_dir/target-mipsel_uClibc-0.9.32/h323plus'
make[2]: *** [/opt/openwrt-svn-trunk/build_dir/target-mipsel_uClibc-0.9.32/h323plus/.built] Error 2
make[2]: Leaving directory `/opt/OpenWRT/feeds/packages/libs/h323plus'
make[1]: *** [package/feeds/local/h323plus/compile] Error 2
make[1]: Leaving directory `/opt/openwrt-svn-trunk'
make: *** [package/h323plus/compile] Error 2