Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 581660

Summary: sys-block/thin-provisioning-tools-0.4.1 on musl: base/application.cc:59:9: error: ‘::basename’ has not been declared
Product: Gentoo Linux Reporter: Laine Gholson <laine.gholson>
Component: [OLD] Core systemAssignee: Robin Johnson <robbat2>
Status: RESOLVED FIXED    
Severity: normal CC: base-system, musl
Priority: Normal    
Version: unspecified   
Hardware: ARM   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430702    
Attachments: logs and emerge info
Patch from upstream git

Description Laine Gholson 2016-04-30 16:43:53 UTC
Created attachment 432716 [details]
logs and emerge info

here is where it failed:
base/application.cc: In member function ‘std::string base::application::basename(const string&) const’:
base/application.cc:59:9: error: ‘::basename’ has not been declared
  return ::basename(buffer);
         ^
base/application.cc:60:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
Makefile:125: recipe for target 'base/application.o' failed
make: *** [base/application.o] Error 1
make: *** Waiting for unfinished jobs....
    [DEP] base/progress_monitor.cc
In file included from ./persistent-data/block.h:152:0,
                 from ./persistent-data/file_utils.h:4,
                 from base/xml_utils.cc:3:
./persistent-data/block.tcc: In function ‘void {anonymous}::syscall_failed(const char*)’:
./persistent-data/block.tcc:48:55: error: invalid conversion from ‘int’ to ‘char*’ [-fpermissive]
   char *msg = strerror_r(errno, buffer, sizeof(buffer));
                                                       ^
    [DEP] base/base64.cc
Makefile:125: recipe for target 'base/xml_utils.o' failed
make: *** [base/xml_utils.o] Error 1
Comment 1 Felix Janda 2016-04-30 19:03:10 UTC
Created attachment 432720 [details, diff]
Patch from upstream git

This patch should fix the compilation error.

(Also it would be good to link this bug to the tracker bug 430702.)
Comment 2 SpanKY gentoo-dev 2016-05-09 17:22:45 UTC
this is already fixed in the newer versions (0.5.3+)