Here is the result of command make:
cc -Wall -shared -ldl -o tconn.so tconn.c
tconn.c: In function ‘connect’:
tconn.c:178:3: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness [-Wpointer-sign]
/usr/include/x86_64-linux-gnu/sys/socket.h:190:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’
tconn.c:188:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘long unsigned int’ [-Wformat]
/usr/bin/ld: /tmp/ccnUfc8W.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/tmp/ccnUfc8W.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [tconn.so] Error 1
P.S. I'm using Linux Mint Debian Edition x64 Pack 4 (201204)