Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 07-03-2007, 12:03 PM   #1
Registered: Dec 2003
Location: Spain
Distribution: Slackware 14.1 64bit - multilib
Posts: 147

Rep: Reputation: 27
/usr/include/regex.h errors?

When trying to compile clamav 0.90.3 on Slackware 12 I get the following errors about regex.h:

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.



Last edited by gbowden; 07-04-2007 at 01:30 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
which headers usr/include/ or /usr/include/nptl/? Chris.Rector Linux - Enterprise 0 02-02-2007 02:40 PM
Missing /usr/include/GL/gl.h openfun Ubuntu 1 04-24-2006 11:24 AM
/usr/include/linux revsteban Debian 1 02-22-2005 11:41 PM
/usr/include/netdb.h on RH 8.0 nxny Red Hat 2 12-09-2003 06:16 PM
HELP! I've lost my /usr/include! bobthebat Linux - General 2 10-29-2001 01:36 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:57 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration