[postgis-devel] [PostGIS] #219: Run 'make check' without needing 'make install' first

PostGIS trac at osgeo.org
Wed Jul 29 11:14:43 PDT 2009


#219: Run 'make check' without needing 'make install' first
--------------------------+-------------------------------------------------
  Reporter:  pramsey      |       Owner:  pramsey      
      Type:  enhancement  |      Status:  reopened     
  Priority:  medium       |   Milestone:  postgis 1.5.0
 Component:  postgis      |     Version:  trunk        
Resolution:               |    Keywords:               
--------------------------+-------------------------------------------------
Changes (by mloskot):

  * status:  closed => reopened
  * resolution:  fixed =>

Comment:

 Dear Fellows,

 Unfortunately, it does not work for me under Ubuntu 9.10 (Karmic Koala,
 64-bit).
 Here is the set of commands I usually issue to rebuild and install PostGIS
 from SVN trunk:

 {{{
 svn up && \
 ./autogen.sh && \
 ./configure && \
 make clean && \
 make && \
 make comments && \
 make check && \
 sudo make install && \
 sudo make comments-install
 }}}

 When building r4335 ''make check'' fails:
 {{{
 mloskot at vb-ubuntu910-x64:~/dev/postgis/_svn/trunk$ make check
 /usr/bin/make -C liblwgeom
 make[1]: Entering directory
 `/home/mloskot/dev/postgis/_svn/trunk/liblwgeom'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory
 `/home/mloskot/dev/postgis/_svn/trunk/liblwgeom'
 /usr/bin/make -C postgis
 make[1]: Entering directory `/home/mloskot/dev/postgis/_svn/trunk/postgis'
 make[1]: Nothing to be done for `all'.
 make[1]: Leaving directory `/home/mloskot/dev/postgis/_svn/trunk/postgis'
 /usr/bin/make -C liblwgeom/cunit check
 make[1]: Entering directory
 `/home/mloskot/dev/postgis/_svn/trunk/liblwgeom/cunit'


      CUnit - A Unit testing framework for C - Version 2.1-0
      http://cunit.sourceforge.net/


 Suite: PostGIS Computational Geometry Suite
   Test: test_lw_segment_side() ... passed
   Test: test_lw_segment_intersects() ... passed
   Test: test_lwline_crossing_short_lines() ... passed
   Test: test_lwline_crossing_long_lines() ... passed
   Test: test_lwpoint_set_ordinate() ... passed
   Test: test_lwpoint_get_ordinate() ... passed
   Test: test_lwpoint_interpolate() ... passed
   Test: test_lwline_clip() ... passed
   Test: test_lwline_clip_big() ... passed
   Test: test_lwmline_clip() ... passed
   Test: test_geohash_point() ... passed
   Test: test_geohash_precision() ... passed
   Test: test_geohash() ... passed
 Suite: PostGIS Measures Suite
   Test: test_mindistance2d_recursive_tolerance() ... passed

 --Run Summary: Type      Total     Ran  Passed  Failed
                suites        2       2     n/a       0
                tests        14      14      14       0
                asserts      84      84      84       0
 make[1]: Leaving directory
 `/home/mloskot/dev/postgis/_svn/trunk/liblwgeom/cunit'
 /usr/bin/make -C regress check
 /bin/sh: pushd: not found
 make[1]: Entering directory `/home/mloskot/dev/postgis/_svn/trunk/regress'
 sed
 's,$libdir/postgis,/home/mloskot/dev/postgis/_svn/trunk/regress/../postgis/libpostgis,g'
 ../postgis/postgis.sql > postgis.sql
 Creating spatial db postgis_reg
 ERROR:  function postgis_lib_version() does not exist
 LINE 1: select postgis_lib_version()
                ^
 HINT:  No function matches the given name and argument types. You might
 need to add explicit type casts.

  Something went wrong (no postgis installed in postgis_reg).
  For details, check /tmp/pgis_reg_17659/regress_log

 make[1]: *** [check] Error 1
 make[1]: Leaving directory `/home/mloskot/dev/postgis/_svn/trunk/regress'
 make: *** [check] Error 2
 }}}

 and here is the regress log:
 {{{
 mloskot at vb-ubuntu910-x64:~/dev/postgis/_svn/trunk$ more
 /tmp/pgis_reg_17659/regress_log
 BEGIN
 psql:postgis.sql:53: NOTICE:  type "spheroid" is not yet defined
 DETAIL:  Creating a shell type definition.
 psql:postgis.sql:53: ERROR:  could not access file
 "/home/mloskot/dev/postgis/_svn/trunk/regress/../postgis/libpostgis-1.5":
 No such file or directory
 ...
 }}}

 There is no libpostgis-1.5.so but only postgis-1.5.so:
 {{{
 mloskot at vb-ubuntu910-x64:~/dev/postgis/_svn/trunk$ find . -name
 'postgis*.so'
 ./postgis/postgis-1.5.so
 mloskot at vb-ubuntu910-x64:~/dev/postgis/_svn/trunk$ find . -name
 'libpostgis.so*'
 mloskot at vb-ubuntu910-x64:~/dev/postgis/_svn/trunk$
 }}}

 So, I've reopened this ticket.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/219#comment:4>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS


More information about the postgis-devel mailing list