Hi Stefan,<div><br></div><div>I followed your suggestion and configured LDFLAGS but the make step fails for another error now.</div><div><br></div><div><div>My configuration options are as follows</div><div><br></div><div>

./configure --enable-shared --disable-ipv6 --with-gcc=gcc CPPFLAGS="-I /opt/freeware/include -I /opt/freeware/include/readline -I /opt/freeware/include/ncurses" LDFLAGS="-L. -L/usr/local/lib"</div><div>

<br></div><div>Below is the transcript from the make step.</div><div>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</div><div>running build</div><div>running build_ext</div><div>ldd: /lib/libreadline.a: File is an archive.</div>

<div>INFO: Can't locate Tcl/Tk libs and/or headers</div><div>building '_struct' extension</div><div>gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/u01/home/apli/wm/GDD/Python-2.6.6/./Include -I. -IInclude -I./Include -I/opt/freeware/include -I/opt/freeware/include/readline -I/opt/freeware/include/ncurses -I/usr/local/include -I/u01/home/apli/wm/GDD/Python-2.6.6/Include -I/u01/home/apli/wm/GDD/Python-2.6.6 -c /u01/home/apli/wm/GDD/Python-2.6.6/Modules/_struct.c -o build/temp.aix-5.3-2.6/u01/home/apli/wm/GDD/Python-2.6.6/Modules/_struct.o</div>

<div>./Modules/ld_so_aix gcc -pthread -bI:Modules/python.exp -L. -L/usr/local/lib build/temp.aix-5.3-2.6/u01/home/apli/wm/GDD/Python-2.6.6/Modules/_struct.o -L. -L/usr/local/lib -lpython2.6 -o build/lib.aix-5.3-2.6/_struct.so</div>

<div><b>Fatal Python error: Interpreter not initialized (version mismatch?)</b></div><div><b>make: 1254-059 The signal code from the last command is 6.</b></div><div>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</div>

<div><br></div><div>The last command that i see above (ld_so_aix) seems to have completed as the file _struct.so exists after this command and hence I am not sure which step is failing.</div><div><br></div><div>There is no other Python version on my machine.</div>

<div><br></div><div>Please guide.</div><br><div class="gmail_quote">On Thu, Nov 25, 2010 at 3:41 PM, Stefan Krah <span dir="ltr"><<a href="mailto:stefan-usenet@bytereef.org">stefan-usenet@bytereef.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Anurag Chourasia <<a href="mailto:anurag.chourasia@gmail.com">anurag.chourasia@gmail.com</a>> wrote:<br>


> When I configure python to enable shared libraries, none of the extensions are getting built during the make step due to this error.<br>
><br>
> building 'cStringIO' extension<br>
> gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall<br>
> -Wstrict-prototypes -I. -I/u01/home/apli/wm/GDD/Python-2.6.6/./Include -I.<br>
> -IInclude -I./Include -I/opt/freeware/include<br>
> -I/opt/freeware/include/readline -I/opt/freeware/include/ncurses<br>
> -I/usr/local/include -I/u01/home/apli/wm/GDD/Python-2.6.6/Include<br>
> -I/u01/home/apli/wm/GDD/Python-2.6.6 -c<br>
> /u01/home/apli/wm/GDD/Python-2.6.6/Modules/cStringIO.c -o<br>
> build/temp.aix-5.3-2.6/u01/home/apli/wm/GDD/Python-2.6.6/Modules/cStringIO.o<br>
> ./Modules/ld_so_aix gcc -pthread -bI:Modules/python.exp<br>
> build/temp.aix-5.3-2.6/u01/home/apli/wm/GDD/Python-2.6.6/Modules/cStringIO.o<br>
> -L/usr/local/lib *-lpython2.6* -o build/lib.aix-5.3-2.6/cStringIO.so<br>
</div>  ^^^^^^^^^^^^^^^^<br>
<br>
Try these flags: -L. -L/usr/local/lib<br>
<br>
<br>
If this solves the problem and the issue is also present in Python-2.7,<br>
you should report a bug at <a href="http://bugs.python.org/" target="_blank">http://bugs.python.org/</a> .<br>
<font color="#888888"><br>
<br>
Stefan Krah<br>
<br>
<br>
<br>
</font></blockquote></div><br></div>