On 5/6/10 9:52 PM, Jincheol B. Kim wrote:
While I am trying to compile EPICS base R3.14.8.2, I got the following error.
-----------------[From here]----------------
Installing generated generic include file
/usr/local/epics/R3.14.8.2/base/include/menuSimm.h
/usr/bin/gcc -c -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS
-D_XOPEN_SOURCE=500 -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux
-D_REENTRANT -ansi -O3 -Wall -g -fPIC -I. -I..
-I/usr/local/epics/R3.14.8.2/base/include/os/Linux
-I/usr/local/epics/R3.14.8.2/base/include ../dbLock.c
In file included from ../dbLock.c:62:
/usr/local/epics/R3.14.8.2/base/include/dbCommon.h:45: error: expected
specifier-qualifier-list before âepicsTimeStampâ
make[3]: *** [dbLock.o] error 1
make[3]: Leaving directory `/usr/local/src/base-3.14.8.2/src/db/O.linux-x86'
make[2]: *** [install.linux-x86] error 2
make[2]: Leaving directory `/usr/local/src/base-3.14.8.2/src/db'
make[1]: *** [db.install] error 2
make[1]: Leaving directory `/usr/local/src/base-3.14.8.2/src'
make: *** [src.install] error 2
[root@******* base-3.14.8.2]#
----------------[End of error]-------------------------
I changed just INSTALL_LOCATION to /usr/local/epics/R3.14.8.2/base and
nothing is changed in configuration files. The value of
EPICS_HOST_ARCH is linux-x86 and I am using CentOS 5.4 with kernel
[root@******* base-3.14.8.2]# uname -a
Linux ******************** 2.6.18-164.15.1.el5xen #1 SMP Wed Mar 17
12:53:17 EDT 2010 i686 i686 i386 GNU/Linux
[root@******* base-3.14.8.2]#
Would you review the error and tell me what I should do to solve it?
Hi, Jincheol.
Could you send the following:
/usr/local/epics/R3.14.8.2/base/include/dbCommon.h
/usr/local/epics/R3.14.8.2/base/include/epicsTime.h
I'm wondering if the error you're seeing for dbCommon.h is because the
compiler doesn't know about the epicsTimeStamp type yet?
Also, have you considered using EPICS Base 3.14.11 instead? EPICS Base
3.14.8.2 is quite old. If you have a reason for using it, OK. But
otherwise it would be *much better* to use EPICS Base 3.14.11.
Lewis