When LDFLAGS="-Bsymbolic-functions -fpic -shared -lc" \ is added it don't have problem with ld any longer, but gives the error.
cc -g -O2 -fpic -Wall -Os -pedantic -std=c99 -Werror -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -c -o unix-java.o unix-java.c unix-java.c: In function 'Java_cx_ath_matthew_unix_UnixSocket_native_1getPID': unix-java.c:297: error: storage size of 'cr' isn't known cc1: warnings being treated as errors unix-java.c:297: error: unused variable 'cr' unix-java.c: In function 'Java_cx_ath_matthew_unix_UnixSocket_native_1getUID': unix-java.c:318: error: storage size of 'cr' isn't known unix-java.c:318: error: unused variable 'cr' unix-java.c: In function 'Java_cx_ath_matthew_unix_UnixSocket_native_1getGID': unix-java.c:339: error: storage size of 'cr' isn't known unix-java.c:339: error: unused variable 'cr' make[1]: *** [unix-java.o] Error 1
The same modification builds fine in sid.
When "-Bsymbolic- functions -fpic -shared -lc" \
LDFLAGS=
is added it don't have problem with ld any longer, but gives the error.
cc -g -O2 -fpic -Wall -Os -pedantic -std=c99 -Werror -I/usr/ lib/jvm/ default- java/include -I/usr/ lib/jvm/ default- java/include/ linux -c -o unix-java.o unix-java.c ath_matthew_ unix_UnixSocket _native_ 1getPID' : ath_matthew_ unix_UnixSocket _native_ 1getUID' : ath_matthew_ unix_UnixSocket _native_ 1getGID' :
unix-java.c: In function 'Java_cx_
unix-java.c:297: error: storage size of 'cr' isn't known
cc1: warnings being treated as errors
unix-java.c:297: error: unused variable 'cr'
unix-java.c: In function 'Java_cx_
unix-java.c:318: error: storage size of 'cr' isn't known
unix-java.c:318: error: unused variable 'cr'
unix-java.c: In function 'Java_cx_
unix-java.c:339: error: storage size of 'cr' isn't known
unix-java.c:339: error: unused variable 'cr'
make[1]: *** [unix-java.o] Error 1
The same modification builds fine in sid.