<br><br><div class="gmail_quote">On Wed, Jul 27, 2011 at 5:17 AM, Paragon Corporation <span dir="ltr"><<a href="mailto:lr@pcorp.us">lr@pcorp.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">





<u></u>
<u></u>
<u></u>





<div link="blue" vlink="purple" lang="EN-US"><div>

<font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">The reason why you don’t have to
install first before doing a make check is that the regress version installs a
version of postgis where the libdir is pointing at your regress folder .so/dll
, and not the one in the normal bin folder of your PostgreSQL install.</span></font>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">I forget, but I think this is the same
case for the <a href="http://rppostgis.so/dll" target="_blank">rppostgis.so/dll</a>.<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u></span></font></p></div></div></blockquote><div><br>So if I understand you correctly, the situation is:<br>
<br>1] Postgresql server installed on the same machine which is performing the make check.<br>2] Postgresql server running prior to running "make check".<br>3] "make check" changes the library search path of the postgresql server at run time in order to insert it's own "custom" libs.<br>
<br>Do I need to run make check using the same (OS) user who is running the postgresql server, or can any (OS) user with access to the machine insert their own libraries into my running server? <br><br>Thanks!<br>Bryce<br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> <u></u></span></font></p>


<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">I’m on windows and compile using
mingW so not sure how others do it, but I have 3 versions of PostgreSQL I test
with  that I launch with a batch script on different ports prior to doing
any compile make check.  So my compile script compiles for each, and then
tests against the port I have for that version of PostgreSQL<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">By setting the PGPORT, PGUSER environment
variables.<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">So my compile / make check / install
script has these lines<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">export PGPORT=5434<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">export PG_VER=84<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">export PGUSER=postgres<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">And I change those for each version I
compile against to get the right include paths etc.<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">The other VER variables are other ones I
have defined to point at different versions of GDAL, XML, GEOS etc as needed<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">./configure
--prefix=/c/projects/pg/pg${PG_VER}
--with-gdalconfig=/c/projects/gdal/rel-${GDAL_VER}/bin/gdal-config
--with-xml2config=/c/projects/libxml/libxml2-${XML_VER}release/bin/xml2-config
--with-pgconfig=/c/projects/pg/pg${PG_VER}/bin/pg_config
--with-geosconfig=/c/projects/geos/rel-${GEOS_VER}/bin/geos-config
--with-projdir=/c/projects/proj/rel-4.6.1 --with-gui --with-raster
--with-topology<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">I think the process is essentially the
same under Linux as it is in MingW so the above approach should work for you.<u></u><u></u></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Hope that helps,<u></u><u></u></span></font></p>

<p class="MsoNormal"><u></u><u></u><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Regina</span></font><u></u><u></u><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u><u></u></span></font></p>


<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"><u></u> <u></u></span></font></p>

<div>

<div class="MsoNormal" style="text-align:center" align="center"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">

<hr size="2" width="100%" align="center">

</span></font></div>

<p class="MsoNormal"><b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma;font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">
<a href="mailto:postgis-devel-bounces@postgis.refractions.net" target="_blank">postgis-devel-bounces@postgis.refractions.net</a>
[mailto:<a href="mailto:postgis-devel-bounces@postgis.refractions.net" target="_blank">postgis-devel-bounces@postgis.refractions.net</a>] <b><span style="font-weight:bold">On Behalf Of </span></b>Bryce L Nordgren<br>
<b><span style="font-weight:bold">Sent:</span></b> Tuesday, July 26, 2011 10:49
PM<br>
<b><span style="font-weight:bold">To:</span></b> <u></u>PostGIS
 Development Discussion<u></u><br>
<b><span style="font-weight:bold">Subject:</span></b> [postgis-devel] make
check question</span></font><u></u><u></u></p>

</div><div><div></div><div class="h5">

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>

<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">The attached file is the output from "make check" (after
applying my patch on #1050). The CUnit tests appear to all run successfully.
Then there's another phase where something tries to connect to a running
server. This fails, of course, as there is no running server on my system (and
if there were, it wouldn't be the modified version).<br>
<br>
When I first saw this, I took this to be an indication that you never run
"make check" until the software is installed, the database cluster is
initialized, and everything is happy. But I was corrected into the belief that
"make check" should be run before "make install". But it's
still trying to connect to a server which isn't there. So is there a trick? If
the build system is supposed to be managing a "faux install" for testing
purposes, is there something in the error messages which indicates what's going
wrong? How isolated is the build directory from the system directories? (I'm
running this as a regular user.)<br>
<br>
And of course, postgis is just an extension to the postgresql server, it
doesn't contain the server code itself. How are you supposed to run the tests?<br>
<br>
Bryce<u></u><u></u></span></font></p>

</div></div></div>

</div>


<br>_______________________________________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@postgis.refractions.net">postgis-devel@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-devel" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-devel</a><br>
<br></blockquote></div><br>