From 480db8907c13c9c5ceff7991c0b3fb8ffc034ca7 Mon Sep 17 00:00:00 2001 From: Antoine Brodin Date: Sun, 1 Jan 2017 19:32:09 +0000 Subject: [PATCH] - Fix configure - Mark broken: fails to build hal/user_comps/mb2hal/mb2hal.c:362:63: error: too few arguments to function call, expected 3, have 2 modbus_set_response_timeout(this_mb_link->modbus, &timeout); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ /usr/local/include/modbus/modbus.h:185:12: note: 'modbus_set_response_timeout' declared here MODBUS_API int modbus_set_response_timeout(modbus_t *ctx, uint32_t to_sec, uint32_t to_usec); ^ hal/user_comps/mb2hal/mb2hal.c:369:59: error: too few arguments to function call, expected 3, have 2 modbus_set_byte_timeout(this_mb_link->modbus, &timeout); ~~~~~~~~~~~~~~~~~~~~~~~ ^ /usr/local/include/modbus/modbus.h:188:12: note: 'modbus_set_byte_timeout' declared here MODBUS_API int modbus_set_byte_timeout(modbus_t *ctx, uint32_t to_sec, uint32_t to_usec); ^ --- cad/linuxcnc-devel/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cad/linuxcnc-devel/Makefile b/cad/linuxcnc-devel/Makefile index 91642201ce2a..42d3c2ee72cd 100644 --- a/cad/linuxcnc-devel/Makefile +++ b/cad/linuxcnc-devel/Makefile @@ -11,6 +11,8 @@ COMMENT= Open Source CNC machine controller LICENSE= GPLv2 +BROKEN= fails to build, too few arguments to modbus_set_response_timeout + LIB_DEPENDS= libBLT25.so:x11-toolkits/blt \ libboost_python.so:devel/boost-python-libs \ libfontconfig.so:x11-fonts/fontconfig \ @@ -33,7 +35,10 @@ PATCH_WRKSRC= ${WRKDIR}/linuxcnc-${GH_TAGNAME} ALL_TARGET= default GNU_CONFIGURE= yes -CONFIGURE_ARGS= --with-realtime=uspace --enable-non-distributable=yes CFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" CXXFLAGS="-I${LOCALBASE}/include" CXX=c++ CC=cc --with-locale-dir="${PREFIX}/share/locale" +CONFIGURE_ARGS= --with-realtime=uspace --enable-non-distributable=yes \ + CFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" \ + CXXFLAGS="-I${LOCALBASE}/include" CXX=c++ CC=cc \ + --with-locale-dir="${PREFIX}/share/locale" --with-python=${PYTHON_CMD} MAKE_ENV= BUILD_VERBOSE=1 USES= autoreconf gettext gmake ncurses pkgconfig python readline shebangfix tk USE_GL= gl glu