I have compiled veins, vanetza, inet and artery but I'm not able to launch the Artery example. Under the Artery root directory, I did the following:
cd build make run_example
The following error happens:
<!> Error: Cannot load library '/home/renault/artery/build/src/artery/envmod/libartery_envmod.so': /usr/local/lib/libvanetza_security.so: undefined symbol: _ZN8CryptoPP10RandomPool34GenerateIntoBufferedTransformationERNS_22BufferedTransformationERKSsy
End.
scenarios/artery/CMakeFiles/run_example.dir/build.make:57: recipe for target 'scenarios/artery/CMakeFiles/run_example' failed
make[3]: *** [scenarios/artery/CMakeFiles/run_example] Error 1
CMakeFiles/Makefile2:644: recipe for target 'scenarios/artery/CMakeFiles/run_example.dir/all' failed
make[2]: *** [scenarios/artery/CMakeFiles/run_example.dir/all] Error 2
CMakeFiles/Makefile2:651: recipe for target 'scenarios/artery/CMakeFiles/run_example.dir/rule' failed
make[1]: *** [scenarios/artery/CMakeFiles/run_example.dir/rule] Error 2
Makefile:274: recipe for target 'run_example' failed
make: *** [run_example] Error 2
I'm on ubuntu with crypto++ 5.6.1 installed
Thanks
The error message tells you that the given symbol could not be found. Using c++filt, you can find out that the symbol is the following:
CryptoPP::RandomPool::GenerateIntoBufferedTransformation(CryptoPP::BufferedTransformation&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long long)
This could indicate that you declared this method somewhere - probably in a header file - but did not provide an implementation for it (in the corresponding .cc file).
See also:
opp_run error on omnetpp IDE
What is an undefined reference/unresolved external symbol error and how do I fix it?
Related
I am using Omnet++ 5.6.2 and when I import veins-5.2 and inet-4.2.2 and build veins_inet it gives me the following errors:
../out/clang-debug/src/veins_inet/VeinsInetManager.o:(.rdata+0x2610): undefined reference to virtual thunk to veins::TraCIScenarioManagerLaunchd::~TraCIScenarioManagerLaunchd()
../out/clang-debug/src/veins_inet/VeinsInetManager.o:(.rdata+0x2618): undefined reference to virtual thunk to veins::TraCIScenarioManagerLaunchd::~TraCIScenarioManagerLaunchd()
../out/clang-debug/src/veins_inet/VeinsInetManagerForker.o:(.rdata+0x2560): undefined reference to virtual thunk to veins::TraCIScenarioManagerForker::~TraCIScenarioManagerForker()
../out/clang-debug/src/veins_inet/VeinsInetManagerForker.o:(.rdata+0x2568): undefined reference to virtual thunk to veins::TraCIScenarioManagerForker::~TraCIScenarioManagerForker()
clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [Makefile:166: ../out/clang-debug/src/libveins_inet_dbg.dll] Error 1
make[1]: Leaving directory /g/omnetpp-5.6.2/sampl/veins_inet/src
make: *** [Makefile:36: all] Error 2
"make MODE=debug all" terminated with exit code 2. Build might be incomplete.
can anyone help me please I am stuck with this error.
I am trying to install fblualib from this link.
When I run ./install_all.sh inside fblualib, I have errors as
+ echo Building folly
Building folly
+ echo
+ cd /tmp/fblualib-build.zofU4g/folly/folly
+ autoreconf -ivf
autoreconf: 'configure.ac' or 'configure.in' is required
According to last discussion here, there is a discussion as "autotools based build system has been removed from Folly in favor of CMake, so you'll need to build Folly with CMake rather than autotools." so I go to folly folder
/tmp/fblualib-build.zofU4g/folly/build and try to build using `cmake`.
Then I have errors as
[ 36%] Building CXX object CMakeFiles/folly_base.dir/folly/detail/ThreadLocalDetail.cpp.o
In file included from /tmp/fblualib-build.zofU4g/folly/folly/detail/ThreadLocalDetail.h:33:0,
from /tmp/fblualib-build.zofU4g/folly/folly/detail/ThreadLocalDetail.cpp:16:
/tmp/fblualib-build.zofU4g/folly/folly/SharedMutex.h: In static member function ‘static void folly::threadlocal_detail::StaticMetaBase::onThreadExit(void*)’:
/tmp/fblualib-build.zofU4g/folly/folly/SharedMutex.h:457:33: error: ‘*((void*)& rlock +10)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
!tryUnlockSharedDeferred(token.slot_)) {
^
/tmp/fblualib-build.zofU4g/folly/folly/detail/ThreadLocalDetail.cpp:169:31: note: ‘*((void*)& rlock +10)’ was declared here
SharedMutex::ReadHolder rlock(nullptr);
^
cc1plus: all warnings being treated as errors
CMakeFiles/folly_base.dir/build.make:1886: recipe for target 'CMakeFiles/folly_base.dir/folly/detail/ThreadLocalDetail.cpp.o' failed
make[2]: *** [CMakeFiles/folly_base.dir/folly/detail/ThreadLocalDetail.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/folly_base.dir/all' failed
make[1]: *** [CMakeFiles/folly_base.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
The error is happening in SharedMutex.h, what could be worng>
Try to build firefox from source codes without some changes. Just downloaded the sources, unpacked and try. I run bootstrap.py and it install all need. After that i run "./mach build". Building run 66 mins, after that says:
66:27.53 NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
66:27.53 "_ures_getByIndex_52", referenced from:
66:27.53 icu_52::SimpleDateFormat::construct(icu_52::DateFormat::EStyle, icu_52::DateFormat::EStyle, icu_52::Locale const&, UErrorCode&) in libjs_static.a(smpdtfmt.o)
66:27.53 icu_52::DecimalFormatSymbols::initialize(icu_52::Locale const&, UErrorCode&, signed char) in libjs_static.a(dcfmtsym.o)
66:27.53 icu_52::openOlsonResource(icu_52::UnicodeString const&, UResourceBundle&, UErrorCode&) in libjs_static.a(timezone.o)
66:27.53 icu_52::TimeZone::dereferOlsonLink(icu_52::UnicodeString const&) in libjs_static.a(timezone.o)
66:27.53 _ucurr_forLocale_52 in libjs_static.a(ucurr.o)
66:27.53 _uprv_parseCurrency_52 in libjs_static.a(ucurr.o)
66:27.53 "_u_cleanup_52", referenced from:
66:27.53 JS_ShutDown() in libjs_static.a(jsapi.o)
66:27.53 ld: symbol(s) not found for architecture x86_64
66:27.53 clang: error: linker command failed with exit code 1 (use -v to see invocation)
66:27.53 gmake[5]: *** [jsapi-tests] Ошибка 1
66:27.53 gmake[4]: *** [js/src/jsapi-tests/target] Ошибка 2
66:27.53 gmake[3]: *** [compile] Ошибка 2
66:27.53 gmake[2]: *** [default] Ошибка 2
66:27.53 gmake[1]: *** [realbuild] Ошибка 2
66:27.53 gmake: *** [build] Ошибка 2
66:27.53 301 compiler warnings present.
66:27.61 /usr/bin/terminal-notifier -title Mozilla Build System -group mozbuild -message Build complete
I seen string "ld: symbol(s) not found for architecture x86_64" and go to build 32bit variant. Create .mozconfig:
CC="clang -arch i386"
CXX="clang++ -arch i386"
ac_add_options --target=i386-apple-darwin9.2.0
ac_add_options --enable-macos-target=10.5
HOST_CC="clang-4.2"
HOST_CXX="clang++-4.2"
RANLIB=ranlib
AR=ar
AS=$CC
LD=ld
STRIP="strip -x -S"
CROSS_COMPILE=1
And it build 33mins and show error:
33:13.84 clang: warning: unknown warning option '-Wno-tautological-constant-out-of-range-compare'; did you mean '-Wno-tautological-compare'?
33:13.86 warning: unknown warning option '-Wno-tautological-constant-out-of-range-compare'; did you mean '-Wno-tautological-compare'? [-Wunknown-warning-option]
33:13.86 1 warning generated.
33:13.93 1 warning generated.
33:14.08 1 warning generated.
33:14.29 1 warning generated.
33:14.30 libgfx_cairo_cairo_src.a.desc
33:14.38 gmake[3]: *** [compile] Ошибка 2
33:14.38 gmake[2]: *** [default] Ошибка 2
33:14.38 gmake[1]: *** [realbuild] Ошибка 2
33:14.38 gmake: *** [build] Ошибка 2
33:14.39 94 compiler warnings present.
33:14.42 /usr/bin/terminal-notifier -title Mozilla Build System -group mozbuild -message Build complete
Tell me please, what can help me for build FF?
P.S. If i try build last sources from git i this result too.
This is a bit of a strange answer, but I just started poking around in the firefox source and I notice this exact same build failure whenever I do a clobber build. If I proceed to ./mach build again without making any changes then the second build succeeds... shrug hope this helps
i've been working on this for days, and I really don't have any clue to what's going on
I'm trying to install gearman on windows and followed EXACTLY what's on this link:
http://www.phpvs.net/2010/11/30/installing-gearman-and-gearmand-on-windows-with-cygwin/
However, no luck. I've installed libevent and i'm on installation of gearman:
I've only managed to execute ./configure on cygwin.
After that, using make :
make -j2 all-am
make[1]: Entering directory '/cygdrive/c/gearman'
CXX libgearman/libgearman_libgearman_la-error.lo
libgearman/error.cc: In function 'gearman_return_t gearman_universal_set_perror(gearman_universal_st&, gearman_return_t, int, const char*, const char*, const char*, ...)':
libgearman/error.cc:218:83: error: 'strerror_r' was not declared in this scope
errmsg_ptr= strerror_r(universal._error.system_error(), errmsg, sizeof(errmsg));
^
Makefile:6247: recipe for target 'libgearman/libgearman_libgearman_la-error.lo' failed
make[1]: *** [libgearman/libgearman_libgearman_la-error.lo] Error 1
make[1]: Leaving directory '/cygdrive/c/gearman'
Makefile:3050: recipe for target 'all' failed
make: *** [all] Error 2
This comes on, and I don't know what I've done wrong. I need help on this. Thanks!
I'm having a problem installing a driver for my Silabs USB to UART bridge.
I download my driver from here:
http://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx
I'm running Ubuntu 12.04 32bit Kernel Linux 3.5.0-27-generic
The instructions say that make (your cp2010x driver)
cp cp2010x.ko to /libmodules/<kernel>/kernel/driver/usb/serial
insmod /libmodules/<kernel>/kernel/driver/usb/serial/usbserial.ko
insmod xp2010x.ko
However, I get this error when I try to call make:
root#grace:/home/admin/Desktop/usb# make
make -C /lib/modules/3.5.0-27-generic/build M=/home/admin/Desktop/usb modules
make[1]: Entering directory `/usr/src/linux-headers-3.5.0-27-generic'
CC [M] /home/admin/Desktop/usb/cp210x.o
/home/admin/Desktop/usb/cp210x.c:164:12: error: ‘usb_serial_probe’ undeclared here (not in a function)
/home/admin/Desktop/usb/cp210x.c:165:16: error: ‘usb_serial_disconnect’ undeclared here (not in a function)
/home/admin/Desktop/usb/cp210x.c: In function ‘cp210x_init’:
/home/admin/Desktop/usb/cp210x.c:989:2: error: implicit declaration of function ‘usb_serial_register’ [-Werror=implicit-function-declaration]
/home/admin/Desktop/usb/cp210x.c:996:3: error: implicit declaration of function ‘usb_serial_deregister’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[2]: *** [/home/admin/Desktop/usb/cp210x.o] Error 1
make[1]: *** [_module_/home/admin/Desktop/usb] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.5.0-27-generic'
make: *** [all] Error 2
I am new to Linux. I've Googled the error a lot but I can't find any answers that works.
According to this forum post, those drivers have actually been a part of the kernel since March 2009. You can see the file at drivers/usb/serial/cp210x.c (here is a link to the file in the latest stable version of the kernel).