gbowden |
07-03-2007 11:03 AM |
/usr/include/regex.h errors?
When trying to compile clamav 0.90.3 on Slackware 12 I get the following errors about regex.h:
Code:
Making all in clamscan
make[2]: Entering directory `/home/gbowden/clamav-0.90.3/clamscan'
if gcc -DHAVE_CONFIG_H -DCL_NOTHREADS -I. -I. -I.. -I.. -I../shared -I../libclamav -I/usr/include -g -O2 -MT others.o -MD -MP -MF ".deps/others.Tpo" -c -o others.o others.c; \
then mv -f ".deps/others.Tpo" ".deps/others.Po"; else rm -f ".deps/others.Tpo"; exit 1; fi
In file included from others.c:48:
/usr/include/regex.h:138: error: expected '=', ',', ';', 'asm' or '__attribute__' before 're_void'
/usr/include/regex.h:297: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/regex.h:306: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/regex.h:308: error: expected '=', ',', ';', 'asm' or '__attribute__' before 're_void'
/usr/include/regex.h:309: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'size_t'
make[2]: *** [others.o] Error 1
make[2]: Leaving directory `/home/gbowden/clamav-0.90.3/clamscan'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/gbowden/clamav-0.90.3'
make: *** [all] Error 2
Does anyone know of what might be causing this error?
Edit: So the problem was with a corrupted regex.h file which happened during the upgrade to 12 (I upgraded myself). I had to remove the glibc package and then install it again.
Regards,
Greg
|