Skip to content

Instantly share code, notes, and snippets.

@baditaflorin
Created May 8, 2017 12:31
Show Gist options
  • Save baditaflorin/5a311903b4f38e8de18919062b185cdc to your computer and use it in GitHub Desktop.
Save baditaflorin/5a311903b4f38e8de18919062b185cdc to your computer and use it in GitHub Desktop.
clang++ -g -O3 -Wall -Wextra -pedantic `getconf LFS_CFLAGS` -I/usr/include/postgresql/ -I/usr/include/libxml2/ -DOSMIUM_WITH_GEOS -o osm-history-importer importer.cpp -lexpat -lpq -lproj -lz -lprotobuf-lite -losmpbf -lpthread -lgeos
In file included from importer.cpp:17:
In file included from /usr/include/osmium.hpp:26:
In file included from /usr/include/osmium/input/pbf.hpp:33:
In file included from /usr/local/include/osmpbf/osmpbf.h:8:
/usr/local/include/osmpbf/osmformat.pb.h:1814:34: error: allocating an object of abstract class type '::OSMPBF::HeaderBBox'
if (bbox_ == NULL) bbox_ = new ::OSMPBF::HeaderBBox;
^
/usr/local/include/google/protobuf/message_lite.h:249:18: note: unimplemented pure virtual method 'ByteSizeLong' in 'HeaderBBox'
virtual size_t ByteSizeLong() const = 0;
^
In file included from importer.cpp:17:
In file included from /usr/include/osmium.hpp:26:
In file included from /usr/include/osmium/input/pbf.hpp:33:
In file included from /usr/local/include/osmpbf/osmpbf.h:8:
/usr/local/include/osmpbf/osmformat.pb.h:2347:48: error: allocating an object of abstract class type '::OSMPBF::StringTable'
if (stringtable_ == NULL) stringtable_ = new ::OSMPBF::StringTable;
^
/usr/local/include/google/protobuf/message_lite.h:249:18: note: unimplemented pure virtual method 'ByteSizeLong' in 'StringTable'
virtual size_t ByteSizeLong() const = 0;
^
In file included from importer.cpp:17:
In file included from /usr/include/osmium.hpp:26:
In file included from /usr/include/osmium/input/pbf.hpp:33:
In file included from /usr/local/include/osmpbf/osmpbf.h:8:
/usr/local/include/osmpbf/osmformat.pb.h:2552:36: error: allocating an object of abstract class type '::OSMPBF::DenseNodes'
if (dense_ == NULL) dense_ = new ::OSMPBF::DenseNodes;
^
/usr/local/include/google/protobuf/message_lite.h:249:18: note: unimplemented pure virtual method 'ByteSizeLong' in 'DenseNodes'
virtual size_t ByteSizeLong() const = 0;
^
In file included from importer.cpp:17:
In file included from /usr/include/osmium.hpp:26:
In file included from /usr/include/osmium/input/pbf.hpp:33:
In file included from /usr/local/include/osmpbf/osmpbf.h:8:
/usr/local/include/osmpbf/osmformat.pb.h:3193:34: error: allocating an object of abstract class type '::OSMPBF::Info'
if (info_ == NULL) info_ = new ::OSMPBF::Info;
^
/usr/local/include/google/protobuf/message_lite.h:249:18: note: unimplemented pure virtual method 'ByteSizeLong' in 'Info'
virtual size_t ByteSizeLong() const = 0;
^
In file included from importer.cpp:17:
In file included from /usr/include/osmium.hpp:26:
In file included from /usr/include/osmium/input/pbf.hpp:33:
In file included from /usr/local/include/osmpbf/osmpbf.h:8:
/usr/local/include/osmpbf/osmformat.pb.h:3320:44: error: allocating an object of abstract class type '::OSMPBF::DenseInfo'
if (denseinfo_ == NULL) denseinfo_ = new ::OSMPBF::DenseInfo;
^
/usr/local/include/google/protobuf/message_lite.h:249:18: note: unimplemented pure virtual method 'ByteSizeLong' in 'DenseInfo'
virtual size_t ByteSizeLong() const = 0;
^
In file included from importer.cpp:17:
In file included from /usr/include/osmium.hpp:26:
In file included from /usr/include/osmium/input/pbf.hpp:33:
In file included from /usr/local/include/osmpbf/osmpbf.h:8:
/usr/local/include/osmpbf/osmformat.pb.h:3543:34: error: allocating an object of abstract class type '::OSMPBF::Info'
if (info_ == NULL) info_ = new ::OSMPBF::Info;
^
/usr/local/include/osmpbf/osmformat.pb.h:3706:34: error: allocating an object of abstract class type '::OSMPBF::Info'
if (info_ == NULL) info_ = new ::OSMPBF::Info;
^
In file included from importer.cpp:17:
In file included from /usr/include/osmium.hpp:26:
/usr/include/osmium/input/pbf.hpp:57:36: error: field type 'OSMPBF::Blob' is an abstract class
OSMPBF::Blob m_pbf_blob;
^
/usr/local/include/google/protobuf/message_lite.h:249:18: note: unimplemented pure virtual method 'ByteSizeLong' in 'Blob'
virtual size_t ByteSizeLong() const = 0;
^
In file included from importer.cpp:17:
In file included from /usr/include/osmium.hpp:26:
/usr/include/osmium/input/pbf.hpp:58:36: error: field type 'OSMPBF::BlobHeader' is an abstract class
OSMPBF::BlobHeader m_pbf_blob_header;
^
/usr/local/include/google/protobuf/message_lite.h:249:18: note: unimplemented pure virtual method 'ByteSizeLong' in 'BlobHeader'
virtual size_t ByteSizeLong() const = 0;
^
In file included from importer.cpp:17:
In file included from /usr/include/osmium.hpp:26:
/usr/include/osmium/input/pbf.hpp:59:36: error: field type 'OSMPBF::PrimitiveBlock' is an abstract class
OSMPBF::PrimitiveBlock m_pbf_primitive_block;
^
/usr/local/include/google/protobuf/message_lite.h:249:18: note: unimplemented pure virtual method 'ByteSizeLong' in 'PrimitiveBlock'
virtual size_t ByteSizeLong() const = 0;
^
In file included from importer.cpp:17:
In file included from /usr/include/osmium.hpp:26:
/usr/include/osmium/input/pbf.hpp:103:49: error: variable type 'OSMPBF::HeaderBlock' is an abstract class
OSMPBF::HeaderBlock pbf_header_block;
^
/usr/local/include/google/protobuf/message_lite.h:249:18: note: unimplemented pure virtual method 'ByteSizeLong' in 'HeaderBlock'
virtual size_t ByteSizeLong() const = 0;
^
In file included from importer.cpp:17:
In file included from /usr/include/osmium.hpp:26:
In file included from /usr/include/osmium/input/pbf.hpp:33:
In file included from /usr/local/include/osmpbf/osmpbf.h:5:
In file included from /usr/local/include/osmpbf/fileformat.pb.h:20:
In file included from /usr/local/include/google/protobuf/repeated_field.h:61:
/usr/local/include/google/protobuf/arena.h:320:18: error: allocating an object of abstract class type 'OSMPBF::PrimitiveGroup'
return new T();
^
/usr/local/include/google/protobuf/arena.h:644:12: note: in instantiation of function template specialization 'google::protobuf::Arena::Create<OSMPBF::PrimitiveGroup>' requested here
return Create<T>(arena);
^
/usr/local/include/google/protobuf/repeated_field.h:612:39: note: in instantiation of function template specialization 'google::protobuf::Arena::CreateMaybeMessage<OSMPBF::PrimitiveGroup>'
requested here
return ::google::protobuf::Arena::CreateMaybeMessage<Type>(
^
/usr/local/include/google/protobuf/repeated_field.h:643:10: note: in instantiation of member function 'google::protobuf::internal::GenericTypeHandler<OSMPBF::PrimitiveGroup>::New' requested
here
return New(arena);
^
/usr/local/include/google/protobuf/repeated_field.h:1513:20: note: in instantiation of member function
'google::protobuf::internal::GenericTypeHandler<OSMPBF::PrimitiveGroup>::NewFromPrototype' requested here
TypeHandler::NewFromPrototype(prototype, arena_);
^
/usr/local/include/google/protobuf/repeated_field.h:1930:32: note: in instantiation of function template specialization
'google::protobuf::internal::RepeatedPtrFieldBase::Add<google::protobuf::RepeatedPtrField<OSMPBF::PrimitiveGroup>::TypeHandler>' requested here
return RepeatedPtrFieldBase::Add<TypeHandler>();
^
/usr/local/include/osmpbf/osmformat.pb.h:2385:26: note: in instantiation of member function 'google::protobuf::RepeatedPtrField<OSMPBF::PrimitiveGroup>::Add' requested here
return primitivegroup_.Add();
^
/usr/local/include/google/protobuf/message_lite.h:249:18: note: unimplemented pure virtual method 'ByteSizeLong' in 'PrimitiveGroup'
virtual size_t ByteSizeLong() const = 0;
^
In file included from importer.cpp:17:
In file included from /usr/include/osmium.hpp:26:
In file included from /usr/include/osmium/input/pbf.hpp:33:
In file included from /usr/local/include/osmpbf/osmpbf.h:5:
In file included from /usr/local/include/osmpbf/fileformat.pb.h:20:
In file included from /usr/local/include/google/protobuf/repeated_field.h:61:
/usr/local/include/google/protobuf/arena.h:320:18: error: allocating an object of abstract class type 'OSMPBF::Node'
return new T();
^
/usr/local/include/google/protobuf/arena.h:644:12: note: in instantiation of function template specialization 'google::protobuf::Arena::Create<OSMPBF::Node>' requested here
return Create<T>(arena);
^
/usr/local/include/google/protobuf/repeated_field.h:612:39: note: in instantiation of function template specialization 'google::protobuf::Arena::CreateMaybeMessage<OSMPBF::Node>' requested
here
return ::google::protobuf::Arena::CreateMaybeMessage<Type>(
^
/usr/local/include/google/protobuf/repeated_field.h:643:10: note: in instantiation of member function 'google::protobuf::internal::GenericTypeHandler<OSMPBF::Node>::New' requested here
return New(arena);
^
/usr/local/include/google/protobuf/repeated_field.h:1513:20: note: in instantiation of member function 'google::protobuf::internal::GenericTypeHandler<OSMPBF::Node>::NewFromPrototype'
requested here
TypeHandler::NewFromPrototype(prototype, arena_);
^
/usr/local/include/google/protobuf/repeated_field.h:1930:32: note: in instantiation of function template specialization
'google::protobuf::internal::RepeatedPtrFieldBase::Add<google::protobuf::RepeatedPtrField<OSMPBF::Node>::TypeHandler>' requested here
return RepeatedPtrFieldBase::Add<TypeHandler>();
^
/usr/local/include/osmpbf/osmformat.pb.h:2515:17: note: in instantiation of member function 'google::protobuf::RepeatedPtrField<OSMPBF::Node>::Add' requested here
return nodes_.Add();
^
/usr/local/include/google/protobuf/message_lite.h:249:18: note: unimplemented pure virtual method 'ByteSizeLong' in 'Node'
virtual size_t ByteSizeLong() const = 0;
^
In file included from importer.cpp:17:
In file included from /usr/include/osmium.hpp:26:
In file included from /usr/include/osmium/input/pbf.hpp:33:
In file included from /usr/local/include/osmpbf/osmpbf.h:5:
In file included from /usr/local/include/osmpbf/fileformat.pb.h:20:
In file included from /usr/local/include/google/protobuf/repeated_field.h:61:
/usr/local/include/google/protobuf/arena.h:320:18: error: allocating an object of abstract class type 'OSMPBF::Way'
return new T();
^
/usr/local/include/google/protobuf/arena.h:644:12: note: in instantiation of function template specialization 'google::protobuf::Arena::Create<OSMPBF::Way>' requested here
return Create<T>(arena);
^
/usr/local/include/google/protobuf/repeated_field.h:612:39: note: in instantiation of function template specialization 'google::protobuf::Arena::CreateMaybeMessage<OSMPBF::Way>' requested
here
return ::google::protobuf::Arena::CreateMaybeMessage<Type>(
^
/usr/local/include/google/protobuf/repeated_field.h:643:10: note: in instantiation of member function 'google::protobuf::internal::GenericTypeHandler<OSMPBF::Way>::New' requested here
return New(arena);
^
/usr/local/include/google/protobuf/repeated_field.h:1513:20: note: in instantiation of member function 'google::protobuf::internal::GenericTypeHandler<OSMPBF::Way>::NewFromPrototype'
requested here
TypeHandler::NewFromPrototype(prototype, arena_);
^
/usr/local/include/google/protobuf/repeated_field.h:1930:32: note: in instantiation of function template specialization
'google::protobuf::internal::RepeatedPtrFieldBase::Add<google::protobuf::RepeatedPtrField<OSMPBF::Way>::TypeHandler>' requested here
return RepeatedPtrFieldBase::Add<TypeHandler>();
^
/usr/local/include/osmpbf/osmformat.pb.h:2590:16: note: in instantiation of member function 'google::protobuf::RepeatedPtrField<OSMPBF::Way>::Add' requested here
return ways_.Add();
^
/usr/local/include/google/protobuf/message_lite.h:249:18: note: unimplemented pure virtual method 'ByteSizeLong' in 'Way'
virtual size_t ByteSizeLong() const = 0;
^
In file included from importer.cpp:17:
In file included from /usr/include/osmium.hpp:26:
In file included from /usr/include/osmium/input/pbf.hpp:33:
In file included from /usr/local/include/osmpbf/osmpbf.h:5:
In file included from /usr/local/include/osmpbf/fileformat.pb.h:20:
In file included from /usr/local/include/google/protobuf/repeated_field.h:61:
/usr/local/include/google/protobuf/arena.h:320:18: error: allocating an object of abstract class type 'OSMPBF::Relation'
return new T();
^
/usr/local/include/google/protobuf/arena.h:644:12: note: in instantiation of function template specialization 'google::protobuf::Arena::Create<OSMPBF::Relation>' requested here
return Create<T>(arena);
^
/usr/local/include/google/protobuf/repeated_field.h:612:39: note: in instantiation of function template specialization 'google::protobuf::Arena::CreateMaybeMessage<OSMPBF::Relation>'
requested here
return ::google::protobuf::Arena::CreateMaybeMessage<Type>(
^
/usr/local/include/google/protobuf/repeated_field.h:643:10: note: in instantiation of member function 'google::protobuf::internal::GenericTypeHandler<OSMPBF::Relation>::New' requested here
return New(arena);
^
/usr/local/include/google/protobuf/repeated_field.h:1513:20: note: in instantiation of member function 'google::protobuf::internal::GenericTypeHandler<OSMPBF::Relation>::NewFromPrototype'
requested here
TypeHandler::NewFromPrototype(prototype, arena_);
^
/usr/local/include/google/protobuf/repeated_field.h:1930:32: note: in instantiation of function template specialization
'google::protobuf::internal::RepeatedPtrFieldBase::Add<google::protobuf::RepeatedPtrField<OSMPBF::Relation>::TypeHandler>' requested here
return RepeatedPtrFieldBase::Add<TypeHandler>();
^
/usr/local/include/osmpbf/osmformat.pb.h:2620:21: note: in instantiation of member function 'google::protobuf::RepeatedPtrField<OSMPBF::Relation>::Add' requested here
return relations_.Add();
^
/usr/local/include/google/protobuf/message_lite.h:249:18: note: unimplemented pure virtual method 'ByteSizeLong' in 'Relation'
virtual size_t ByteSizeLong() const = 0;
^
In file included from importer.cpp:17:
In file included from /usr/include/osmium.hpp:26:
In file included from /usr/include/osmium/input/pbf.hpp:33:
In file included from /usr/local/include/osmpbf/osmpbf.h:5:
In file included from /usr/local/include/osmpbf/fileformat.pb.h:20:
In file included from /usr/local/include/google/protobuf/repeated_field.h:61:
/usr/local/include/google/protobuf/arena.h:320:18: error: allocating an object of abstract class type 'OSMPBF::ChangeSet'
return new T();
^
/usr/local/include/google/protobuf/arena.h:644:12: note: in instantiation of function template specialization 'google::protobuf::Arena::Create<OSMPBF::ChangeSet>' requested here
return Create<T>(arena);
^
/usr/local/include/google/protobuf/repeated_field.h:612:39: note: in instantiation of function template specialization 'google::protobuf::Arena::CreateMaybeMessage<OSMPBF::ChangeSet>'
requested here
return ::google::protobuf::Arena::CreateMaybeMessage<Type>(
^
/usr/local/include/google/protobuf/repeated_field.h:643:10: note: in instantiation of member function 'google::protobuf::internal::GenericTypeHandler<OSMPBF::ChangeSet>::New' requested here
return New(arena);
^
/usr/local/include/google/protobuf/repeated_field.h:1513:20: note: in instantiation of member function 'google::protobuf::internal::GenericTypeHandler<OSMPBF::ChangeSet>::NewFromPrototype'
requested here
TypeHandler::NewFromPrototype(prototype, arena_);
^
/usr/local/include/google/protobuf/repeated_field.h:1930:32: note: in instantiation of function template specialization
'google::protobuf::internal::RepeatedPtrFieldBase::Add<google::protobuf::RepeatedPtrField<OSMPBF::ChangeSet>::TypeHandler>' requested here
return RepeatedPtrFieldBase::Add<TypeHandler>();
^
/usr/local/include/osmpbf/osmformat.pb.h:2650:22: note: in instantiation of member function 'google::protobuf::RepeatedPtrField<OSMPBF::ChangeSet>::Add' requested here
return changesets_.Add();
^
/usr/local/include/google/protobuf/message_lite.h:249:18: note: unimplemented pure virtual method 'ByteSizeLong' in 'ChangeSet'
virtual size_t ByteSizeLong() const = 0;
^
In file included from importer.cpp:25:
In file included from ./handler.hpp:28:
./geombuilder.hpp:16:16: warning: private field 'm_adapter' is not used [-Wunused-private-field]
DbAdapter *m_adapter;
^
./geombuilder.hpp:17:10: warning: private field 'm_isupdate' is not used [-Wunused-private-field]
bool m_isupdate, m_keepLatLng;
^
In file included from importer.cpp:25:
In file included from ./handler.hpp:29:
./minortimescalculator.hpp:7:16: warning: private field 'm_adapter' is not used [-Wunused-private-field]
DbAdapter *m_adapter;
^
./minortimescalculator.hpp:8:10: warning: private field 'm_isupdate' is not used [-Wunused-private-field]
bool m_isupdate;
^
./minortimescalculator.hpp:9:10: warning: private field 'm_showerrors' is not used [-Wunused-private-field]
bool m_showerrors;
^
5 warnings and 16 errors generated.
Makefile:39: recipe for target 'osm-history-importer' failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment