I'm on Kubuntu 10.10, gcc:
$ gcc --version
gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Building of frontend module fails to me with:
build-native:
[exec] net_sf_dvbcentral_lib_Frontend.c: In function ‘Java_net_sf_dvbcentral_lib_Frontend_read0’:
[exec] net_sf_dvbcentral_lib_Frontend.c:119: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘int’
[exec] /usr/bin/ld: /tmp/ccL9FdKh.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
[exec] /tmp/ccL9FdKh.o: could not read symbols: Bad value
[exec] collect2: ld returned 1 exit status
Seems that -fPIC (or -fpic) must be used when building the shared library - see attached patch.
Proposed patch.