<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3315.2870" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>In the book, Python Essential Reference, there's a 
part at the end of the chapter on extending and embedding python where Beazley 
describes the process of compiling extensions. In this, he creates a file, 
Setup, which is used by make in the build process. In adapting this to building 
mapscript, my file looks like the following:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>*shared*</FONT></DIV>
<DIV><FONT face=Arial size=2>mapscript mapscript_wrap.c</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I then run the command:</FONT></DIV>
<DIV><FONT face=Arial size=2>make -f Makefile.pre.in boot</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>This is a very simple procedure and results in 
mapscriptcmodule.sl (HPUX). Unfortunately, when attempting to import mapscript 
from the python command line, I get the following error:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Python 1.5.2 (#10, Nov&nbsp; 5 2001, 12:00:19) [C] 
on hp-uxB<BR>Copyright 1991-1995 Stichting Mathematisch Centrum, 
Amsterdam<BR>&gt;&gt;&gt; import mapscript<BR>Traceback (innermost 
last):<BR>&nbsp; File "&lt;stdin&gt;", line 1, in ?<BR>&nbsp; File 
"mapscript.py", line 2, in ?<BR>&nbsp;&nbsp;&nbsp; import 
mapscriptc<BR>ImportError: dynamic module does not define init function 
(initmapscriptc)<BR>&gt;&gt;&gt; </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>It appears that this function actually is defined 
but is not being found for some reason. Has anyone used this method to build 
python mapscript? Must it be done manually instead?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Tom Russell</FONT></DIV></BODY></HTML>