Can't compile 0.42

Help
2004-04-06
2004-04-16
  • Filippo Moriggia

    I have Mepis Linux (Debian Unstable substanstially).

    Do you have debs for this program?

    I download, ./configure and make. During make I receive this error:

    make  all-recursive
    make[1]: Entering directory `/home/filippo/qfsm-0.42'
    Making all in src
    make[2]: Entering directory `/home/filippo/qfsm-0.42/src'
    if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/share/qt3/include -I/usr/X11R6/include  -DQT_THREAD_SUPPORT  -D_REENTRANT -g  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -fno-exceptions -fno-check-new  -MT Convert.o -MD -MP -MF ".deps/Convert.Tpo" \   -c -o Convert.o `test -f 'Convert.cpp' || echo './'`Convert.cpp; \ then mv -f ".deps/Convert.Tpo" ".deps/Convert.Po"; \ else rm -f ".deps/Convert.Tpo"; exit 1; \ fi
    In file included from IOInfoBin.h:22,
                     from Convert.h:23,
                     from Convert.cpp:22:
    IOInfo.h:23:19: qlist.h: No such file or directory
    make[2]: *** [Convert.o] Error 1
    make[2]: Leaving directory `/home/filippo/qfsm-0.42/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/filippo/qfsm-0.42'
    make: *** [all] Error 2

    Bye

     
    • Stefan Duffner

      Stefan Duffner - 2004-04-13

      Try to replace

      #include <qlist.h>

      with:

      #include <qptrlist.h>

      The QList class has been renamed.
      Hope that works.

      Regards,
      Stefan

       
    • Filippo Moriggia

      Ok, I've renamed the qlist.h in a lot of sources. After that I get:

      IOInfoBin.cpp: In member function `virtual void IOInfoBin::setSize(int)':
      IOInfoBin.cpp:231: error: ISO C++ forbids variable-size array `old'
      make[2]: *** [IOInfoBin.o] Error 1
      make[2]: Leaving directory `/home/filippo/qfsm-0.42/src'
      make[1]: *** [all-recursive] Error 1
      make[1]: Leaving directory `/home/filippo/qfsm-0.42'
      make: *** [all] Error 2

      What's the problem?

      I have also seen on the cvs the qlist isn't renamed...

      Thanks

      Bye

       
    • Stefan Duffner

      Stefan Duffner - 2004-04-15

      I'm sorry the CVS repository isn't up to date, as I have limited Internet access at the moment.
      Here is a patch that will resolve the problem:

      --- qfsm-0.42.orig/src/IOInfoBin.cpp
      +++ qfsm-0.42/src/IOInfoBin.cpp
      @@ -228,10 +228,10 @@
      void IOInfoBin::setSize(int newin)
      {
         int oldin = getLength();
      -  char old[oldin+1];
         int oldcount;
      -  char *pin;
      +  char *old, *pin;

      +  old = new char[oldin+1];
         pin = getInfo();
         for (int i=0; i<=oldin; i++)
         {
      @@ -254,6 +254,7 @@

         setInfo(pin);

      +  delete [] old;
         delete [] pin;

      }

      Regards,
      Stefan

       
    • Filippo Moriggia

      Ok, it worked!

      After patching manually (never used the "patch" tool for linux, but gave me an error, so I edited the file manually) and resolving a broken link to libGL.so (pointed to a wrong version) I was finally able to complete the build and run the tool.

      I'm happy with it and I thank you very much.

      I think you should release a new version with the 2 problems above fixed: it's a great and useful tool and it should be easily maked.

      Why don't you create the .deb for this tool? and make it available in the debian repository?

      Bye

       
      • Stefan Duffner

        Stefan Duffner - 2004-04-16

        I'm glad to hear that.

        Concerning the .deb file, I'm not familiar with debian Linux and the procedure to build a package, put it in the repository etc.
        But it's a good idea. I want to make installation as easy as possible for everyone.

        Regards,
        Stefan

         

Log in to post a comment.