[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [XXX] menu package broken, trouble with Emacs21



Paul Emsley <paule@chem.gla.ac.uk> writes:

> > The compiler complains about a parse error before "{" in the included
> > file "adstring.h" (from the same dir) in line 26:
> > class String:public string{
> > 
> If Daniel's message was not sufficient, then I suggest that you follow
> the advice of James Morrison and add:
> 
> using namespace std;
> 
> before line 26

Thanks Paul. I've tried that. It seems to help over the first issue,
but later on compilation still fails. Please see attached log.

Now, the next problem is, that update-menus/update-menus.cc includes
"procbuf.h" which on my Debian GNU/Linux installation is a part of
libstdc++2.10-dev. On Debian GNU/Hurd, this packages is missing. So
what should be done about this? Should the package be built for
GNU/Hurd as well or is it obsolete and should not be used anymore? In
the latter case, I guess a bug should be filed to the BTS against
menu.

Johannes

Now, here comes the log. I hope it is not inappropriate to post it
here.

cd ~/menu-2.1.5/
dpkg-buildpackage -uc -b
dpkg-buildpackage: source package is menu
dpkg-buildpackage: source version is 2.1.5-10.1
dpkg-buildpackage: source maintainer is Joey Hess <joeyh@debian.org>
dpkg-buildpackage: host architecture is hurd-i386

[...]

/usr/bin/make CXXFLAGS="-g -O2 -Wall"
make[1]: Entering directory `/root/menu-2.1.5'
Making all in update-menus
make[2]: Entering directory `/root/menu-2.1.5/update-menus'
c++ -DPACKAGE=\"menu\" -DVERSION=\"\" -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_ARGZ_H=1 -DHAVE_LIMITS_H=1 -DHAVE_LOCALE_H=1 -DHAVE_NL_TYPES_H=1 -DHAVE_MALLOC_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETCWD=1 -DHAVE_MUNMAP=1 -DHAVE_PUTENV=1 -DHAVE_SETENV=1 -DHAVE_SETLOCALE=1 -DHAVE_STRCHR=1 -DHAVE_STRCASECMP=1 -DHAVE_STRDUP=1 -DHAVE___ARGZ_COUNT=1 -DHAVE___ARGZ_STRINGIFY=1 -DHAVE___ARGZ_NEXT=1 -DHAVE_STPCPY=1 -DHAVE_STPCPY=1 -DHAVE_LC_MESSAGES=1 -DENABLE_NLS=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -DRETSIGTYPE=void -DHAVE_MKDIR=1 -DHAVE_STRDUP=1 -DHAVE_STRERROR=1  -I. -I.      -g -O2 -Wall -c update-menus.cc
update-menus.cc:24:21: procbuf.h: No such file or directory
update-menus.cc: In function `void read_menufile(const String&, const String&, 
   std::vector<String, std::allocator<String> >&)':
update-menus.cc:478: `procbuf' undeclared (first use this function)
update-menus.cc:478: (Each undeclared identifier is reported only once for each 
   function it appears in.)
update-menus.cc:478: parse error before `;' token
update-menus.cc:486: `pr' undeclared (first use this function)
update-menus.cc: In function `void read_menufilesdir(std::vector<String, 
   std::allocator<String> >&)':
update-menus.cc:549: no match for `std::__normal_iterator<const String*, 
   std::vector<const String, std::allocator<const String> > >& = 
   std::__normal_iterator<String*, std::vector<String, std::allocator<String> > 
   >' operator
/usr/include/g++-v3/bits/stl_iterator.h:453: candidates are: 
   std::__normal_iterator<const String*, std::vector<const String, 
   std::allocator<const String> > >& std::__normal_iterator<const String*, 
   std::vector<const String, std::allocator<const String> > >::operator=(const 
   std::__normal_iterator<const String*, std::vector<const String, 
   std::allocator<const String> > >&)
update-menus.cc:550: no match for `std::__normal_iterator<const String*, 
   std::vector<const String, std::allocator<const String> > >& != 
   std::__normal_iterator<String*, std::vector<String, std::allocator<String> > 
   >' operator
update-menus.cc: In function `int create_lock()':
update-menus.cc:701: no matching function for call to 
   `std::basic_ofstream<char, std::char_traits<char> >::basic_ofstream(int&)'
/usr/include/g++-v3/bits/std_iosfwd.h:84: candidates are: 
   std::basic_ofstream<char, std::char_traits<char> >::basic_ofstream(const 
   std::basic_ofstream<char, std::char_traits<char> >&)
/usr/include/g++-v3/bits/std_fstream.h:319:                 
   std::basic_ofstream<_CharT, _Traits>::basic_ofstream(const char*, 
   std::_Ios_Openmode = (std::ios_base::out | std::ios_base::trunc)) [with 
   _CharT = char, _Traits = std::char_traits<char>]
/usr/include/g++-v3/bits/std_fstream.h:313:                 
   std::basic_ofstream<_CharT, _Traits>::basic_ofstream() [with _CharT = char, 
   _Traits = std::char_traits<char>]
make[2]: *** [update-menus.o] Error 1
make[2]: Leaving directory `/root/menu-2.1.5/update-menus'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/menu-2.1.5'
make: *** [build-stamp] Error 2

Compilation exited abnormally with code 2 at Wed May 15 14:39:39


-- 
~/.signature under construction


-- 
To UNSUBSCRIBE, email to debian-hurd-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: