2.6 libmodbus Problem
27 Jun 2014 22:36 #48273
by tkamsker
2.6 libmodbus Problem was created by tkamsker
Hi,
i want (need for M19 ) to use an VFS-11 modbus driver
therefore
i did try on an 2.6-pre1 (and pre2) to compile and install linuxcnc
but vfs11 need an new Modbus driver ( github.com/stephane/libmodbus ) so i followed the readmy compiled and installed the stuff and get some strange behaviour it seems that some thing have changed like
ompiling rtapi/rtai_ulapi.c
Creating shared library liblinuxcnchal.so.0
Linking halstreamer
Compiling hal/components/sampler_usr.c
Linking halsampler
Compiling hal/user_comps/mb2hal/mb2hal.c
hal/user_comps/mb2hal/mb2hal.c: In function ‘get_tx_connection’:
hal/user_comps/mb2hal/mb2hal.c:362: warning: passing argument 2 of ‘modbus_set_response_timeout’ makes integer from pointer without a cast
/usr/local/include/modbus/modbus.h:188: note: expected ‘uint32_t’ but argument is of type ‘struct timeval *’
hal/user_comps/mb2hal/mb2hal.c:362: error: too few arguments to function ‘modbus_set_response_timeout’
hal/user_comps/mb2hal/mb2hal.c:369: warning: passing argument 2 of ‘modbus_set_byte_timeout’ makes integer from pointer without a cast
/usr/local/include/modbus/modbus.h:191: note: expected ‘uint32_t’ but argument is of type ‘struct timeval *’
hal/user_comps/mb2hal/mb2hal.c:369: error: too few arguments to function ‘modbus_set_byte_timeout’
make: *** [objects/hal/user_comps/mb2hal/mb2hal.o] Fehler 1
make: Verlasse Verzeichnis '/usr/src/build/linuxcnc-dev/src'
root@tka-cnc2:/usr/src/build/linuxcnc-dev/src#
(i also tried libmodbus 2.0.3 which mr haberler used )
So my question did anyone have same issue ?
Problem for M19 i want to use JOG (not axis spindle
- modus for searching at M19
all other M19 tricks beside nasty M64 M62 Programming i have already tried.
So i would be thankful for an hint for that modbus thing or if that is an issue at the 2.6 for some reason then i would be helpful for an HAL example wher the M19 is starting the spindle in an given slow speed. Using some pid or whatever
thx
thomas
i want (need for M19 ) to use an VFS-11 modbus driver
therefore
i did try on an 2.6-pre1 (and pre2) to compile and install linuxcnc
but vfs11 need an new Modbus driver ( github.com/stephane/libmodbus ) so i followed the readmy compiled and installed the stuff and get some strange behaviour it seems that some thing have changed like
ompiling rtapi/rtai_ulapi.c
Creating shared library liblinuxcnchal.so.0
Linking halstreamer
Compiling hal/components/sampler_usr.c
Linking halsampler
Compiling hal/user_comps/mb2hal/mb2hal.c
hal/user_comps/mb2hal/mb2hal.c: In function ‘get_tx_connection’:
hal/user_comps/mb2hal/mb2hal.c:362: warning: passing argument 2 of ‘modbus_set_response_timeout’ makes integer from pointer without a cast
/usr/local/include/modbus/modbus.h:188: note: expected ‘uint32_t’ but argument is of type ‘struct timeval *’
hal/user_comps/mb2hal/mb2hal.c:362: error: too few arguments to function ‘modbus_set_response_timeout’
hal/user_comps/mb2hal/mb2hal.c:369: warning: passing argument 2 of ‘modbus_set_byte_timeout’ makes integer from pointer without a cast
/usr/local/include/modbus/modbus.h:191: note: expected ‘uint32_t’ but argument is of type ‘struct timeval *’
hal/user_comps/mb2hal/mb2hal.c:369: error: too few arguments to function ‘modbus_set_byte_timeout’
make: *** [objects/hal/user_comps/mb2hal/mb2hal.o] Fehler 1
make: Verlasse Verzeichnis '/usr/src/build/linuxcnc-dev/src'
root@tka-cnc2:/usr/src/build/linuxcnc-dev/src#
(i also tried libmodbus 2.0.3 which mr haberler used )
So my question did anyone have same issue ?
Problem for M19 i want to use JOG (not axis spindle
![;) ;)](/media/kunena/emoticons/wink.png)
all other M19 tricks beside nasty M64 M62 Programming i have already tried.
So i would be thankful for an hint for that modbus thing or if that is an issue at the 2.6 for some reason then i would be helpful for an HAL example wher the M19 is starting the spindle in an given slow speed. Using some pid or whatever
thx
thomas
Please Log in or Create an account to join the conversation.
27 Jun 2014 23:24 #48274
by cncbasher
Replied by cncbasher on topic 2.6 libmodbus Problem
makes sure you have these 2 installed
sudo apt-get install libmodbus3-dev
sudo apt-get install libmodbus5
see how you go
sudo apt-get install libmodbus3-dev
sudo apt-get install libmodbus5
see how you go
The following user(s) said Thank You: tkamsker
Please Log in or Create an account to join the conversation.
28 Jun 2014 18:30 #48300
by tkamsker
Replied by tkamsker on topic 2.6 libmodbus Problem
Hi,
i checked i do have libmodbus-dev and libmodbus5 installed installed version 3.0.1-2-linuxcnc0 and synaptic says it is newest version ?
i just guessed there is some missmatch in that procedure or newer version of modbus.c whatever
i hope someone has had that problem in 2.6
or a working M19 config would also help then i tackle the modbus issue later
thx lot
thomas
i checked i do have libmodbus-dev and libmodbus5 installed installed version 3.0.1-2-linuxcnc0 and synaptic says it is newest version ?
i just guessed there is some missmatch in that procedure or newer version of modbus.c whatever
i hope someone has had that problem in 2.6
or a working M19 config would also help then i tackle the modbus issue later
thx lot
thomas
Please Log in or Create an account to join the conversation.
04 Jul 2014 22:24 - 05 Jul 2014 20:26 #48431
by tkamsker
Replied by tkamsker on topic 2.6 libmodbus Problem
Hi
i think i am out of luck it seems that the actual libmodbus 3.1.1 is not working with 2.6 pre or master
looks like
i think i am out of luck it seems that the actual libmodbus 3.1.1 is not working with 2.6 pre or master
looks like
root@tka-cnc2:/usr/src/build/linuxcnc-dev/debian# ./configure -a
successfully configured for 'Ubuntu-10.04'-'2.6.32-122-rtai'..
root@tka-cnc2:/usr/src/build/linuxcnc-dev/debian# cd ..
root@tka-cnc2:/usr/src/build/linuxcnc-dev# dpkg-checkbuilddeps
root@tka-cnc2:/usr/src/build/linuxcnc-dev# cd src/
root@tka-cnc2:/usr/src/build/linuxcnc-dev/src# ./autogen.sh
root@tka-cnc2:/usr/src/build/linuxcnc-dev/src# ./configure --enable-run-in-place
checking build toplevel... /usr/src/build/linuxcnc-dev
checking installation prefix... run in place
checking for grep... /bin/grep
checking for egrep... /bin/egrep
checking for RT dir... Using /usr/realtime-2.6.32-122-rtai/bin/rtai-config as the RT signature
checking for location of kernel headers... using value from RTS: /usr/src/linux-headers-2.6.32-122-rtai
checking for cc version... found gcc in rtai-config
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for usability of rdtscll from asm/msr.h... no
checking for usability of linux/hidraw.h... yes
checking for libmodbus3... yes - version 3.1.1
checking for libusb-1.0... yes
checking for grep that handles long lines and -e... (cached) /bin/grep
checking for egrep... (cached) /bin/egrep
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking /usr/src/linux-headers-2.6.32-122-rtai/include/linux/version.h usability... yes
checking /usr/src/linux-headers-2.6.32-122-rtai/include/linux/version.h presence... yes
checking for /usr/src/linux-headers-2.6.32-122-rtai/include/linux/version.h... yes
checking for kernel version string... 2.6.32-122-rtai
checking for kernel module extension... .ko
checking kernel build system... kbuild
checking for module installation directory... configuring for run-in-place
/usr/src/build/linuxcnc-dev/rtlib
configure: WARNING: --enable-run-in-place will be removed soon.
Configure without specifying --prefix to get a run-in-place build.
checking for glib... yes - 2.24.1
checking for GTK 2.4.0 or above... yes - 2.20.1
checking for libgnomeprintui-2.2... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ supports C++11 features by default... no
checking whether g++ supports C++11 features with -std=c++11... no
checking whether g++ supports C++11 features with -std=c++0x... yes
checking whether make sets $(MAKE)... yes
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking for install... /usr/bin/install
checking for sed... /bin/sed
checking for ps... /bin/ps
checking for kill... /bin/kill
checking for whoami... /usr/bin/whoami
checking for awk... /usr/bin/awk
checking for insmod... /sbin/insmod
checking for rmmod... /sbin/rmmod
checking for lsmod... /sbin/lsmod
checking for pidof... /bin/pidof
checking for ipcs... /usr/bin/ipcs
checking for fuser... /bin/fuser
checking for mandb... /usr/bin/mandb
checking for python... /usr/bin/python
checking whether to build documentation... no
checking for kernel math support... ok, using RTAI's libm kernel module
checking for adeos... not found
checking for rtai_hal... /usr/realtime-2.6.32-122-rtai/modules/rtai_hal.ko
checking for rtai_ksched... /usr/realtime-2.6.32-122-rtai/modules/rtai_ksched.ko
checking for rtai_fifos... /usr/realtime-2.6.32-122-rtai/modules/rtai_fifos.ko
checking for rtai_shm... not found
checking for rtai_sem... /usr/realtime-2.6.32-122-rtai/modules/rtai_sem.ko
checking for rtai_math... /usr/realtime-2.6.32-122-rtai/modules/rtai_math.ko
checking for rtai... not found
checking for rt_mem_mgr... not found
checking for rtai_sched... /usr/realtime-2.6.32-122-rtai/modules/rtai_sched.ko
checking for rtai_libm... not found
checking for rtl... not found
checking for mbuff... not found
checking for rtl_time... not found
checking for rtl_sched... not found
checking for rtl_posixio... not found
checking for rtl_fifo... not found
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for semtimedop... yes
checking for sincos function... yes
checking for __sincos... no
checking for tcl... /usr/lib/tcl8.5/tclConfig.sh found
checking for tk... /usr/lib/tk8.5/tkConfig.sh found
checking for BWidget using /usr/bin/tclsh8.5... found
checking for BLT using tclsh8.5... found
checking for img::png using /usr/bin/tclsh8.5... found
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking X11/extensions/Xinerama.h usability... yes
checking X11/extensions/Xinerama.h presence... yes
checking for X11/extensions/Xinerama.h... yes
checking for XineramaQueryExtension in -lXinerama... yes
checking for X11/Xaw/XawInit.h... yes
checking for XawDialogGetValueString in -lXaw... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
Trying readline without -ltermcap
checking for readline in -lreadline... yes
Trying readline with -ltermcap
checking for readline in -lreadline... yes
Readline does not require -ltermcap
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking for initscr in -lncurses... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for setlocale... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for gettext in -lintl... no
checking for xgettext... /usr/bin/xgettext
checking for xgettext tcl bug... xgettext version 0.17 OK
checking for msgfmt... /usr/bin/msgfmt
checking for --tcl support in msgfmt... yes
checking for Python support... yes
checking python version... OK
checking version of python libraries... python2.6
checking match between tk and Tkinter versions... 8.5
checking location of Python header files... /usr/include/python2.6
checking for Python headers... -I/usr/include/python2.6
checking for Python libraries... -lpthread -ldl -lutil
checking whether the Boost::Python headers are available... yes
checking for boost::python shared library... -lboost_python
checking /usr/include/python2.6/Python.h usability... yes
checking /usr/include/python2.6/Python.h presence... yes
checking for /usr/include/python2.6/Python.h... yes
checking for site-package location... /usr/lib/python2.6/dist-packages
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GL/glu.h usability... yes
checking GL/glu.h presence... yes
checking for GL/glu.h... yes
checking for glBegin in -lGL... yes
checking for working GLU quadrics... yes
checking for Xmu headers... checking X11/Xmu/Xmu.h usability... yes
checking X11/Xmu/Xmu.h presence... yes
checking for X11/Xmu/Xmu.h... yes
checking libgl1-mesa-dri workaround... not required
configure: creating ./config.status
config.status: creating ../scripts/rtapi.conf
config.status: creating ../scripts/linuxcnc
config.status: creating ../scripts/halrun
config.status: creating ../scripts/rip-environment
config.status: creating ../scripts/haltcl
config.status: creating ../scripts/realtime
config.status: creating ../scripts/linuxcnc_var
config.status: creating Makefile.inc
config.status: creating Makefile.modinc
config.status: creating ../tcl/linuxcnc.tcl
config.status: creating ../lib/python/nf.py
config.status: creating ../scripts/linuxcncmkdesktop
config.status: creating ../share/applications/linuxcnc-latency.desktop
config.status: creating ../share/applications/linuxcnc.desktop
config.status: creating ../share/desktop-directories/cnc.directory
config.status: creating ../share/menus/CNC.menu
config.status: creating config.h
config.status: config.h is unchanged
######################################################################
# LinuxCNC - Enhanced Machine Controller #
######################################################################
# #
# LinuxCNC is a software system for computer control of machine #
# tools such as milling machines. LinuxCNC is released under the #
# GPL. Check out http://www.linuxcnc.org/ for more details. #
# #
# #
# It seems that ./configure completed successfully. #
# This means that RT is properly installed #
# If things don't work check config.log for errors & warnings #
# #
# Next compile by typing #
# make #
# sudo make setuid #
# #
# Before running the software, set the environment: #
# . (top dir)/scripts/rip-environment #
# #
# To run the software type #
# linuxcnc #
# #
######################################################################
root@tka-cnc2:/usr/src/build/linuxcnc-dev/src# make
Reading 0/181 dependency files
Done reading dependencies
make: Gehe in Verzeichnis '/usr/src/build/linuxcnc-dev/src'
Creating serport.mak
Creating pluto_step.mak
Creating pluto_servo.mak
Creating pcl720.mak
Creating mesa_uart.mak
Creating mesa_7i65.mak
Creating xor2.mak
Creating xhc_hb04_util.mak
Creating wcomp.mak
Creating updown.mak
Creating tristate_float.mak
Creating tristate_bit.mak
Creating toggle2nist.mak
Creating toggle.mak
Creating timedelta.mak
Creating timedelay.mak
Creating time.mak
Creating threadtest.mak
Creating thcud.mak
Creating thc.mak
Creating sum2.mak
Creating steptest.mak
Creating sphereprobe.mak
Creating sim_spindle.mak
Creating select8.mak
Creating scale.mak
Creating sample_hold.mak
Creating orient.mak
Creating or2.mak
Creating oneshot.mak
Creating offset.mak
Creating not.mak
Creating near.mak
Creating mux8.mak
Creating mux4.mak
Creating mux2.mak
Creating mux16.mak
Creating multiswitch.mak
Creating multiclick.mak
Creating mult2.mak
Creating minmax.mak
Creating message.mak
Creating match8.mak
Creating maj3.mak
Creating lut5.mak
Creating lowpass.mak
Creating logic.mak
Creating lincurve.mak
Creating limit3.mak
Creating limit2.mak
Creating limit1.mak
Creating latencybins.mak
Creating knob2float.mak
Creating joyhandle.mak
Creating invert.mak
Creating integ.mak
Creating ilowpass.mak
Creating hypot.mak
Creating gray2bin.mak
Creating gearchange.mak
Creating flipflop.mak
Creating feedcomp.mak
Creating estop_latch.mak
Creating edge.mak
Creating deadzone.mak
Creating ddt.mak
converting conv for conv_u32_s32.comp
Creating conv_u32_s32.mak
converting conv for conv_u32_float.comp
Creating conv_u32_float.mak
converting conv for conv_u32_bit.comp
Creating conv_u32_bit.mak
converting conv for conv_s32_u32.comp
Creating conv_s32_u32.mak
converting conv for conv_s32_float.comp
Creating conv_s32_float.mak
converting conv for conv_s32_bit.comp
Creating conv_s32_bit.mak
converting conv for conv_float_u32.comp
Creating conv_float_u32.mak
converting conv for conv_float_s32.comp
Creating conv_float_s32.mak
converting conv for conv_bit_u32.comp
Creating conv_bit_u32.mak
converting conv for conv_bit_s32.comp
Creating conv_bit_s32.mak
Creating constant.mak
Creating comp.mak
Creating clarkeinv.mak
Creating clarke3.mak
Creating clarke2.mak
Creating charge_pump.mak
Creating blend.mak
Creating bldc_hall3.mak
Creating bldc.mak
Creating bitwise.mak
Creating bitslice.mak
Creating biquad.mak
Creating bin2gray.mak
Creating and2.mak
Creating abs_s32.mak
Creating abs.mak
make: Verlasse Verzeichnis '/usr/src/build/linuxcnc-dev/src'
Reading 0/181 dependency files
Done reading dependencies
make: Gehe in Verzeichnis '/usr/src/build/linuxcnc-dev/src'
copying shared configs
Compiling libnml/inifile/inifile.cc
Creating shared library liblinuxcncini.so.0
ln -sf liblinuxcncini.so.0 ../lib/liblinuxcncini.so
Compiling libnml/inifile/inivar.cc
Linking inivar
Compiling libnml/posemath/_posemath.c
Compiling libnml/posemath/posemath.cc
Compiling libnml/posemath/gomath.c
Compiling libnml/posemath/sincos.c
Creating shared library libposemath.so.0
ln -sf libposemath.so.0 ../lib/libposemath.so
Compiling libnml/rcs/rcs_print.cc
Compiling libnml/rcs/rcs_exit.cc
Compiling libnml/os_intf/_sem.c
Compiling libnml/os_intf/_shm.c
Compiling libnml/os_intf/_timer.c
Compiling libnml/os_intf/sem.cc
Compiling libnml/os_intf/shm.cc
Compiling libnml/os_intf/timer.cc
Compiling libnml/buffer/locmem.cc
Compiling libnml/buffer/memsem.cc
Compiling libnml/buffer/phantom.cc
Compiling libnml/buffer/physmem.cc
Compiling libnml/buffer/recvn.c
Compiling libnml/buffer/sendn.c
Compiling libnml/buffer/shmem.cc
Compiling libnml/buffer/tcpmem.cc
Compiling libnml/cms/cms.cc
Compiling libnml/cms/cms_aup.cc
Compiling libnml/cms/cms_cfg.cc
Compiling libnml/cms/cms_in.cc
Compiling libnml/cms/cms_dup.cc
Compiling libnml/cms/cms_pm.cc
Compiling libnml/cms/cms_srv.cc
Compiling libnml/cms/cms_up.cc
Compiling libnml/cms/cms_xup.cc
Compiling libnml/cms/cmsdiag.cc
Compiling libnml/cms/tcp_opts.cc
Compiling libnml/cms/tcp_srv.cc
Compiling libnml/nml/cmd_msg.cc
Compiling libnml/nml/nml_mod.cc
Compiling libnml/nml/nml_oi.cc
Compiling libnml/nml/nml_srv.cc
Compiling libnml/nml/nml.cc
Compiling libnml/nml/nmldiag.cc
Compiling libnml/nml/nmlmsg.cc
Compiling libnml/nml/stat_msg.cc
Compiling libnml/linklist/linklist.cc
Creating shared library libnml.so.0
ln -sf libnml.so.0 ../lib/libnml.so
Compiling rtapi/test_rtapi_vsnprintf.c
Linking test_rtapi_vsnprintf
Syntax checking python script comp
Copying python script comp
Making comp manpage abs.9
Making comp manpage abs_s32.9
Making comp manpage and2.9
Making comp manpage bin2gray.9
Making comp manpage biquad.9
Making comp manpage bitslice.9
Making comp manpage bitwise.9
Making comp manpage bldc.9
Making comp manpage bldc_hall3.9
Making comp manpage blend.9
Making comp manpage charge_pump.9
Making comp manpage clarke2.9
Making comp manpage clarke3.9
Making comp manpage clarkeinv.9
Making comp manpage comp.9
Making comp manpage constant.9
Making comp manpage conv_bit_s32.9
Making comp manpage conv_bit_u32.9
Making comp manpage conv_float_s32.9
Making comp manpage conv_float_u32.9
Making comp manpage conv_s32_bit.9
Making comp manpage conv_s32_float.9
Making comp manpage conv_s32_u32.9
Making comp manpage conv_u32_bit.9
Making comp manpage conv_u32_float.9
Making comp manpage conv_u32_s32.9
Making comp manpage ddt.9
Making comp manpage deadzone.9
Making comp manpage edge.9
Making comp manpage estop_latch.9
Making comp manpage feedcomp.9
Making comp manpage flipflop.9
Making comp manpage gearchange.9
Making comp manpage gray2bin.9
Making comp manpage hypot.9
Making comp manpage ilowpass.9
Making comp manpage integ.9
Making comp manpage invert.9
Making comp manpage joyhandle.9
Making comp manpage knob2float.9
Making comp manpage latencybins.9
Making comp manpage limit1.9
Making comp manpage limit2.9
Making comp manpage limit3.9
Making comp manpage lincurve.9
Making comp manpage logic.9
Making comp manpage lowpass.9
Making comp manpage lut5.9
Making comp manpage maj3.9
Making comp manpage match8.9
Making comp manpage message.9
Making comp manpage minmax.9
Making comp manpage mult2.9
Making comp manpage multiclick.9
Making comp manpage multiswitch.9
Making comp manpage mux16.9
Making comp manpage mux2.9
Making comp manpage mux4.9
Making comp manpage mux8.9
Making comp manpage near.9
Making comp manpage not.9
Making comp manpage offset.9
Making comp manpage oneshot.9
Making comp manpage or2.9
Making comp manpage orient.9
Making comp manpage sample_hold.9
Making comp manpage scale.9
Making comp manpage select8.9
Making comp manpage sim_spindle.9
Making comp manpage sphereprobe.9
Making comp manpage steptest.9
Making comp manpage sum2.9
Making comp manpage thc.9
Making comp manpage thcud.9
Making comp manpage threadtest.9
Making comp manpage time.9
Making comp manpage timedelay.9
Making comp manpage timedelta.9
Making comp manpage toggle.9
Making comp manpage toggle2nist.9
Making comp manpage tristate_bit.9
Making comp manpage tristate_float.9
Making comp manpage updown.9
Making comp manpage wcomp.9
Making comp manpage xhc_hb04_util.9
Making comp manpage xor2.9
Making comp manpage mesa_7i65.9
Making comp manpage mesa_uart.9
Making comp manpage pcl720.9
Making comp manpage pluto_servo.9
Making comp manpage pluto_step.9
Making comp manpage serport.9
Compiling hal/components/streamer_usr.c
Compiling hal/hal_lib.c
Compiling rtapi/rtai_ulapi.c
Creating shared library liblinuxcnchal.so.0
Linking halstreamer
Compiling hal/components/sampler_usr.c
Linking halsampler
Compiling hal/user_comps/mb2hal/mb2hal.c
hal/user_comps/mb2hal/mb2hal.c: In function ‘get_tx_connection’:
hal/user_comps/mb2hal/mb2hal.c:362: warning: passing argument 2 of ‘modbus_set_response_timeout’ makes integer from pointer without a cast
/usr/local/include/modbus/modbus.h:188: note: expected ‘uint32_t’ but argument is of type ‘struct timeval *’
hal/user_comps/mb2hal/mb2hal.c:362: error: too few arguments to function ‘modbus_set_response_timeout’
hal/user_comps/mb2hal/mb2hal.c:369: warning: passing argument 2 of ‘modbus_set_byte_timeout’ makes integer from pointer without a cast
/usr/local/include/modbus/modbus.h:191: note: expected ‘uint32_t’ but argument is of type ‘struct timeval *’
hal/user_comps/mb2hal/mb2hal.c:369: error: too few arguments to function ‘modbus_set_byte_timeout’
make: *** [objects/hal/user_comps/mb2hal/mb2hal.o] Fehler 1
make: Verlasse Verzeichnis '/usr/src/build/linuxcnc-dev/src'
root@tka-cnc2:/usr/src/build/linuxcnc-dev/src#
root@tka-cnc2:/usr/src/build/linuxcnc-dev/src#
Last edit: 05 Jul 2014 20:26 by BigJohnT. Reason: add code tags
Please Log in or Create an account to join the conversation.
Time to create page: 0.206 seconds