Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Blackbox WM installation issue

  1. #1
    Join Date
    Mar 2011
    Location
    melbourne
    Posts
    27

    Default Blackbox WM installation issue

    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

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,336
    Blog Entries
    15

    Default Re: Blackbox WM installation issue

    Hi
    Looks like the same error in this bug;
    Bug 348556 &ndash; x11-wm/blackbox-0.70.1 fails to build with >=x11-libs/libX11-1.4.0
    Not very clear on the fix...

    Your original error was fixed by adding the following?
    Code:
    #include <string.h>
    You only need to run make install as root or use sudo, configure and make as your user.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3
    Join Date
    Mar 2011
    Location
    melbourne
    Posts
    27

    Default Re: Blackbox WM installation issue

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Looks like the same error in this bug;
    Bug 348556 &ndash; x11-wm/blackbox-0.70.1 fails to build with >=x11-libs/libX11-1.4.0
    Not very clear on the fix...

    Your original error was fixed by adding the following?
    Code:
    #include <string.h>
    You only need to run make install as root or use sudo, configure and make as your user.
    Yes, the first issue with memcpy was fixed when I added #include<string.h> into Image.cc and Resource.cc in blackbox/lib folder and ran make.

    Post which i saw this error about "string bt" which looked like a code/declaration/syntax issue.

    will verify the link and try another run of configure and make as myself and make install (if i get past the make) as root as sudo make install.

    Will update tonight (AEST)

  4. #4
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,336
    Blog Entries
    15

    Default Re: Blackbox WM installation issue

    Hi
    OK, this should fix it;
    Code:
    sed -i -e "s/_XUTIL_H_/_X11&/" lib/Util.hh
    That's replacing _XUTIL_H_ with _X11& in the file lib/Util.hh
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  5. #5
    Join Date
    Mar 2011
    Location
    melbourne
    Posts
    27

    Default Re: Blackbox WM installation issue

    Quote Originally Posted by malcolmlewis View Post
    Hi
    OK, this should fix it;
    Code:
    sed -i -e "s/_XUTIL_H_/_X11&/" lib/Util.hh
    That's replacing _XUTIL_H_ with _X11& in the file lib/Util.hh
    Great!.. will try it when i get back home.
    Also have raised a bug with blackbox (Artifact 3239068) and will update in the next 10 hours.

    Cheers.

  6. #6
    Join Date
    Mar 2011
    Location
    melbourne
    Posts
    27

    Default Re: Blackbox WM installation issue

    Quote Originally Posted by viktordtn View Post
    Great!.. will try it when i get back home.
    Also have raised a bug with blackbox (Artifact 3239068) and will update in the next 10 hours.

    Cheers.
    this piece of code is basically full of errors!!.. Malcolmlewis, your fix worked and I did move ahead in the chain, but hit another one!

    XDG.cc: In function 'std::list<std::basic_string<char> > readEnvDirList(const char*, const char*)':
    XDG.cc:65:38: error: 'find' is not a member of 'std'

    the blackbox version am working on is .70.1.

    I guess its more debugging for me, but would appreciate any help!

  7. #7

    Default Re: Blackbox WM installation issue

    viktordtn wrote:
    > viktordtn;2310964 Wrote:
    >> Great!.. will try it when i get back home.
    >> Also have raised a bug with blackbox (Artifact 3239068) and will update
    >> in the next 10 hours.
    >>
    >> Cheers.

    >
    > this piece of code is basically full of errors!!


    I'm only skimming but this statement rings alarm bells. AFAIK, blackbox
    is a fairly well-known and stable WM. As such, it's unlikely to be "full
    of errors", so instead I would be looking for problems such as the wrong
    compilation environment or toolchain or somesuch.

    Just a thought.

  8. #8
    Join Date
    Mar 2011
    Location
    melbourne
    Posts
    27

    Default Re: Blackbox WM installation issue

    Quote Originally Posted by djh-novell View Post
    viktordtn wrote:
    > viktordtn;2310964 Wrote:
    >> Great!.. will try it when i get back home.
    >> Also have raised a bug with blackbox (Artifact 3239068) and will update
    >> in the next 10 hours.
    >>
    >> Cheers.

    >
    > this piece of code is basically full of errors!!


    I'm only skimming but this statement rings alarm bells. AFAIK, blackbox
    is a fairly well-known and stable WM. As such, it's unlikely to be "full
    of errors", so instead I would be looking for problems such as the wrong
    compilation environment or toolchain or somesuch.

    Just a thought.

    agree and that what I would have thought as well.. that it would be stable, but i see alot of issues because its not available through yast in opensuse. But ur point is also right that might be an environment that i need to fix instead of changing all these files and as a matter of fact, i did change quite a few in lib src folders. It was quite a few and the only reason i updated these files with string.h is where there were reference to string functions.

    Post all that I am having another issue..now

    ../lib/.libs/libbt.a(Unicode.o): In function `convert<std::basic_string<unsigned int>, std::basic_string<char> >':
    /home/vighi/Softwares/blackbox/blackbox-0.70.1-old/lib/Unicode.cc:86: undefined reference to `libiconv_open'
    /home/vighi/Softwares/blackbox/blackbox-0.70.1-old/lib/Unicode.cc:113: undefined reference to `libiconv'
    /home/vighi/Softwares/blackbox/blackbox-0.70.1-old/lib/Unicode.cc:155: undefined reference to `libiconv_close'
    ../lib/.libs/libbt.a(Unicode.o): In function `bt::hasUnicode()':
    /home/vighi/Softwares/blackbox/blackbox-0.70.1-old/lib/Unicode.cc:197: undefined reference to `libiconv_open'
    /home/vighi/Softwares/blackbox/blackbox-0.70.1-old/lib/Unicode.cc:204: undefined reference to `libiconv_close'
    ../lib/.libs/libbt.a(Unicode.o): In function `convert<std::basic_string<char>, std::basic_string<unsigned int> >':
    /home/vighi/Softwares/blackbox/blackbox-0.70.1-old/lib/Unicode.cc:86: undefined reference to `libiconv_open'
    /home/vighi/Softwares/blackbox/blackbox-0.70.1-old/lib/Unicode.cc:113: undefined reference to `libiconv'
    /home/vighi/Softwares/blackbox/blackbox-0.70.1-old/lib/Unicode.cc:155: undefined reference to `libiconv_close'
    collect2: ld returned 1 exit status
    make[2]: *** [blackbox] Error 1


    I know i have libiconv installed properly as per the documentation that comes with libiconv. I couldnt find a yast package, so downloaded it and installed it as per the instrucution.

    Cnt go on anymore tonight.. but could really use some help with this.

  9. #9
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,336
    Blog Entries
    15

    Default Re: Blackbox WM installation issue

    Hi
    Just had a look on the build service and blackbox 0.70.1 is there, just not built for 11.4 (They haven't enabled the repository), unfortunately the build service is down for maintenance for an hour or so. Once back up I'll post the link.

    Else grab the src rpm and rebuild that;
    Code:
    wget -c ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/X11%3A/windowmanagers/openSUSE_Factory/src/blackbox-0.70.1-114.10.src.rpm
    rpmbuild --rebuild
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  10. #10
    Join Date
    Mar 2011
    Location
    melbourne
    Posts
    27

    Default Re: Blackbox WM installation issue

    Thank you Malcolm.. I just tried these steps and got an error during the build.. Happened during autoreconf run. It complained that the package is missing the alocal file which I did find in the original source file from blackbox.


    + autoreconf -fi
    Can't exec "aclocal": No such file or directory at
    /usr/share/autoconf/Autom4te/FileUtils.pm line 326.
    autoreconf: failed to run aclocal: No such file or directory
    error: Bad exit status from /var/tmp/rpm-tmp.cNYvx8 (%build)


    RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.cNYvx8 (%build)

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •