Package: libevocosm-dev Version: 4.0.2-2 Severity: serious File: libevocosm Tags: patch
Hi, The file listener.h in libevocosm-dev is broken. For example: #include "libevocosm/listener.h" int main(void) {} Here is what I get when I build this file: [10:57 ~/debian/libevocosm]% g++ -o test test.cpp In file included from test.cpp:1:0: /usr/include/libevocosm/listener.h:88:54: error: ‘vector’ does not name a type /usr/include/libevocosm/listener.h:88:60: error: expected ‘,’ or ‘...’ before ‘<’ token /usr/include/libevocosm/listener.h:96:52: error: ‘vector’ does not name a type /usr/include/libevocosm/listener.h:96:58: error: expected ‘,’ or ‘...’ before ‘<’ token /usr/include/libevocosm/listener.h:138:45: error: ‘vector’ does not name a type /usr/include/libevocosm/listener.h:138:51: error: expected ‘,’ or ‘...’ before ‘<’ token /usr/include/libevocosm/listener.h:155:54: error: ‘vector’ does not name a type /usr/include/libevocosm/listener.h:155:60: error: expected ‘,’ or ‘...’ before ‘<’ token /usr/include/libevocosm/listener.h:166:52: error: ‘vector’ does not name a type /usr/include/libevocosm/listener.h:166:58: error: expected ‘,’ or ‘...’ before ‘<’ token /usr/include/libevocosm/listener.h:223:45: error: ‘vector’ does not name a type /usr/include/libevocosm/listener.h:223:51: error: expected ‘,’ or ‘...’ before ‘<’ token zsh: exit 1 g++ -o test test.cpp The attached patch fix this bug. This bug affects acovea and fixing this bug may fix #653744. Vincent -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.3.0-rc2 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages libevocosm-dev depends on: ii libbrahe-dev 1.3.2-3 ii libevocosm-4.0-4 4.0.2-2 libevocosm-dev recommends no packages. libevocosm-dev suggests no packages. *** /home/vincent/debian/tmp/libevocosm/libevocosm-4.0.2/debian/patches/listener_std_vector.patch Index: libevocosm-4.0.2/libevocosm/listener.h =================================================================== --- libevocosm-4.0.2.orig/libevocosm/listener.h 2012-02-03 22:24:51.263280868 +0100 +++ libevocosm-4.0.2/libevocosm/listener.h 2012-02-03 22:27:17.191284912 +0100 @@ -57,6 +57,7 @@ #include <string> #include <iostream> #include <iomanip> +#include <vector> // Windows #if defined(_MSC_VER) @@ -85,7 +86,7 @@ \param a_population Population before this generation's evolution \param a_iteration One-based number of the generation begun */ - virtual void ping_generation_begin(const vector<OrganismType> & a_population, size_t a_iteration) = 0; + virtual void ping_generation_begin(const std::vector<OrganismType> & a_population, size_t a_iteration) = 0; //! Ping that a generation ends /*! @@ -93,7 +94,7 @@ \param a_population Population for which processing has ended \param a_iteration One-based number of the generation ended */ - virtual void ping_generation_end(const vector<OrganismType> & a_population, size_t a_iteration) = 0; + virtual void ping_generation_end(const std::vector<OrganismType> & a_population, size_t a_iteration) = 0; //! Ping that a test run begins /*! @@ -135,7 +136,7 @@ Invoked when an evocosm finishes all processing. This way God can rest on the seventh day. */ - virtual void run_complete(const vector<OrganismType> & a_population) = 0; + virtual void run_complete(const std::vector<OrganismType> & a_population) = 0; }; //! An listener implementation that ignores all events @@ -152,7 +153,7 @@ \param a_population Population before this generation's evolution \param a_iteration One-based number of the generation begun */ - virtual void ping_generation_begin(const vector<OrganismType> & a_population, size_t a_iteration) + virtual void ping_generation_begin(const std::vector<OrganismType> & a_population, size_t a_iteration) { // do nothing } @@ -163,7 +164,7 @@ \param a_population population for which processing has ended \param a_iteration One-based number of the generation ended */ - virtual void ping_generation_end(const vector<OrganismType> & a_population, size_t a_iteration) + virtual void ping_generation_end(const std::vector<OrganismType> & a_population, size_t a_iteration) { // do nothing } @@ -220,7 +221,7 @@ Invoked when an evocosm finishes all processing. This way God can rest on the seventh day. */ - virtual void run_complete(const vector<OrganismType> & a_population) + virtual void run_complete(const std::vector<OrganismType> & a_population) { -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org