ONVIF C++ linkage problem
$ make TARGET_ARM7=1
arm-none-linux-gnueabi-g++ -DTARGET_ARM7 -I../../../../components/include/ -L/home/flemieux/makito2_enc_2.2.1/build/OSCAR/output/libs -lmxsessmgr -lmxtools -lmxcfgfile -lcrypt -lhailogin -lmxclock -lmxfpga -lrt -g -o wsd-probe ../../../vendors/gsoap/gsoap-2.8/gsoap/plugin/wsddapi.c ../../../vendors/gsoap/gsoap-2.8/gsoap/plugin/wsaapi.c gen/soapC.cpp gen/soapClient.cpp probe.cpp -lgsoap++ -L../../../vendors/gsoap/gsoap-2.8/gsoap -I gen -I ../../../vendors/gsoap/gsoap-2.8/gsoap/plugin -I ../../../vendors/gsoap/gsoap-2.8/gsoap
../../../vendors/gsoap/gsoap-2.8/gsoap/libgsoap++.a(libgsoap___a-stdsoap2_cpp.o): In function `soap_link':
/home/flemieux/makito2_enc_2.2.1/components/vendors/gsoap/gsoap-2.8/gsoap/stdsoap2_cpp.cpp:10751: undefined reference to `rpl_malloc'
../../../vendors/gsoap/gsoap-2.8/gsoap/libgsoap++.a(libgsoap___a-stdsoap2_cpp.o): In function `soap_malloc':
/home/flemieux/makito2_enc_2.2.1/components/vendors/gsoap/gsoap-2.8/gsoap/stdsoap2_cpp.cpp:10395: undefined reference to `rpl_malloc'
/home/flemieux/makito2_enc_2.2.1/components/vendors/gsoap/gsoap-2.8/gsoap/stdsoap2_cpp.cpp:10387: undefined reference to `rpl_malloc'
../../../vendors/gsoap/gsoap-2.8/gsoap/libgsoap++.a(libgsoap___a-stdsoap2_cpp.o): In function `soap_pointer_enter':
/home/flemieux/makito2_enc_2.2.1/components/vendors/gsoap/gsoap-2.8/gsoap/stdsoap2_cpp.cpp:9662: undefined reference to `rpl_malloc'
../../../vendors/gsoap/gsoap-2.8/gsoap/libgsoap++.a(libgsoap___a-stdsoap2_cpp.o): In function `soap_push_block':
/home/flemieux/makito2_enc_2.2.1/components/vendors/gsoap/gsoap-2.8/gsoap/stdsoap2_cpp.cpp:2902: undefined reference to `rpl_malloc'
../../../vendors/gsoap/gsoap-2.8/gsoap/libgsoap++.a(libgsoap___a-stdsoap2_cpp.o):/home/flemieux/makito2_enc_2.2.1/components/vendors/gsoap/gsoap-2.8/gsoap/stdsoap2_cpp.cpp:2870: more undefined references to `rpl_malloc' follow
collect2: ld returned 1 exit status
make: *** [wsd-probe] Error 1
Solution 1
sed -i 's/^#define malloc rpl_malloc/\/\/#define malloc rpl_malloc/' config.h
Solution 2
# see http://wiki.buici.com/wiki/Autoconf_and_RPL_MALLOC export ac_cv_func_malloc_0_nonnull=yes export ac_cv_func_realloc_0_nonnull=yes ./configure --prefix=/usr --program-prefix= --target=arm-none-linux-gnueabi --build=i686-pc-linux-gnu56 --host=arm-none-linux-gnueabi --with-openssl --with-zlib make
Recent Comments