> In make file I have this: > CFLAGS= $(INCS) $(WARN) -O2 $G -fPIC > > Still is the same result: > cc -o syslog.so -shared lsyslog.o But are you sure you have created lsyslog.o with -fPIC? Try "make clean all".