[haiku-commits] Re: haiku: hrev43891 - in src/bin/bfs_tools/lib: . src/bin/bfs_tools

  • From: Alexander von Gluck <kallisti5@xxxxxxxxxxx>
  • To: <haiku-commits@xxxxxxxxxxxxx>
  • Date: Mon, 26 Mar 2012 15:55:14 -0500

On 26.03.2012 15:48, axeld@xxxxxxxxxxxxxxxx wrote:
hrev43891 adds 1 changeset to branch 'master'
old head: 8a7256ae148194e80a7e28e8e096c691c6d5cd5e
new head: 647cff2e5925f2a1483b94aaff5620647ddf11bd


----------------------------------------------------------------------------

647cff2: Imported BFS-Tools (without docs), added bfsinfo to the image.

* The sources are unchanged, and most of it doesn't follow Haiku's coding style -- stuff that I updated over the years might also have seen a coding
    style update.
  * This was also the basis on which Haiku's BFS has been written.
  * In the long run, the stuff in 'lib' that is already part of BFS should
    be removed, and used directly from BFS itself.
* I haven't yet added any other of the tools to the image. Not sure if they are ready for inclusion yet; 'recover' could also be renamed to reflect that
    it is BFS specific.

src/bin/bfs_tools/lib/Cache.h: In member function 'Cache<T>::Cacheable* Cache<T>::Get(T)': src/bin/bfs_tools/lib/Cache.h:136:15: error: 'stderr' was not declared in this scope src/bin/bfs_tools/lib/Cache.h:136:73: error: there are no arguments to 'fprintf' that depend on a template parameter, so a declaration of 'fprintf' must be available [-fpermissive] src/bin/bfs_tools/lib/Cache.h:136:73: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) src/bin/bfs_tools/lib/Cache.h:159:14: error: 'stderr' was not declared in this scope src/bin/bfs_tools/lib/Cache.h:159:68: error: there are no arguments to 'fprintf' that depend on a template parameter, so a declaration of 'fprintf' must be available [-fpermissive]
In file included from src/bin/bfs_tools/bfsinfo.cpp:9:0:
src/bin/bfs_tools/lib/Disk.h: In member function 'void Disk::SetName(const char*)': src/bin/bfs_tools/lib/Disk.h:57:67: error: 'strcpy' was not declared in this scope
In file included from src/bin/bfs_tools/bfsinfo.cpp:10:0:
src/bin/bfs_tools/lib/BPlusTree.h: At global scope:
src/bin/bfs_tools/lib/BPlusTree.h:161:3: error: a class-key must be used when declaring a friend src/bin/bfs_tools/lib/BPlusTree.h:161:3: error: friend declaration does not name a class or function src/bin/bfs_tools/lib/BPlusTree.h: In member function 'status_t BPlusTree::Insert(const char*, off_t)': src/bin/bfs_tools/lib/BPlusTree.h:201:40: error: 'strlen' was not declared in this scope


Cough *gcc4 broken* cough.

 -- Alex

Other related posts: