{"action":"opened","issue":{"url":"https://api.github.com/repos/mapserver/mapserver/issues/5117","labels_url":"https://api.github.com/repos/mapserver/mapserver/issues/5117/labels{/name}","comments_url":"https://api.github.com/repos/mapserver/mapserver/issues/5117/comments","events_url":"https://api.github.com/repos/mapserver/mapserver/issues/5117/events","html_url":"https://github.com/mapserver/mapserver/issues/5117","id":93660056,"number":5117,"title":"7.0.0-betas fail to build with GCC 4.9, error: template with C linkage","user":{"login":"sebastic","id":4605306,"avatar_url":"https://avatars.githubusercontent.com/u/4605306?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastic","html_url":"https://github.com/sebastic","followers_url":"https://api.github.com/users/sebastic/followers","following_url":"https://api.github.com/users/sebastic/following{/other_user}","gists_url":"https://api.github.com/users/sebastic/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastic/subscriptions","organizations_url":"https://api.github.com/users/sebastic/orgs","repos_url":"https://api.github.com/users/sebastic/repos","events_url":"https://api.github.com/users/sebastic/events{/privacy}","received_events_url":"https://api.github.com/users/sebastic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-08T00:29:14Z","updated_at":"2015-07-08T00:29:14Z","closed_at":null,"body":"None of the MapServer 7.0 betas were able to build on Debian unstable (with GCC 4.9.3) due to `template with C linkage` errors. The build succeeds on Debian jessie (with GCC 4.9.2), but also fails with GCC 5 in experimental.\r\n\r\nAn example of the first error follows, but there are many more.\r\n```\r\n[ 55%] Building CXX object CMakeFiles/mapserver.dir/mapagg.cpp.o\r\n/usr/bin/c++   -Dmapserver_EXPORTS -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2  -Wall -O2 -g -DNDEBUG -fPIC -I\"/tmp/buildd/mapserver-7.0.0~beta2/obj-x86_64-linux-gnu\" -I\"/tmp/buildd/mapserver-7.0.0~beta2/renderers/agg/include\" -I\"/tmp/buildd/mapserver-7.0.0~beta2/mapscript/v8\" -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/cairo -I/usr/include/postgresql -I/usr/include/gdal -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2    -o CMakeFiles/mapserver.dir/mapagg.cpp.o -c \"/tmp/buildd/mapserver-7.0.0~beta2/mapagg.cpp\"\r\nIn file included from /usr/include/c++/4.9/bits/stringfwd.h:40:0,\r\n                 from /usr/include/c++/4.9/string:39,\r\n                 from /usr/include/x86_64-linux-gnu/unicode/std_string.h:30,\r\n                 from /usr/include/x86_64-linux-gnu/unicode/unistr.h:31,\r\n                 from /usr/include/x86_64-linux-gnu/unicode/strenum.h:14,\r\n                 from /usr/include/x86_64-linux-gnu/unicode/uenum.h:24,\r\n                 from /usr/include/x86_64-linux-gnu/unicode/ucnv.h:51,\r\n                 from /usr/include/libxml2/libxml/encoding.h:31,\r\n                 from /usr/include/libxml2/libxml/parser.h:810,\r\n                 from /usr/include/libxml2/libxml/globals.h:18,\r\n                 from /usr/include/libxml2/libxml/threads.h:35,\r\n                 from /usr/include/libxml2/libxml/xmlmemory.h:218,\r\n                 from /usr/include/libxml2/libxml/tree.h:1306,\r\n                 from /tmp/buildd/mapserver-7.0.0~beta2/mapows.h:477,\r\n                 from /tmp/buildd/mapserver-7.0.0~beta2/mapserver.h:2811,\r\n                 from /tmp/buildd/mapserver-7.0.0~beta2/mapagg.cpp:30:\r\n/usr/include/c++/4.9/bits/memoryfwd.h:63:3: error: template with C linkage\r\n   template<typename>\r\n   ^\r\n/usr/include/c++/4.9/bits/memoryfwd.h:66:3: error: template specialization with C linkage\r\n   template<>\r\n   ^\r\n/usr/include/c++/4.9/bits/memoryfwd.h:70:3: error: template with C linkage\r\n   template<typename, typename>\r\n   ^\r\n```\r\n"}}