Skip to content

Instantly share code, notes, and snippets.

@adricnet
Created October 16, 2015 00:54
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 adricnet/d865082f4ef0407d8636 to your computer and use it in GitHub Desktop.
Save adricnet/d865082f4ef0407d8636 to your computer and use it in GitHub Desktop.
something harshing pmem static build
make all-am
make[1]: Entering directory `/home/wdcforensics/rekall/tools/pmem'
/bin/bash ./libtool --tag=CXX --mode=link g++ -std=c++11 -g -Wall -O0 -g -O2 -all-static -o linpmem linpmem-pmem_imager.o linpmem-linux_pmem.o -laff4 -lglog -lglog
libtool: link: g++ -std=c++11 -g -Wall -O0 -g -O2 -static -o linpmem linpmem-pmem_imager.o linpmem-linux_pmem.o -laff4 -lglog
//usr/local/lib/libaff4.a(data_store.o): In function `RaptorParser::NewRaptorParser(DataStore*)':
/home/wdcforensics/aff4/src/data_store.cc:263: undefined reference to `raptor_new_world_internal'
/home/wdcforensics/aff4/src/data_store.cc:265: undefined reference to `raptor_new_parser'
/home/wdcforensics/aff4/src/data_store.cc:268: undefined reference to `raptor_parser_set_statement_handler'
/home/wdcforensics/aff4/src/data_store.cc:271: undefined reference to `raptor_parser_set_option'
/home/wdcforensics/aff4/src/data_store.cc:274: undefined reference to `raptor_new_uri'
/home/wdcforensics/aff4/src/data_store.cc:276: undefined reference to `raptor_parser_parse_start'
//usr/local/lib/libaff4.a(data_store.o): In function `~RaptorParser':
/home/wdcforensics/aff4/src/data_store.cc:298: undefined reference to `raptor_parser_parse_chunk'
/home/wdcforensics/aff4/src/data_store.cc:300: undefined reference to `raptor_free_parser'
/home/wdcforensics/aff4/src/data_store.cc:301: undefined reference to `raptor_free_world'
//usr/local/lib/libaff4.a(data_store.o): In function `RaptorParser::NewRaptorParser(DataStore*)':
/home/wdcforensics/aff4/src/data_store.cc:281: undefined reference to `raptor_free_uri'
//usr/local/lib/libaff4.a(data_store.o): In function `RaptorParser::Parse(std::string)':
/home/wdcforensics/aff4/src/data_store.cc:289: undefined reference to `raptor_parser_parse_chunk'
//usr/local/lib/libaff4.a(data_store.o): In function `~RaptorParser':
/home/wdcforensics/aff4/src/data_store.cc:298: undefined reference to `raptor_parser_parse_chunk'
/home/wdcforensics/aff4/src/data_store.cc:300: undefined reference to `raptor_free_parser'
/home/wdcforensics/aff4/src/data_store.cc:301: undefined reference to `raptor_free_world'
//usr/local/lib/libaff4.a(data_store.o): In function `statement_handler':
/home/wdcforensics/aff4/src/data_store.cc:233: undefined reference to `raptor_uri_to_string'
/home/wdcforensics/aff4/src/data_store.cc:236: undefined reference to `raptor_uri_to_string'
/home/wdcforensics/aff4/src/data_store.cc:245: undefined reference to `raptor_free_memory'
/home/wdcforensics/aff4/src/data_store.cc:246: undefined reference to `raptor_free_memory'
//usr/local/lib/libaff4.a(data_store.o): In function `RDFValueFromRaptorTerm':
/home/wdcforensics/aff4/src/data_store.cc:191: undefined reference to `raptor_uri_to_string'
/home/wdcforensics/aff4/src/data_store.cc:202: undefined reference to `raptor_free_memory'
/home/wdcforensics/aff4/src/data_store.cc:181: undefined reference to `raptor_uri_to_string'
/home/wdcforensics/aff4/src/data_store.cc:183: undefined reference to `raptor_free_memory'
/home/wdcforensics/aff4/src/data_store.cc:198: undefined reference to `raptor_free_memory'
//usr/local/lib/libaff4.a(data_store.o): In function `RaptorSerializer::NewRaptorSerializer(URN, std::vector<std::pair<std::string, std::string>, std::allocator<std::pair<std::string, std::string> > > const&)':
/home/wdcforensics/aff4/src/data_store.cc:122: undefined reference to `raptor_new_world_internal'
/home/wdcforensics/aff4/src/data_store.cc:124: undefined reference to `raptor_new_serializer'
/home/wdcforensics/aff4/src/data_store.cc:127: undefined reference to `raptor_new_uri'
/home/wdcforensics/aff4/src/data_store.cc:129: undefined reference to `raptor_serializer_start_to_string'
/home/wdcforensics/aff4/src/data_store.cc:130: undefined reference to `raptor_free_uri'
/home/wdcforensics/aff4/src/data_store.cc:135: undefined reference to `raptor_new_uri'
/home/wdcforensics/aff4/src/data_store.cc:137: undefined reference to `raptor_serializer_set_namespace'
/home/wdcforensics/aff4/src/data_store.cc:138: undefined reference to `raptor_free_uri'
//usr/local/lib/libaff4.a(data_store.o): In function `RaptorSerializer::AddStatement(URN const&, URN const&, RDFValue const*)':
/home/wdcforensics/aff4/src/data_store.cc:146: undefined reference to `raptor_new_statement'
/home/wdcforensics/aff4/src/data_store.cc:149: undefined reference to `raptor_new_term_from_uri_string'
/home/wdcforensics/aff4/src/data_store.cc:153: undefined reference to `raptor_new_term_from_uri_string'
/home/wdcforensics/aff4/src/data_store.cc:160: undefined reference to `raptor_serializer_serialize_statement'
/home/wdcforensics/aff4/src/data_store.cc:161: undefined reference to `raptor_free_statement'
//usr/local/lib/libaff4.a(data_store.o): In function `RaptorSerializer::Finalize()':
/home/wdcforensics/aff4/src/data_store.cc:167: undefined reference to `raptor_serializer_serialize_end'
//usr/local/lib/libaff4.a(data_store.o): In function `~RaptorSerializer':
/home/wdcforensics/aff4/src/data_store.cc:172: undefined reference to `raptor_free_serializer'
/home/wdcforensics/aff4/src/data_store.cc:173: undefined reference to `raptor_free_world'
/home/wdcforensics/aff4/src/data_store.cc:172: undefined reference to `raptor_free_serializer'
/home/wdcforensics/aff4/src/data_store.cc:173: undefined reference to `raptor_free_world'
//usr/local/lib/libaff4.a(data_store.o): In function `~RaptorParser':
/home/wdcforensics/aff4/src/data_store.cc:298: undefined reference to `raptor_parser_parse_chunk'
/home/wdcforensics/aff4/src/data_store.cc:300: undefined reference to `raptor_free_parser'
/home/wdcforensics/aff4/src/data_store.cc:301: undefined reference to `raptor_free_world'
//usr/local/lib/libaff4.a(libaff4.o): In function `AFF4Object::AFF4Object(DataStore*)':
/home/wdcforensics/aff4/src/libaff4.cc:49: undefined reference to `uuid_generate'
/home/wdcforensics/aff4/src/libaff4.cc:50: undefined reference to `uuid_unparse'
//usr/local/lib/libaff4.a(rdf.o): In function `URN::GetRaptorTerm(raptor_world_s*) const':
/home/wdcforensics/aff4/src/rdf.cc:185: undefined reference to `raptor_new_term_from_counted_uri_string'
//usr/local/lib/libaff4.a(rdf.o): In function `RDFBytes::GetRaptorTerm(raptor_world_s*) const':
/home/wdcforensics/aff4/src/rdf.cc:80: undefined reference to `raptor_new_term_from_counted_literal'
//usr/local/lib/libaff4.a(rdf.o): In function `XSDString::GetRaptorTerm(raptor_world_s*) const':
/home/wdcforensics/aff4/src/rdf.cc:98: undefined reference to `raptor_new_uri'
/home/wdcforensics/aff4/src/rdf.cc:105: undefined reference to `raptor_new_term_from_counted_literal'
/home/wdcforensics/aff4/src/rdf.cc:107: undefined reference to `raptor_free_uri'
//usr/local/lib/libaff4.a(rdf.o): In function `XSDBoolean::GetRaptorTerm(raptor_world_s*) const':
/home/wdcforensics/aff4/src/rdf.cc:475: undefined reference to `raptor_new_uri'
/home/wdcforensics/aff4/src/rdf.cc:482: undefined reference to `raptor_new_term_from_counted_literal'
/home/wdcforensics/aff4/src/rdf.cc:484: undefined reference to `raptor_free_uri'
//usr/local/lib/libaff4.a(rdf.o): In function `XSDInteger::GetRaptorTerm(raptor_world_s*) const':
/home/wdcforensics/aff4/src/rdf.cc:439: undefined reference to `raptor_new_uri'
/home/wdcforensics/aff4/src/rdf.cc:446: undefined reference to `raptor_new_term_from_counted_literal'
/home/wdcforensics/aff4/src/rdf.cc:448: undefined reference to `raptor_free_uri'
//usr/local/lib/libaff4.a(rdf.o): In function `URN::Parse() const':
/home/wdcforensics/aff4/src/rdf.cc:120: undefined reference to `uriParseUriA'
/home/wdcforensics/aff4/src/rdf.cc:137: undefined reference to `uriFreeUriMembersA'
//usr/local/lib/libaff4.a(rdf.o): In function `URN::ToFilename()':
/home/wdcforensics/aff4/src/rdf.cc:336: undefined reference to `uriUriStringToUnixFilenameA'
//usr/local/lib/libaff4.a(rdf.o): In function `URN::NewURNFromOSFilename(std::string, bool, bool)':
/home/wdcforensics/aff4/src/rdf.cc:379: undefined reference to `uriWindowsFilenameToUriStringA'
/home/wdcforensics/aff4/src/rdf.cc:385: undefined reference to `uriUnixFilenameToUriStringA'
//usr/local/lib/libaff4.a(rdf.o): In function `URN::URN(char const*)':
/home/wdcforensics/aff4/src/rdf.cc:148: undefined reference to `uriParseUriA'
/home/wdcforensics/aff4/src/rdf.cc:158: undefined reference to `uriNormalizeSyntaxA'
/home/wdcforensics/aff4/src/rdf.cc:163: undefined reference to `uriToStringCharsRequiredA'
/home/wdcforensics/aff4/src/rdf.cc:175: undefined reference to `uriFreeUriMembersA'
/home/wdcforensics/aff4/src/rdf.cc:167: undefined reference to `uriToStringA'
//usr/local/lib/libaff4.a(aff4_image.o): In function `AFF4Image::CompressZlib_(char const*, unsigned long, std::string*)':
/home/wdcforensics/aff4/src/aff4_image.cc:189: undefined reference to `compressBound'
/home/wdcforensics/aff4/src/aff4_image.cc:195: undefined reference to `compress2'
//usr/local/lib/libaff4.a(aff4_image.o): In function `AFF4Image::DeCompressZlib_(char const*, unsigned long, std::string*)':
/home/wdcforensics/aff4/src/aff4_image.cc:211: undefined reference to `uncompress'
//usr/local/lib/libaff4.a(aff4_image.o): In function `AFF4Image::CompressSnappy_(char const*, unsigned long, std::string*)':
/home/wdcforensics/aff4/src/aff4_image.cc:222: undefined reference to `snappy::Compress(char const*, unsigned long, std::string*)'
//usr/local/lib/libaff4.a(aff4_image.o): In function `AFF4Image::DeCompressSnappy_(char const*, unsigned long, std::string*)':
/home/wdcforensics/aff4/src/aff4_image.cc:230: undefined reference to `snappy::Uncompress(char const*, unsigned long, std::string*)'
/home/wdcforensics/aff4/src/aff4_image.cc:230: undefined reference to `snappy::Uncompress(char const*, unsigned long, std::string*)'
//usr/local/lib/libaff4.a(aff4_image.o): In function `AFF4Image::CompressSnappy_(char const*, unsigned long, std::string*)':
/home/wdcforensics/aff4/src/aff4_image.cc:222: undefined reference to `snappy::Compress(char const*, unsigned long, std::string*)
//usr/local/lib/libaff4.a(zip.o): In function `DecompressBuffer':
/home/wdcforensics/aff4/src/zip.cc:645: undefined reference to `inflateInit2_'
/home/wdcforensics/aff4/src/zip.cc:650: undefined reference to `inflate'
/home/wdcforensics/aff4/src/zip.cc:651: undefined reference to `inflateEnd'
/home/wdcforensics/aff4/src/zip.cc:655: undefined reference to `inflateEnd'
//usr/local/lib/libaff4.a(zip.o): In function `CompressBuffer':
/home/wdcforensics/aff4/src/zip.cc:609: undefined reference to `deflateInit2_'
//usr/local/lib/libaff4.a(zip.o): In function `ZipFileSegment::Flush()':
/home/wdcforensics/aff4/src/zip.cc:689: undefined reference to `crc32'
//usr/local/lib/libaff4.a(zip.o): In function `CompressBuffer':
/home/wdcforensics/aff4/src/zip.cc:616: undefined reference to `deflateBound'
/home/wdcforensics/aff4/src/zip.cc:622: undefined reference to `deflate'
/home/wdcforensics/aff4/src/zip.cc:623: undefined reference to `deflateEnd'
/home/wdcforensics/aff4/src/zip.cc:627: undefined reference to `deflateEnd'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-logging.o): In function `__static_initialization_and_destruction_0(int, int)':
(.text+0x5ce0): undefined reference to `google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-logging.o): In function `__static_initialization_and_destruction_0(int, int)':
(.text+0x5d74): undefined reference to `google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-logging.o): In function `__static_initialization_and_destruction_0(int, int)':
(.text+0x5e02): undefined reference to `google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-logging.o): In function `__static_initialization_and_destruction_0(int, int)':
(.text+0x5e90): undefined reference to `google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-logging.o): In function `__static_initialization_and_destruction_0(int, int)':
(.text+0x5ecb): undefined reference to `google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-logging.o):(.text+0x5f59): more undefined references to `google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)' follow
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-logging.o): In function `glog_internal_namespace_::Mutex::Mutex()':
(.text._ZN24glog_internal_namespace_5MutexC2Ev[_ZN24glog_internal_namespace_5MutexC5Ev]+0x31): undefined reference to `pthread_rwlock_init'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-logging.o): In function `glog_internal_namespace_::Mutex::~Mutex()':
(.text._ZN24glog_internal_namespace_5MutexD2Ev[_ZN24glog_internal_namespace_5MutexD5Ev]+0x20): undefined reference to `pthread_rwlock_destroy'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-logging.o): In function `glog_internal_namespace_::Mutex::Lock()':
(.text._ZN24glog_internal_namespace_5Mutex4LockEv[_ZN24glog_internal_namespace_5Mutex4LockEv]+0x20): undefined reference to `pthread_rwlock_wrlock'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-logging.o): In function `glog_internal_namespace_::Mutex::Unlock()':
(.text._ZN24glog_internal_namespace_5Mutex6UnlockEv[_ZN24glog_internal_namespace_5Mutex6UnlockEv]+0x20): undefined reference to `pthread_rwlock_unlock'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-logging.o): In function `glog_internal_namespace_::Mutex::ReaderLock()':
(.text._ZN24glog_internal_namespace_5Mutex10ReaderLockEv[_ZN24glog_internal_namespace_5Mutex10ReaderLockEv]+0x20): undefined reference to `pthread_rwlock_rdlock'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-logging.o): In function `glog_internal_namespace_::Mutex::ReaderUnlock()':
(.text._ZN24glog_internal_namespace_5Mutex12ReaderUnlockEv[_ZN24glog_internal_namespace_5Mutex12ReaderUnlockEv]+0x20): undefined reference to `pthread_rwlock_unlock'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-vlog_is_on.o): In function `__static_initialization_and_destruction_0(int, int)':
(.text+0x7a7): undefined reference to `google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-vlog_is_on.o): In function `__static_initialization_and_destruction_0(int, int)':
(.text+0x835): undefined reference to `google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-utilities.o): In function `google::glog_internal_namespace_::is_default_thread()':
(.text+0x38e): undefined reference to `pthread_self'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-utilities.o): In function `google::glog_internal_namespace_::is_default_thread()':
(.text+0x399): undefined reference to `pthread_equal'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-vlog_is_on.o): In function `__static_initialization_and_destruction_0(int, int)':
(.text+0x7a7): undefined reference to `google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-vlog_is_on.o): In function `__static_initialization_and_destruction_0(int, int)':
(.text+0x835): undefined reference to `google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-utilities.o): In function `google::glog_internal_namespace_::is_default_thread()':
(.text+0x38e): undefined reference to `pthread_self'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-utilities.o): In function `google::glog_internal_namespace_::is_default_thread()':
(.text+0x399): undefined reference to `pthread_equal'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-utilities.o): In function `google::glog_internal_namespace_::InitGoogleLoggingUtilities(char const*)':
(.text+0x641): undefined reference to `pthread_self'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-utilities.o): In function `google::GetStackTrace(void**, int, int)':
(.text+0x7b1): undefined reference to `_Ux86_64_getcontext'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-utilities.o): In function `google::GetStackTrace(void**, int, int)':
(.text+0x7ca): undefined reference to `_ULx86_64_init_local'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-utilities.o): In function `google::GetStackTrace(void**, int, int)':
(.text+0x823): undefined reference to `_ULx86_64_get_reg'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-utilities.o): In function `google::GetStackTrace(void**, int, int)':
(.text+0x882): undefined reference to `_ULx86_64_step'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglog.a(libglog_la-utilities.o): In function `__static_initialization_and_destruction_0(int, int)':
(.text+0x971): undefined reference to `google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)'
collect2: error: ld returned 1 exit status
make[1]: *** [linpmem] Error 1
make[1]: Leaving directory `/home/wdcforensics/rekall/tools/pmem'
make: *** [all] Error 2
@adricnet
Copy link
Author

rekall from git
aff4 cloned and installed from git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment