Snapshot

Help
wru
2013-06-09
2013-06-22
  • wru
    wru
    2013-06-09

    Slackware 13.37 x86_64
    I think we should create a configuration file by running autogen.sh.
    I get a configure error.

    In addition, i would like to run `./configure' from gimagereader.SlackBuild like this:

    ./autogen.sh
    
    CFLAGS="$SLKCFLAGS" \
    CXXFLAGS="$SLKCFLAGS" \
    ./configure \
      --prefix=/usr \
      --libdir=/usr/lib${LIBDIRSUFFIX} \
      --sysconfdir=/etc \
      --localstatedir=/var \
      --disable-static \
      --mandir=/usr/man \
      --docdir=/usr/doc/$PRGNAM-$VERSION \
      --build=$ARCH-slackware-linux
    
     
    Last edit: wru 2013-06-22
    Attachments
  • Sandro Mani
    Sandro Mani
    2013-06-09

    Thanks for your feedback. I've pushed some fixes, they should fix some of the issues. Other issues (such as the possibly undefined macros) however are strange, what version of autoconf/automake are you using? On my fedora box I have automake-1.13.2 and autoconf-2.69.

     
  • wru
    wru
    2013-06-10

    I use default installation of Slackware 13.37 64-bit release.
    automake-1.11.1 autoconf-2.68

     
    Last edit: wru 2013-06-10
  • Sandro Mani
    Sandro Mani
    2013-06-10

    Could you try again with the newest commits, and re-post the output if errors still occur?

     
  • wru
    wru
    2013-06-11

    Here we are.

    gimagereader-git-2013-06-11

     
    Last edit: wru 2013-06-22
  • Sandro Mani
    Sandro Mani
    2013-06-12

    Okay, it should be fixed now. Please try again :)

     
  • wru
    wru
    2013-06-13

    Thanks. Looks better.
    Another configure error occurred)

     
    Attachments
  • Sandro Mani
    Sandro Mani
    2013-06-13

    Thanks for testing! You need to install autoconf-archive or similar (the macro is not part of the stock autconf macro set), then it should work.

     
  • wru
    wru
    2013-06-15

    I have virtual machine with Slackware 14.0 x86 running under VirtualBox. I try to build gImageReader on it because Slackware 14.0 already include GTK 3.
    Now i get make error:

     
    Attachments
  • Sandro Mani
    Sandro Mani
    2013-06-15

    Looks like you've got oldish versions of libsigc++20 and gtkmm30. You need libsigc++ >= 2.3.x and gtkmm30 >= 3.6.x (I'll fix the buildsystem to check these versions). You also need a gcc version with fairly complete C++11 support (I think >= 4.6.x should work).

     
  • wru
    wru
    2013-06-19

    Hi!
    The build was successful, but segmentation fault.

     
  • Sandro Mani
    Sandro Mani
    2013-06-20

    Hello,

    Could you obtain a backtrace with gdb?

    Thanks,
    Sandro

     
  • wru
    wru
    2013-06-20

    Don't know how it's done. The best way to learn how to do this is to do it)

     
    Attachments
  • Sandro Mani
    Sandro Mani
    2013-06-20

    Ok, that backtrace is already pretty useful, though it would be nice to also have the exact position where the crash occurs. Do you have debuginfo packages in slackware? Or could you compile the gtkspell3 package with debugging symbols? I see that you have already compiled gImageReader with debugging symbols (notice the more complete output in the backtrace, i.e. line numbers).

    Thanks!

     
  • wru
    wru
    2013-06-21

    Slackware does not provide a separate debugging symbols package.
    I comment out the stripping commands in the build scripts and rebuild gimagereader, gtkspell3, gtkspellmm.

     
    Last edit: wru 2013-06-21
    Attachments
  • Sandro Mani
    Sandro Mani
    2013-06-21

    Oh, apparently you have a myspell dictionary which is named just "en"? (Usually they are in the format LanguageCode_CountryCode, i.e. en_US).

    What output does the following program give you?


    #include <gtkspell/gtkspell.h>
    #include <stdio.h>
    
    int main()
    {
        GList* list = gtk_spell_checker_get_language_list();
        while(list != NULL)
        {
            printf("%s\n", list->data);
            list = list->next;
        }
        g_list_free(list);
        return 0;
    }
    

    gcc -o test test.c $(pkg-config --cflags --libs gtkspell3-3.0 gtk+-3.0)

     
    Last edit: Sandro Mani 2013-06-21
  • Sandro Mani
    Sandro Mani
    2013-06-21

    Could you also try the latest gtkspell snapshot from here [1]? I've increased the robustness of some routines, and now it should not crash anymore.

    [1] https://sourceforge.net/p/gtkspell/code/ci/default/tree/

     
  • wru
    wru
    2013-06-22

    There is a list of available dictionaries at
    http://extensions.services.openoffice.org/en/dictionaries
    I just copied the spelling dictionaries (.dic and .aff) to a /usr/share/myspell/dicts without creating a package.

    Testing output:

    $ ./test
    en
    en_CA
    en_GB
    en_US
    ru_RU_yo
    tr
    $ ls /usr/share/myspell/dicts
    en_US.aff en_US.dic ru_RU_yo.aff ru_RU_yo.dic

    gImageReader with the GtkSpell snapshot:

     
    Last edit: wru 2013-06-22
  • Sandro Mani
    Sandro Mani
    2013-06-22

    Wow, thanks for that :) So, two issues I see remaining:
    - The version check is obviously wrong, 0.9 < 2.99
    - Crash at exit.

    I'll investigate.