I believe this to be a specific blackbox code issue as opposed to an SUSE issue, but felt should ask the community before heading off to blackbox wiki incase someone has seen this issue before or incase someone see’s this issue later with our openSUSE.
Environment Detail : Acer aspire one D255 netbook, opensuse 11.4, kernal source, syms and gcc installed.
Previous thread : Blackbox installing problem
Post which was asked to post in development.
Issue:
At first
"Image.cc:1350:42: error: ‘memcpy’ was not declared in this scope
Found out the solution by just reading up “memcopy c++” through google and when looked into the code library files (in this case Image.cc, Resource.cc) fixed them and ran make as su. Hit another one, which looks like a code issue again.
Current issue
Util.cc:197:64: error: ‘std::string bt::textPropertyToString(Display*, XTextProperty&)’ should have been declared inside 'bt
The function causing issue
std::string bt::textPropertyToString(:: Display *display,
:: XTextProperty& text_prop) {
std::string ret;
if (text_prop.value && text_prop.nitems > 0) {
if (text_prop.encoding == XA_STRING) {
ret = reinterpret_cast<char *>(text_prop.value);
} else {
text_prop.nitems = strlen(reinterpret_cast<char *>(text_prop.value));
char **list;
int num;
if (XmbTextPropertyToTextList(display, &text_prop,
&list, &num) == Success &&
num > 0 && *list) {
ret = *list;
XFreeStringList(list);
}
}
}
return ret;
}
Can someone help out ?
Please note that there is no space between :: and D, :: and X in the function declaration line (highlighted in green). Had to do it to make sure that no emotions are put into the text