[mapserver-users] 3.6.3 Compile problems/errors

Steven Bowden steveb@bundaberg.qld.gov.au
11 Oct 2002 11:29:17 +1000


--=-yGy2kRDMUvL/rtYOqgF0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Thanks for you help Daniel.
I found the problem was the same as what Jean-Francois was having, the
libmap.a file being in /usr/local/lib.
I deleted the file, recompiled and everything is now sweet.

Thanks again
Steve


On Fri, 2002-10-11 at 01:17, Daniel Morissette wrote:

    > Steven Bowden wrote:
    > 
    > Daniel,
    > I have got IMAGEPATH and IMAGETMP set in the map file.  Here is the
    > extract from my map file
    > WEB
    >   LOG /var/www/html/blis/blis.log
    >   IMAGEPATH "/var/www/html/tmp/"
    >   IMAGEURL "/tmp/"
    >   METADATA
    >     WMS_TITLE "BLIS"
    >     WMS_ABSTRACT "This is the BLIS (Bundaberg Land Information
    > System)."
    >     WMS_ACCESSCONSTRAINTS none
    >   END
    > END
    > 
    > I changed the working path (/var/www/html/blis) to writable and it
    > then saved the tmp images to this directory even though IMAGEPATH was
    > was set to /var/www/html/tmp/ in the map file.
    > 
    > Any thoughts?
    > Steve
    > 
    
    This is very odd.  Can you check that you don't have a second IMAGEPATH
    further down in your mapfile?
    
    Also, try printing the value of $map->web->imagepath immediately after
    the call to ms_newMapObj() to find out if it reads the right value. 
    Then print this value again just before the call to SaveWebImage() ...
    if the value is empty before saveWebImage() then it must be your script
    that changed the value somewhere.  If the value is still valid then it
    is likely a bug in MapScript and the best way to troubleshoot this for
    us would be to get a small sample app with scripts and data that
    reproduces this.  But since nobody else ran into that, it seems unlikely
    to be a bug and I would check for a problem in the mapfile or PHP script
    first.
    
    Daniel 
    -- 
    ------------------------------------------------------------
     Daniel Morissette               morissette@dmsolutions.ca
     DM Solutions Group              http://www.dmsolutions.ca/
    ------------------------------------------------------------
      Don't put for tomorrow what you can do today, because if 
          you enjoy it today you can do it again tomorrow.
    

--=-yGy2kRDMUvL/rtYOqgF0
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/1.0.2">
</HEAD>
<BODY>
Thanks for you help Daniel.
<BR>
I found the problem was the same as what Jean-Francois was having, the libmap.a file being in /usr/local/lib.
<BR>
I deleted the file, recompiled and everything is now sweet.
<BR>

<BR>
Thanks again
<BR>
Steve
<BR>

<BR>

<BR>
On Fri, 2002-10-11 at 01:17, Daniel Morissette wrote:
    <BLOCKQUOTE>
<PRE><FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; Steven Bowden wrote:</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; Daniel,</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; I have got IMAGEPATH and IMAGETMP set in the map file.  Here is the</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; extract from my map file</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; WEB</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt;   LOG /var/www/html/blis/blis.log</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt;   IMAGEPATH &quot;/var/www/html/tmp/&quot;</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt;   IMAGEURL &quot;/tmp/&quot;</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt;   METADATA</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt;     WMS_TITLE &quot;BLIS&quot;</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt;     WMS_ABSTRACT &quot;This is the BLIS (Bundaberg Land Information</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; System).&quot;</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt;     WMS_ACCESSCONSTRAINTS none</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt;   END</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; END</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; I changed the working path (/var/www/html/blis) to writable and it</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; then saved the tmp images to this directory even though IMAGEPATH was</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; was set to /var/www/html/tmp/ in the map file.</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; Any thoughts?</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; Steve</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&gt; </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>This is very odd.  Can you check that you don't have a second IMAGEPATH</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>further down in your mapfile?</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Also, try printing the value of $map-&gt;web-&gt;imagepath immediately after</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>the call to ms_newMapObj() to find out if it reads the right value. </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Then print this value again just before the call to SaveWebImage() ...</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>if the value is empty before saveWebImage() then it must be your script</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>that changed the value somewhere.  If the value is still valid then it</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>is likely a bug in MapScript and the best way to troubleshoot this for</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>us would be to get a small sample app with scripts and data that</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>reproduces this.  But since nobody else ran into that, it seems unlikely</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>to be a bug and I would check for a problem in the mapfile or PHP script</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>first.</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>Daniel </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>-- </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>------------------------------------------------------------</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I> Daniel Morissette               morissette@dmsolutions.ca</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I> DM Solutions Group              http://www.dmsolutions.ca/</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>------------------------------------------------------------</FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>  Don't put for tomorrow what you can do today, because if </FONT></FONT></I>
<FONT COLOR="#737373"><FONT SIZE="3"><I>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; you enjoy it today you can do it again tomorrow.</FONT></FONT></I>
</PRE>
    </BLOCKQUOTE>
</BODY>
</HTML>

--=-yGy2kRDMUvL/rtYOqgF0--