[pcre-dev] pcretest is what's failing to build properly

Pàgina inicial
Delete this message
Autor: Sheri
Data:  
A: pcre-dev
Assumpte: [pcre-dev] pcretest is what's failing to build properly
I made a small change in Makefile.in (changed ucptable.c to ucptable.h)
and I replaced pcretest.c with the one from 7.0 and managed build a
7.1RC3 pcre.dll library using the old make procedure.

This was the error I was seeing on console during make before reverting
to pcretest.c from 7.0 was this:

gcc -c -O3 -s -I. -I. -DSUPPORT_UTF8 -DSUPPORT_UCP \
         ./pcretest.c
./pcretest.c: In function `main':
./pcretest.c:1340: error: too many arguments to function `pcre_printint'
make: *** [pcretest.o] Error 1


I think this is similar to the error I got when trying to use "make
check" after configuring the 7.1 RCs with the autoconf procedures.

After replacing pcretest.c, 7.0-style make produced the 7.1 dll files
and then errored out on a problem with stringpiece.h. Don't know why it
stumbles on considering I disabled cpp.

In file included from ./pcrecpp.cc:45:
./pcre_stringpiece.h:45:5: #if with no expression
./pcre_stringpiece.h:48:7: #if with no expression
make: *** [pcrecpp.o] Error 1

Once I had the library I tried to build the newer pcretest manually:

$ gcc -L./ -o newpcretest.exe ../newerpcretest.c -lpcre
In file included from ../newerpcretest.c:104:
../pcre_printint.src: In function `print_char':
../pcre_printint.src:82: error: `utf8_table4' undeclared (first use in
this function)
../pcre_printint.src:82: error: (Each undeclared identifier is reported
only once
../pcre_printint.src:82: error: for each function it appears in.)
../pcre_printint.src:84: error: `utf8_table3' undeclared (first use in
this function)
../newerpcretest.c: In function `main':
../newerpcretest.c:1340: error: too many arguments to function
`pcre_printint'

Regards,
Sheri