include file errors

Ian Clough ianhome at intech.co.uk
Sun Sep 19 16:35:23 UTC 2004


I have a recent install of FC2 which I have updated to 2.6.8-1.521

I intend to run the asterisk telephony application on it and I have 
succesfully installed that application and a few others.

I am now trying to instal a capi channel package  that interfaces capi to 
asterisk.

When I try to 'make' the package I get thousands of errors with the first 
few lines indicating that I have some problem with my include files:-

[root at Vigor11 chan_capi-0.3.5]# make
gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -g  -I/usr/include/asterisk 
 -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686  -DCAPI_ES -DCAPI_GAIN -DCAPI_SYNC 
 -DUNSTABLE_CVS -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO   
 -c -o chan_capi.o chan_capi.c
In file included from /usr/include/time.h:38,
                 from /usr/include/pthread.h:21,
                 from /usr/include/asterisk/lock.h:17,
                 from chan_capi.c:14:
/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/include/stddef.h:213: error: syntax 
error before "typedef"
In file included from /usr/include/pthread.h:21,
                 from /usr/include/asterisk/lock.h:17,
                 from chan_capi.c:14:
/usr/include/time.h:60: error: syntax error before "typedef"
/usr/include/time.h:74: error: syntax error before "__BEGIN_NAMESPACE_STD"
/usr/include/time.h:76: error: syntax error before "typedef"
/usr/include/time.h:129: error: syntax error before "__BEGIN_NAMESPACE_STD"
/usr/include/time.h:131: error: syntax error before "struct"
/usr/include/time.h:178: error: syntax error before "__BEGIN_NAMESPACE_STD"

Q1 Has anybody any idea what could be wrong

Q2 Where is the directory /usr/lib/gcc-lib/i386-redhat-linux/3.3.3/include 
defined I cannot find it in any config files or gcc documentation.

Thanks

Ian






More information about the fedora-list mailing list