Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 581660 - sys-block/thin-provisioning-tools-0.4.1 on musl: base/ error: ‘::basename’ has not been declared
Summary: sys-block/thin-provisioning-tools-0.4.1 on musl: base/ er...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Robin Johnson
Depends on:
Blocks: musl-porting
  Show dependency tree
Reported: 2016-04-30 16:43 UTC by Laine Gholson
Modified: 2016-05-09 17:22 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

logs and emerge info (info.txt,11.82 KB, text/plain)
2016-04-30 16:43 UTC, Laine Gholson
Patch from upstream git (thin-provisioning-tools-0.4.1-musl.patch,1.46 KB, patch)
2016-04-30 19:03 UTC, Felix Janda
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Laine Gholson 2016-04-30 16:43:53 UTC
Created attachment 432716 [details]
logs and emerge info

here is where it failed:
base/ In member function ‘std::string base::application::basename(const string&) const’:
base/ error: ‘::basename’ has not been declared
  return ::basename(buffer);
base/ 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/
In file included from ./persistent-data/block.h:152:0,
                 from ./persistent-data/file_utils.h:4,
                 from base/
./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/
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+)