Package: config-manager Severity: normal Tags: patch When building 'config-manager' on amd64 with gcc-4.0, I get the following error:
x86_64-linux-g++ -DHAVE_CONFIG_H -I. -I. -I./include -I./include -Wall -Werror -g -O2 -MT src/BoolOption.lo -MD -MP -MF src/.deps/BoolOption.Tpo -c src/BoolOption.cc -o src/BoolOption.o cc1plus: warnings being treated as errors /usr/lib/gcc/x86_64-linux/4.0.0/../../../../include/c++/4.0.0/bits/basic_string.h: In member function 'virtual const std::string BoolOption::shortOption() const': /usr/lib/gcc/x86_64-linux/4.0.0/../../../../include/c++/4.0.0/bits/basic_string.h:2029: warning: control may reach end of non-void function '_CharT* std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_refdata() [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]' being inlined src/BoolOption.cc:34: warning: control may reach end of non-void function 'std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::basic_string<_CharT, _Traits, _Alloc>&, _CharT) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]' being inlined make[3]: *** [src/BoolOption.lo] Error 1 make[3]: Leaving directory `/config-manager-0.1p83/libgetopt' With the attached patch 'config-manager' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/config-manager-0.1p83/libgetopt/Makefile.am ./libgetopt/Makefile.am --- ../tmp-orig/config-manager-0.1p83/libgetopt/Makefile.am 2005-02-08 22:59:33.869798819 +0100 +++ ./libgetopt/Makefile.am 2005-02-08 22:59:06.833024851 +0100 @@ -4,7 +4,7 @@ # AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects 1.5 foreign -AM_CXXFLAGS = -Wall -Werror +AM_CXXFLAGS = -Wall ##DIST_SUBDIRS = src ##SUBDIRS = src diff -urN ../tmp-orig/config-manager-0.1p83/libgetopt/Makefile.in ./libgetopt/Makefile.in --- ../tmp-orig/config-manager-0.1p83/libgetopt/Makefile.in 2005-02-08 22:59:33.921788770 +0100 +++ ./libgetopt/Makefile.in 2005-02-08 22:59:17.432975953 +0100 @@ -140,7 +140,7 @@ target_alias = @target_alias@ AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects 1.5 foreign -AM_CXXFLAGS = -Wall -Werror +AM_CXXFLAGS = -Wall DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]* diff -urN ../tmp-orig/config-manager-0.1p83/src/cm.cc ./src/cm.cc --- ../tmp-orig/config-manager-0.1p83/src/cm.cc 2004-07-19 13:59:02.000000000 +0200 +++ ./src/cm.cc 2005-02-08 22:55:52.924505215 +0100 @@ -29,6 +29,7 @@ #include <cassert> #include <sstream> #include <fstream> +#include <errno.h> #include "ConfigSource.h" #include "ConfigArchSource.h" #include "FileSystemVisitor.h" -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

