Menu

Cygwin

phil_n
2005-07-20
2013-04-15
  • phil_n

    phil_n - 2005-07-20

    Has anyone tried to compile dbacl under cygwin? I've got past the stage of it not being able to find gcc *g* but I've now got a compiler error that I can't see how to fix. The entire output of ./configure && make && make check is pretty large but the last bit where the error appears to occur looks like this:

    gcc -funsigned-char -Wall -pedantic  -O3 -g -O2  -o bayesol  bayesol.o fram.o ri
    sk-lexer.o risk-parser.o probs.o util.o jenkins.o jenkins2.o mtherr.o igam.o gam
    ma.o const.o polevl.o isnan.o ndtr.o  -lm
    risk-lexer.o: In function `yylex':
    /home/ttpsn/chess/dbacl/src/lex.yy.c:941: undefined reference to `_yywrap'
    Info: resolving _optind by linking to __imp__optind (auto-import)
    Info: resolving _optarg by linking to __imp__optarg (auto-import)
    collect2: ld returned 1 exit status
    make[3]: *** [bayesol] Error 1
    make[3]: Leaving directory `/home/ttpsn/chess/dbacl/src'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/ttpsn/chess/dbacl/src'
    make[1]: *** [all-recursive-am] Error 2
    make[1]: Leaving directory `/home/ttpsn/chess/dbacl/src'
    make: *** [all-recursive] Error 1

    ---------

    Any good ideas?

    Cheers

    Phil

     
    • phil_n

      phil_n - 2005-07-20

      Just noticed that further up it says:

      checking for flex... no
      checking for lex... no
      checking for flex... /home/ttpsn/chess/dbacl/config/missing flex
      checking for yywrap in -lfl... no
      checking for yywrap in -ll... no
      checking lex output file root... lex.yy
      checking whether yytext is a pointer... yes
      checking for bison... no
      checking for byacc... no
      checking for log in -lm... yes
      checking for initscr in -lncurses... no
      configure: WARNING: libncurses missing (needed by readline), disabling interactive mailinspect

      ----------------

      But I have no idea how to fix this!

       
    • phil_n

      phil_n - 2005-07-20

      Oops. Ok, installed flex package and it appears to have worked, I hope... sorry about that! (stupid newbies mumble mumble etc).

       
      • Laird Breyer

        Laird Breyer - 2005-07-21

        Thanks for finding this. I hadn't come across this problem when testing the build on a variety of Unix systems before, but I'll try to change the configure script in the next version to be more friendly.

         

Log in to post a comment.