{"action":"created","issue":{"url":"https://api.github.com/repos/valhalla/odin/issues/109","labels_url":"https://api.github.com/repos/valhalla/odin/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/valhalla/odin/issues/109/comments","events_url":"https://api.github.com/repos/valhalla/odin/issues/109/events","html_url":"https://github.com/valhalla/odin/issues/109","id":94383681,"number":109,"title":"Incomplete type/forward declaration on OpenBSD","user":{"login":"bentley","id":126009,"avatar_url":"https://avatars.githubusercontent.com/u/126009?v=3","gravatar_id":"","url":"https://api.github.com/users/bentley","html_url":"https://github.com/bentley","followers_url":"https://api.github.com/users/bentley/followers","following_url":"https://api.github.com/users/bentley/following{/other_user}","gists_url":"https://api.github.com/users/bentley/gists{/gist_id}","starred_url":"https://api.github.com/users/bentley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bentley/subscriptions","organizations_url":"https://api.github.com/users/bentley/orgs","repos_url":"https://api.github.com/users/bentley/repos","events_url":"https://api.github.com/users/bentley/events{/privacy}","received_events_url":"https://api.github.com/users/bentley/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-10T20:18:24Z","updated_at":"2015-07-14T12:33:10Z","closed_at":"2015-07-14T08:32:49Z","body":"Attempting to build odin on an OpenBSD 5.8 snapshot (gcc 4.9.2, protobuf 2.4.1) fails with the following error:\r\n\r\n    c++ -DHAVE_CONFIG_H -I. -I./valhalla -I/usr/local/include -pthread -pthread -I/usr/local/include -I/usr/include -Ivalhalla -Ivalhalla/proto -O2 -pipe -std=c++11 -MT src/odin/libvalhalla_odin_la-enhancedtrippath.lo -MD -MP -MF src/odin/.deps/libvalhalla_odin_la-enhancedtrippath.Tpo -c src/odin/enhancedtrippath.cc -fPIC -DPIC -o src/odin/.libs/libvalhalla_odin_la-enhancedtrippath.o\r\n    src/odin/enhancedtrippath.cc: In member function 'std::string valhalla::odin::EnhancedTripPath_Edge::ToParameterString() const':\r\n    src/odin/enhancedtrippath.cc:292:38: error: invalid use of incomplete type 'const class google::protobuf::EnumDescriptor'\r\n           TripPath_RoadClass_descriptor()->FindValueByNumber(road_class())->name();\r\n                                          ^\r\n    In file included from /usr/local/include/google/protobuf/generated_message_reflection.h:43:0,\r\n                     from ./valhalla/proto/trippath.pb.h:25,\r\n                     from src/odin/enhancedtrippath.cc:3:\r\n    /usr/local/include/google/protobuf/message.h:138:7: error: forward declaration of 'const class google::protobuf::EnumDescriptor'\r\n     class EnumDescriptor;        // descriptor.h\r\n           ^\r\n    src/odin/enhancedtrippath.cc:308:44: error: invalid use of incomplete type 'const class google::protobuf::EnumDescriptor'\r\n       str += TripPath_Driveability_descriptor()->FindValueByNumber(driveability())\r\n                                                ^\r\n    In file included from /usr/local/include/google/protobuf/generated_message_reflection.h:43:0,\r\n                     from ./valhalla/proto/trippath.pb.h:25,\r\n                     from src/odin/enhancedtrippath.cc:3:\r\n    /usr/local/include/google/protobuf/message.h:138:7: error: forward declaration of 'const class google::protobuf::EnumDescriptor'\r\n     class EnumDescriptor;        // descriptor.h\r\n           ^\r\n    src/odin/enhancedtrippath.cc:359:44: error: invalid use of incomplete type 'const class google::protobuf::EnumDescriptor'\r\n         str += TripPath_TravelMode_descriptor()->FindValueByNumber(travel_mode())\r\n                                                ^\r\n    In file included from /usr/local/include/google/protobuf/generated_message_reflection.h:43:0,\r\n                     from ./valhalla/proto/trippath.pb.h:25,\r\n                     from src/odin/enhancedtrippath.cc:3:\r\n    /usr/local/include/google/protobuf/message.h:138:7: error: forward declaration of 'const class google::protobuf::EnumDescriptor'\r\n     class EnumDescriptor;        // descriptor.h\r\n           ^\r\n    src/odin/enhancedtrippath.cc:366:45: error: invalid use of incomplete type 'const class google::protobuf::EnumDescriptor'\r\n         str += TripPath_VehicleType_descriptor()->FindValueByNumber(vehicle_type())\r\n                                                 ^\r\n    In file included from /usr/local/include/google/protobuf/generated_message_reflection.h:43:0,\r\n                     from ./valhalla/proto/trippath.pb.h:25,\r\n                     from src/odin/enhancedtrippath.cc:3:\r\n    /usr/local/include/google/protobuf/message.h:138:7: error: forward declaration of 'const class google::protobuf::EnumDescriptor'\r\n     class EnumDescriptor;        // descriptor.h\r\n           ^\r\n    src/odin/enhancedtrippath.cc:373:48: error: invalid use of incomplete type 'const class google::protobuf::EnumDescriptor'\r\n         str += TripPath_PedestrianType_descriptor()->FindValueByNumber(pedestrian_type())\r\n                                                    ^\r\n    In file included from /usr/local/include/google/protobuf/generated_message_reflection.h:43:0,\r\n                     from ./valhalla/proto/trippath.pb.h:25,\r\n                     from src/odin/enhancedtrippath.cc:3:\r\n    /usr/local/include/google/protobuf/message.h:138:7: error: forward declaration of 'const class google::protobuf::EnumDescriptor'\r\n     class EnumDescriptor;        // descriptor.h\r\n           ^\r\n    src/odin/enhancedtrippath.cc:380:45: error: invalid use of incomplete type 'const class google::protobuf::EnumDescriptor'\r\n         str += TripPath_BicycleType_descriptor()->FindValueByNumber(bicycle_type())\r\n                                                 ^\r\n    In file included from /usr/local/include/google/protobuf/generated_message_reflection.h:43:0,\r\n                     from ./valhalla/proto/trippath.pb.h:25,\r\n                     from src/odin/enhancedtrippath.cc:3:\r\n    /usr/local/include/google/protobuf/message.h:138:7: error: forward declaration of 'const class google::protobuf::EnumDescriptor'\r\n     class EnumDescriptor;        // descriptor.h\r\n           ^\r\n    src/odin/enhancedtrippath.cc:387:45: error: invalid use of incomplete type 'const class google::protobuf::EnumDescriptor'\r\n         str += TripPath_TransitType_descriptor()->FindValueByNumber(transit_type())\r\n                                                 ^\r\n    In file included from /usr/local/include/google/protobuf/generated_message_reflection.h:43:0,\r\n                     from ./valhalla/proto/trippath.pb.h:25,\r\n                     from src/odin/enhancedtrippath.cc:3:\r\n    /usr/local/include/google/protobuf/message.h:138:7: error: forward declaration of 'const class google::protobuf::EnumDescriptor'\r\n     class EnumDescriptor;        // descriptor.h\r\n           ^\r\n    Error while executing c++ -DHAVE_CONFIG_H -I. -I./valhalla -I/usr/local/include -pthread -pthread -I/usr/local/include -I/usr/include -Ivalhalla -Ivalhalla/proto -O2 -pipe -std=c++11 -MT src/odin/libvalhalla_odin_la-enhancedtrippath.lo -MD -MP -MF src/odin/.deps/libvalhalla_odin_la-enhancedtrippath.Tpo -c src/odin/enhancedtrippath.cc -fPIC -DPIC -o src/odin/.libs/libvalhalla_odin_la-enhancedtrippath.o\r\n    Makefile:1049: recipe for target 'src/odin/libvalhalla_odin_la-enhancedtrippath.lo' failed\r\n    gmake[1]: *** [src/odin/libvalhalla_odin_la-enhancedtrippath.lo] Error 1\r\n    gmake[1]: Leaving directory '/usr/ports/pobj/odin-0.0.0/odin-a1d1668853bacb20f8f479716c3610190dd2c13b'\r\n    Makefile:704: recipe for target 'all' failed\r\n    gmake: *** [all] Error 2"},"comment":{"url":"https://api.github.com/repos/valhalla/odin/issues/comments/121225637","html_url":"https://github.com/valhalla/odin/issues/109#issuecomment-121225637","issue_url":"https://api.github.com/repos/valhalla/odin/issues/109","id":121225637,"user":{"login":"dgearhart","id":7515853,"avatar_url":"https://avatars.githubusercontent.com/u/7515853?v=3","gravatar_id":"","url":"https://api.github.com/users/dgearhart","html_url":"https://github.com/dgearhart","followers_url":"https://api.github.com/users/dgearhart/followers","following_url":"https://api.github.com/users/dgearhart/following{/other_user}","gists_url":"https://api.github.com/users/dgearhart/gists{/gist_id}","starred_url":"https://api.github.com/users/dgearhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgearhart/subscriptions","organizations_url":"https://api.github.com/users/dgearhart/orgs","repos_url":"https://api.github.com/users/dgearhart/repos","events_url":"https://api.github.com/users/dgearhart/events{/privacy}","received_events_url":"https://api.github.com/users/dgearhart/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T12:33:10Z","updated_at":"2015-07-14T12:33:10Z","body":"thanks"}}