This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Sworddragon
Recipients Sworddragon, vstinner
Date 2014-09-19.16:22:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1411143730.42.0.169236751987.issue22443@psf.upfronthosting.co.za>
In-reply-to
Content
> You don't need to compile Python. Just compile nobuffer.c to
> libnobuffer.so. See the "documentation" in nobuffer.c.

Strictly following the documentation does not work:

sworddragon@ubuntu:~/tmp$ gcc -shared -o nobuffer.so interceptor.c
gcc: error: interceptor.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.


Trying to fix this results in this error:

sworddragon@ubuntu:~/tmp$ gcc -shared -o nobuffer.so nobuffer.c
/usr/bin/ld: /tmp/ccgArKHv.o: relocation R_X86_64_PC32 against undefined symbol `stdout@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
History
Date User Action Args
2014-09-19 16:22:10Sworddragonsetrecipients: + Sworddragon, vstinner
2014-09-19 16:22:10Sworddragonsetmessageid: <1411143730.42.0.169236751987.issue22443@psf.upfronthosting.co.za>
2014-09-19 16:22:10Sworddragonlinkissue22443 messages
2014-09-19 16:22:10Sworddragoncreate