Skip to content

Instantly share code, notes, and snippets.

@YamashitaRen
Last active January 5, 2017 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YamashitaRen/5cfb1fdcea31a7fe9a2691c12a4836b0 to your computer and use it in GitHub Desktop.
Save YamashitaRen/5cfb1fdcea31a7fe9a2691c12a4836b0 to your computer and use it in GitHub Desktop.
Crash bmdc
[quentin@CoolDesktop bmdc++]$ cmake .
-- Building without UPNP support (miniupnpc)
-- Building needed files...
Generate files...
Failed to open file '../.gresource.xml': No such file or directory
Failed to open file '../.gresource.xml': No such file or directory
End...
-- Configure options:
-- LIB_SUFFIX ...............
-- CMAKE_INSTALL_PREFIX ..... /usr/local
-- BIN_INSTALL_DIR .......... /usr/local/bin
-- INCLUDE_INSTALL_DIR ...... /usr/local/include
-- LIB_INSTALL_DIR .......... /usr/local/lib
-- LIBEXEC_INSTALL_DIR ...... /usr/local/libexec
-- SHARE_INSTALL_PREFIX ..... /usr/local/share
-- LOCALE_INSTALL_DIR ....... /usr/local/share/locale
-- SYSCONF_INSTALL_DIR ...... /usr/local/etc
-- ENABLE_CODE_COVERAGE ..... OFF
-- ENABLE_SCHEMAS_COMPILE ... ON
-- ENABLE_GTK_DOC ........... OFF
-- ENABLE_MAINTAINER_MODE ... OFF
-- VERSION_SUBSTRING ........
-- VERSION_COMMENT ..........
-- ENABLE_CANBERRA .......... OFF
-- Configuring done
-- Generating done
-- Build files have been written to: /home/quentin/build/bmdc/src/bmdc++
[quentin@CoolDesktop bmdc++]$ make -j8
[ 7%] Built target natpmp
[ 7%] Built target gmo-files
[ 64%] Built target dcpp
[ 64%] Linking CXX executable bmdc
../dcpp/libdcpp.a(Mapper_MiniUPnPc.cpp.o): In function `dcpp::Mapper_MiniUPnPc::add(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, dcpp::Mapper::Protocol, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
Mapper_MiniUPnPc.cpp:(.text+0x54): undefined reference to `UPNP_AddPortMapping'
../dcpp/libdcpp.a(Mapper_MiniUPnPc.cpp.o): In function `dcpp::Mapper_MiniUPnPc::remove(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, dcpp::Mapper::Protocol)':
Mapper_MiniUPnPc.cpp:(.text+0xa6): undefined reference to `UPNP_DeletePortMapping'
../dcpp/libdcpp.a(Mapper_MiniUPnPc.cpp.o): In function `dcpp::Mapper_MiniUPnPc::getExternalIP[abi:cxx11]()':
Mapper_MiniUPnPc.cpp:(.text+0x1eb): undefined reference to `UPNP_GetExternalIPAddress'
../dcpp/libdcpp.a(Mapper_MiniUPnPc.cpp.o): In function `dcpp::Mapper_MiniUPnPc::init() [clone .part.7]':
Mapper_MiniUPnPc.cpp:(.text+0x31b): undefined reference to `upnpDiscover'
Mapper_MiniUPnPc.cpp:(.text+0x340): undefined reference to `UPNP_GetValidIGD'
Mapper_MiniUPnPc.cpp:(.text+0x35b): undefined reference to `FreeUPNPUrls'
Mapper_MiniUPnPc.cpp:(.text+0x363): undefined reference to `freeUPNPDevlist'
collect2: error: ld returned 1 exit status
make[2]: *** [linux/CMakeFiles/bmdc.dir/build.make:1358: linux/bmdc] Error 1
make[1]: *** [CMakeFiles/Makefile2:1296: linux/CMakeFiles/bmdc.dir/all] Error 2
make: *** [Makefile:139: all] Error 2
$ cat ~/.bmdc++-s/exceptioninfo.txt
bmdc in function [0x5daa3a]
bmdc in function [0x5f99c7]
/usr/lib/libc.so.6 in function [unknown] [0x7fdbb37ea0b0]
/usr/lib/libminiupnpc.so.16 in function [unknown] [0x7fdbb65dcbc3]
/usr/lib/libminiupnpc.so.16 in function [unknown] [0x7fdbb65dcdca]
bmdc in function [unknown] [0x722ce6]
bmdc in function [unknown] [0x681b1b]
bmdc in function [unknown] [0x6dde4a]
/usr/lib/libpthread.so.0 in function [unknown] [0x7fdbb7504454]
/usr/lib/libc.so.6 in function [unknown] [0x7fdbb389f7df]
GTK Version:
3.22.5
Compiler Version:
gcc 6.2.1 20160830
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment