You are not logged in.
I've downloaded the 2.1-7 source for RXTX and am trying to compile it to not use lockfiles, however, during configuration, I get the following errors:
configure: WARNING: Trying libtool. If the following fails install libtool
appending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool
Disabling lock files
/opt/java
configure: WARNING: using JAVA_HOME environmental variable
adjusted java.home is /opt/java
conftest.c: In function 'main':
conftest.c:8: error: 'UTS_RELEASE' undeclared (first use in this function)
conftest.c:8: error: (Each undeclared identifier is reported only once
conftest.c:8: error: for each function it appears in.)
conftest.c:8: error: expected ')' before string constant
./configure: line 21462: ./conftest: No such file or directory
./configure: line 21462: test: 2.6.30-ARCH: unary operator expected
Similarly with the make install command:
/root/rxtx/./src/RS485Imp.c: In function 'Java_gnu_io_RS485Port_Initialize':
/root/rxtx/./src/RS485Imp.c:96: error: 'UTS_RELEASE' undeclared (first use in this function)
/root/rxtx/./src/RS485Imp.c:96: error: (Each undeclared identifier is reported only once
/root/rxtx/./src/RS485Imp.c:96: error: for each function it appears in.)
...
libtool: install: 'i686-pc-linux-gnu/librxtxRS485.la' is not a directory
Try 'libtoo --help --mode=install' for more information.
make: *** [install] Error 1
Apparantly UTS_RELEASE has been phased out with the newer kernels, but I haven't found anything for Arch specifically. I'm going to keep digging, but I figured I'd post my problem here in case someone's run across this issue before.
Any help is greatly appreciated.
Last edited by hypnotic_meat (2009-10-05 18:20:13)
Offline
Fixed my own problems. UTS_RELEASE was moved to utsrelease.h in /lib/modules/ uname -r /build/include/linux. Around line 21462 in configure, I just added that file to the list of includes for conftest.c. I also had to add the include to several of the files in the src directory of the RXTX 2.1 source download so that make install would work (not just RS485Imp.c). I did run across another problem: it turns out that configure and configure.in don't check for java 1.6 when setting the RXTX_PATH var, so the linker fails for librxtxSerial.so and throws several UnsatisfiedLinkerExceptions. A simple fix to add "|1.6*" to the conditional fixed that. Marking this one as closed.
Offline
Yuck. By UnsatisfiedLinkerExceptions, I of course meant UnsatisfiedLinkError...yeah.
Offline