build a static python executable on linux?

Alexandre Gillet gillet at scripps.edu
Mon Sep 29 19:39:54 EDT 2003


I am able to compile a static interpreter (using -static -static-libgcc) 
but I can not build the extensions correctly.
When I  import an extensions (ie Tkinter, readline) I get undefine 
symbol error. It seems the symbol should be define in glibc but the 
extensions can't seems to find it.

Any ideas how I should built the extensions

Thanks
Alex

Christos TZOTZIOY Georgiou wrote:
> On Mon, 29 Sep 2003 15:42:34 -0700, rumours say that Alexandre Gillet
> <gillet at scripps.edu> might have written:
> 
> 
>>I am trying to build a python interpreter that is static link.
>>My python interpreter was build on RedHat 8.0 using gcc 2.3 and GLIBC 2.3
>>When running on other linux flavor that still have GLIBC 2.2, the 
>>interpreter won't start. (error message:  /lib/libc.so.6: version 
>>`GLIBC_2.3' not found (required by /mgl/python/i86Linux2/bin/python2.3)
> 
> 
> I believe you should install the glibc-static-devel package and then
> find the approprate options for gcc (my noisy linux computer is turned
> off now so I can't man gcc, but IIRC is -static :) in order to build a
> static python.





More information about the Python-list mailing list