Menu

CDRDAO-1.1.5 fails to build

Help
Anonymous
2002-03-25
2002-06-28
  • Anonymous

    Anonymous - 2002-03-25

    Hi,
    I'm trying to compile cdrdao-1.1.5 on my Slackware 8.0 (kernel 2.4.18, gcc 2.95.3, pccts 1.33) with this command:
    ./configure --prefix=/usr --with-pcctsbin=/usr/local/src/pccts/bin --with-pcctsinc=/usr/local/src/pccts/h
    it seems ok, but when I 'make' I have the following error:
    O2  -c TocParser.cpp -o TocParser.o
    In file included from /usr/local/src/pccts/h/AParser.h:42,
                     from TocParser.cpp:18:
    /usr/local/src/pccts/h/ATokenBuffer.h:86: ANSI C++ forbids declaration `bufferSize' with no type
    make[1]: *** [TocParser.o] Error 1
    make[1]: Leaving directory `/usr/local/src/cdrdao-1.1.5/trackdb'
    make: *** [all] Error 1
    I'm not a programmer, so I don't understand its meaning and how to solve this problem.
    Could someone please help me?
    Thanks in advance.

     
    • flow control

      flow control - 2002-06-28

      I got the exact same problem, only I'm using gcc 2.96 w/ RedHat 7.3.  Changing the bufferSize declaration to type "int" seemed to work.  So in your ATokenBuffer.h file, on line 86, change it from:

      virtual bufferSize() { return buffer_size; }

      to:

      virtual int bufferSize() { return buffer_size; }

      This also needed to be done in AParser.cpp; change lines 49 and 50:

      static const zzINF_DEF_TOKEN_BUFFER_SIZE = 2000;
      static const zzINF_BUFFER_TOKEN_CHUNK_SIZE = 1000;

      to:

      static const int zzINF_DEF_TOKEN_BUFFER_SIZE = 2000;
      static const int zzINF_BUFFER_TOKEN_CHUNK_SIZE = 1000;

      Hopefully they were meant to be integers! ;).   Looks like it though (2000 & 1000), and cdrdao is now burning CDs correctly. 

      Cheers.

       

Log in to post a comment.