the problem is that new debian GCC enabled -fPIC or -fPIE by default, causing the mentioned compile error.