Skip to content

Debian troubleshoot guide

teuzz edited this page Nov 14, 2012 · 2 revisions

I'm getting java.nio.charset.MalformedInputException: Input length = 1 at java.nio.charset.

The compiler doesn't like the jQuery source file. Delete it before compilation and put it back after the compilation is done. Or upgrade to https://github.com/teuzz/Payola/commit/7ee760bf3946d6f7265744557292862a55896d45

I'm getting weird libjnotify compilation error when trying to run the application

[server] $ run

[error] java.lang.UnsatisfiedLinkError: /opt/Payola/payola/web/server/target/native_libraries/64bits/libjnotify.so: /lib/libc.so.6: version `GLIBC_2.12' not found (required by /opt/Payola/payola/web/server/target/native_libraries/64bits/libjnotify.so)

The automatically obtained version of the static library comes with the following LDD dependencies:

root@xrg12:~/64-bit Linux# ldd -v libjnotify.so 
./libjnotify.so: /lib/libc.so.6: version `GLIBC_2.12' not found (required by ./libjnotify.so)
	linux-vdso.so.1 =>  (0x00007fffa01ff000)
	libc.so.6 => /lib/libc.so.6 (0x00007f1638430000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f163899d000)

	Version information:
	./libjnotify.so:
		libc.so.6 (GLIBC_2.12) => not found
		libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.2.5) => /lib/libc.so.6
	/lib/libc.so.6:
		ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.so.2
		ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2

Follow the solution from http://stackoverflow.com/questions/12628203/issue-with-running-jnotify-in-linux-centos-5-4 . Download the sources, compile your own version of the library and copy it over to the desired directory. The expected LDD output is:

root@xrg12:~/jnotify/src/Release# ldd -v libjnotify.so 
	linux-vdso.so.1 =>  (0x00007fffe8bff000)
	libc.so.6 => /lib/libc.so.6 (0x00007f7ae26be000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f7ae2c2a000)

	Version information:
	./libjnotify.so:
		libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.2.5) => /lib/libc.so.6
	/lib/libc.so.6:
		ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.so.2
		ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2