hypermail-project / hypermail

Hypermail is a free (GPL) program to convert email from Unix mbox format to html.
http://www.hypermail-project.org/
GNU General Public License v2.0
147 stars 71 forks source link

configure runs succesfully even if yacc is not installed #61

Closed kingram6865 closed 4 years ago

kingram6865 commented 4 years ago
pcre-8.43 configuration summary:

    Install prefix .................. : /usr/local
    C preprocessor .................. : gcc -E
    C compiler ...................... : gcc
    C++ preprocessor ................ : g++ -E
    C++ compiler .................... : g++
    Linker .......................... : /usr/bin/ld -m elf_x86_64
    C preprocessor flags ............ : 
    C compiler flags ................ : -g -O2 -fvisibility=hidden
    C++ compiler flags .............. : -O2 -fvisibility=hidden -fvisibility-inlines-hidden
    Linker flags .................... : 
    Extra libraries ................. : 

    Build 8 bit pcre library ........ : yes
    Build 16 bit pcre library ....... : no
    Build 32 bit pcre library ....... : no
    Build C++ library ............... : yes
    Enable JIT compiling support .... : no
    Enable UTF-8/16/32 support ...... : no
    Unicode properties .............. : no
    Newline char/sequence ........... : lf
    \R matches only ANYCRLF ......... : no
    EBCDIC coding ................... : no
    EBCDIC code for NL .............. : n/a
    Rebuild char tables ............. : no
    Use stack recursion ............. : yes
    POSIX mem threshold ............. : 10
    Internal link size .............. : 2
    Nested parentheses limit ........ : 250
    Match limit ..................... : 10000000
    Match limit recursion ........... : MATCH_LIMIT
    Build shared libs ............... : yes
    Build static libs ............... : yes
    Use JIT in pcregrep ............. : no
    Buffer size for pcregrep ........ : 20480
    Link pcregrep with libz ......... : no
    Link pcregrep with libbz2 ....... : no
    Link pcretest with libedit ...... : no
    Link pcretest with libreadline .. : no
    Valgrind support ................ : no
    Code coverage ................... : no

src/pcre configured properly
gcc -shared  pcreposix.lo  -Wl,--rpath -Wl,/home/kingram/src/hypermail/src/pcre/.libs -Wl,--rpath -Wl,/usr/local/lib  -L/home/kingram/src/hypermail/src/pcre /home/kingram/src/hypermail/src/pcre/.libs/libpcre.so  -Wl,-soname -Wl,libpcreposix.so.0 -o .libs/libpcreposix.so.0.0.0
(cd .libs && rm -f libpcreposix.so.0 && ln -s libpcreposix.so.0.0.0 libpcreposix.so.0)
(cd .libs && rm -f libpcreposix.so && ln -s libpcreposix.so.0.0.0 libpcreposix.so)
ar cru .libs/libpcreposix.a  pcreposix.o 
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib .libs/libpcreposix.a
creating libpcreposix.la
(cd .libs && rm -f libpcreposix.la && ln -s ../libpcreposix.la libpcreposix.la)
gcc  -c -g -O2  -Ipcre -DTRIO_MINIMAL  -I.   ./pcretest.c
./pcretest.c: In function ‘callout’:
./pcretest.c:327:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 if ((int)(cb->callout_data) != 0)
     ^
./pcretest.c:329:43: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   fprintf(outfile, "Callout data = %d\n", (int)(cb->callout_data));
                                           ^
./pcretest.c:330:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   return (int)(cb->callout_data);
          ^
./pcretest.c: In function ‘main’:
./pcretest.c:1249:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
         extra->callout_data = (void *)callout_data;
                               ^
/bin/bash ./libtool --mode=link gcc  -g -O2  -Ipcre -DTRIO_MINIMAL  -I. -I.   -o pcretest  pcretest.o \
        -lpcre libpcreposix.la
gcc -g -O2 -Ipcre -DTRIO_MINIMAL -I. -I. -o .libs/pcretest pcretest.o  ./.libs/libpcreposix.so -L/home/kingram/src/hypermail/src/pcre /home/kingram/src/hypermail/src/pcre/.libs/libpcre.so -Wl,--rpath -Wl,/usr/local/lib
creating pcretest
gcc  -c -g -O2  -Ipcre -DTRIO_MINIMAL  -I.  -DIS_UNIX ./pcregrep.c
/bin/bash ./libtool --mode=link gcc  -g -O2  -Ipcre -DTRIO_MINIMAL  -I. -I. -o pcregrep pcregrep.o -lpcre
gcc -g -O2 -Ipcre -DTRIO_MINIMAL -I. -I. -o .libs/pcregrep pcregrep.o  /home/kingram/src/hypermail/src/pcre/.libs/libpcre.so -Wl,--rpath -Wl,/usr/local/lib
creating pcregrep
make[2]: Leaving directory '/home/kingram/src/hypermail/src/pcre'
gcc  -c -g -O2  -Ipcre -DTRIO_MINIMAL  base64.c
gcc  -c -g -O2  -Ipcre -DTRIO_MINIMAL  date.c
gcc  -c -g -O2  -Ipcre -DTRIO_MINIMAL  domains.c
gcc  -c -g -O2  -Ipcre -DTRIO_MINIMAL  file.c
file.c: In function ‘matches_existing’:
file.c:811:20: warning: implicit declaration of function ‘parse_old_html’ [-Wimplicit-function-declaration]
  msgids_are_same = parse_old_html(msgnum, eptr, 0, 0, NULL, 1);
                    ^~~~~~~~~~~~~~
gcc  -c -g -O2  -Ipcre -DTRIO_MINIMAL  hypermail.c
gcc  -c -g -O2  -Ipcre -DTRIO_MINIMAL  lang.c
gcc  -c -g -O2  -Ipcre -DTRIO_MINIMAL  lock.c
gcc  -c -g -O2  -Ipcre -DTRIO_MINIMAL  mem.c
gcc  -c -g -O2  -Ipcre -DTRIO_MINIMAL  parse.c
gcc  -c -g -O2  -Ipcre -DTRIO_MINIMAL  print.c
gcc  -c -g -O2  -Ipcre -DTRIO_MINIMAL  printfile.c
gcc  -c -g -O2  -Ipcre -DTRIO_MINIMAL  string.c
gcc  -c -g -O2  -Ipcre -DTRIO_MINIMAL  struct.c
gcc  -c -g -O2  -Ipcre -DTRIO_MINIMAL  uudecode.c
gcc  -c -g -O2  -Ipcre -DTRIO_MINIMAL  dmatch.c
gcc  -c -g -O2  -Ipcre -DTRIO_MINIMAL  setup.c
setup.c: In function ‘PreConfig’:
setup.c:960:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
          *(int *)cfg[i].value = (int)defval;
                                 ^
gcc  -c -g -O2  -Ipcre -DTRIO_MINIMAL  threadprint.c
Expect 13 shift/reduce conflicts.
yacc getdate.y
make[1]: yacc: Command not found
make[1]: *** [Makefile:86: getdate.c] Error 127
make[1]: Leaving directory '/home/kingram/src/hypermail/src'
make: *** [Makefile:39: hypermail] Error 2
jkbzh commented 4 years ago

@kingram6865 thanks for your report. The problem is not from pcre but your missing yacc for compiling one part of hypermail. Install bison in debian 10 and it will work. Hypermail is missing that detection in its configure and that's the issue.