Hi Mrinal,
This was discussed recently in this tech-talk thread:
http://www.aps.anl.gov/epics/tech-talk/2017/msg01767.php
Andrew Johnson and I suggested to change
motor_call->termstring = (char) NULL;
to this:
motor_call->termstring = 0;
I think a new gcc-fix branch was created on github to address this issue, but so far it seems to not have any changes from master, and the problem you are having persists.
What version of gcc are you using?
Mark
Hi,
I am trying to compile synApps_5_8 with epics_base (base-2.14.12.6). I am getting the following error which is coming from the compilation of motor module I think.
/usr/bin/g++ -c -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_X86_64_ -DUNIX -Dlinux -O3 -g -Wall -m64 -fPIC -MMD -I. -I../O.Common -I. -I.. -I../../../include/os/Linux -I../../../include -I/home/mrinal/Downloads/synApps_5_8/support/asyn-4-26/include
-I/home/mrinal/Downloads/synApps_5_8/support/seq-2-2-1/include -I/home/mrinal/Downloads/synApps_5_8/support/busy-1-6-1/include -I/home/mrinal/Downloads/base-3.14.12.6/include/os/Linux -I/home/mrinal/Downloads/base-3.14.12.6/include -I/home/mrinal/Downloads/synApps_5_8/support/ipac-2-13/include
../motordevCom.cc
In file included from /usr/include/bits/types/stack_t.h:23:0,
from /usr/include/signal.h:299,
from /usr/include/sys/param.h:28,
from /home/mrinal/Downloads/base-3.14.12.6/include/os/Linux/osdWireConfig.h:16,
from /home/mrinal/Downloads/base-3.14.12.6/include/epicsEndian.h:24,
from ../motor.h:66,
from ../motordevCom.cc:76:
../motordevCom.cc: In function ‘long int motor_start_trans_com(motorRecord*, board_stat**)’:
../motordevCom.cc:467:37: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive]
motor_call->postmsgptr = (char) NULL;
^
../motordevCom.cc:468:37: error: invalid conversion from ‘char’ to ‘const char*’ [-fpermissive]
motor_call->termstring = (char) NULL;
^
make[4]: *** [/home/mrinal/Downloads/base-3.14.12.6/configure/RULES_BUILD:218: motordevCom.o] Error 1
make[4]: Leaving directory '/home/mrinal/Downloads/synApps_5_8/support/motor-6-9/motorApp/MotorSrc/O.linux-x86_64'
make[3]: *** [/home/mrinal/Downloads/base-3.14.12.6/configure/RULES_ARCHS:61: install.linux-x86_64] Error 2
make[3]: Leaving directory '/home/mrinal/Downloads/synApps_5_8/support/motor-6-9/motorApp/MotorSrc'
make[2]: *** [/home/mrinal/Downloads/base-3.14.12.6/configure/RULES_DIRS:83: MotorSrc.install] Error 2
make[2]: Leaving directory '/home/mrinal/Downloads/synApps_5_8/support/motor-6-9/motorApp'
make[1]: *** [/home/mrinal/Downloads/base-3.14.12.6/configure/RULES_DIRS:83: motorApp.install] Error 2
make[1]: Leaving directory '/home/mrinal/Downloads/synApps_5_8/support/motor-6-9'
make: *** [/home/mrinal/Downloads/base-3.14.12.6/configure/RULES_DIRS:83: /home/mrinal/Downloads/synApps_5_8/support/motor-6-9.install] Error 2
I would appreciate if anyone can help me out here.
Thanks and regards,
Mrinal
--
Mrinal Kanti Bera, PhD
Scientist
Center for Advanced Radiation Sources,
The University of Chicago,
9700 S Cass Ave Bldg 434D
Argonne, IL-60439
Phone: +1-630-252-0472
Fax: +1-630-252-0443