[geos-devel] Re: [postgis-users] Error compiling PostGIS + GEOS

Chip Masters chip_masters at yahoo.com
Fri Jun 17 12:51:02 PDT 2005


Thanks strk,

With that change we were able to complete that step of
the installation. Now, however, I am having difficulty
with the step:

> As postgres run:
>
>   createlang plpgsql yourdatabase
>   psql -f lwpostgis.sql -d yourdatabase

I created a test database, named 'test' and gave it
the plpgsql language. I verified that this worked:

> test=# select * from pg_language ;
>  lanname  | lanispl | lanpltrusted | lanplcallfoid |
> lanvalidator |    lanacl     
>----------+---------+--------------+---------------+--------------+---------------
>  internal | f       | f            |             0 |
        > 2246 | 
>  c        | f       | f            |             0 |
        > 2247 | 
>  plpgsql  | t       | t            |         40392 |
       > 40393 | 
>  sql      | f       | t            |             0 |
        > 2248 | {=U/postgres}
> (4 rows)

however when I try to load the lwpostgis.sql script, I
get an error:

> ~/% psql -f
/home/cyc110/scratch/postgis-1.0.1/lwpostgis.sql -d
test
> BEGIN
>psql:/home/cyc110/scratch/postgis-1.0.1/lwpostgis.sql:41:
> NOTICE:  type "histogram2d" is not yet defined
> DETAIL:  Creating a shell type definition.
>psql:/home/cyc110/scratch/postgis-1.0.1/lwpostgis.sql:41:
> ERROR:  could not load library
"/cyc110/scratch/pgsql/lib/liblwgeom.so.1.0":
/cyc110/scratch/pgsql/lib/liblwgeom.so.1.0: undefined
symbol: __builtin_new
>psql:/home/cyc110/scratch/postgis-1.0.1/lwpostgis.sql:46:
> ERROR:  current transaction is aborted, commands
ignored until end of transaction block
> ...

Any advice on this problem?

Thanks in advance,

Chip Masters

--- strk at refractions.net wrote:

> Auch! On my system that's only a warning :(
> It is probably due to CXXFLAGS being appended
> CFLAGS, which 
> inherits default value at build time.
> 
> Try changing line 206 of lwgeom/Makefile (first
> CFLAGS occurrence)
> 
> From:
> CFLAGS += ...
> 
> To:
> CFLAGS = ...
> 
> --strk;
> 
> 
> On Mon, Jun 13, 2005 at 09:24:54AM -0700, Chip
> Masters wrote:
> > OK, we downloaded the 2.1.2 GEOS package, and
> tried
> > installing PostGIS 1.0.1 w/ it, and now I'm
> getting
> > this trying to rebuild PostGIS:
> > 
> > cc1plus: Unrecognized option
> > `-Wdeclaration-after-statement'
> > cc1plus: Unrecognized option
> `-Wold-style-definition'
> > cc1plus: Unrecognized option `-Wendif-labels'
> > make[1]: *** [lwgeom_geos_wrapper.o] Error 1
> > make[1]: Leaving directory
> > `/cyc110/scratch/postgis-1.0.1/lwgeom'
> > make: *** [liblwgeom] Error 2
> > [root at cyc11 postgis]# ls
> > 
> > 
> > There are only 2 options for using GEOS in the
> > Makefile.config, and I am certain they are set
> > correctly.
> > 
> > Any help is greatly appreciated.
> > 
> > Chip Masters
> > chip_masters at yahoo.com
> > 
> > --- strk at refractions.net wrote:
> > 
> > > The upcoming 2.1.2 GEOS version should have
> fixed
> > > this,
> > > you can try downloading the "branch-2-1" branch
> from
> > > CVS.
> > > --strk;
> > > 
> > > On Wed, Jun 01, 2005 at 10:51:46AM -0700, Chip
> > > Masters wrote:
> > > > PostGIS users,
> > > > 
> > > > I recently tried compiling the PostGIS 1.0.1
> > > package
> > > > together with the GEOS 2.1.1 package,
> following
> > > the
> > > > instructions for doing so found in the
> > > README.postgis
> > > > document included in the PostGIS distribution.
> I
> > > am
> > > > using the following versions of gmake and gcc:
> > > > 
> > > > GNU Make version 3.79.1
> > > > gcc (GCC) 3.4.2
> > > > 
> > > > I am trying to install on RedHat 7.3, w/ the
> > > > 2.4.20-18.7bigmem kernel. I get the following
> > > error:
> > > > 
> > > > > ../index/quadtree/QuadTreeNodeBase.cpp:149:
> > > > `sprintf' > undeclared (first use this
> function)
> > > > > ../index/quadtree/QuadTreeNodeBase.cpp:149:
> > > (Each 
> > > > > undeclared identifier is reported only once
> for
> > > each
> > > > > function it appears in.)
> > > > > make[2]: *** [QuadTreeNodeBase.lo] Error 1
> > > > > make[2]: Leaving directory 
> > > > > `/cyc110/scratch/geos-2.1.1/source/geom'
> > > > > make[1]: *** [all-recursive] Error 1
> > > > > make[1]: Leaving directory 
> > > > > `/cyc110/scratch/geos-2.1.1/source'
> > > > > make: *** [all-recursive] Error 1
> > > > 
> > > > Can anyone help?
> > > > 
> > > > Thanks in advance,
> > > > 
> > > > Chip Masters
> > > > chip_masters at yahoo.com
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 		
> > > > __________________________________ 
> > > > Discover Yahoo! 
> > > > Get on-the-go sports scores, stock quotes,
> news
> > > and more. Check it out! 
> > > > http://discover.yahoo.com/mobile.html
> > > >
> _______________________________________________
> > > > postgis-users mailing list
> > > > postgis-users at postgis.refractions.net
> > > >
> > >
> >
>
http://postgis.refractions.net/mailman/listinfo/postgis-users
> > > _______________________________________________
> > > postgis-users mailing list
> > > postgis-users at postgis.refractions.net
> > >
> >
>
http://postgis.refractions.net/mailman/listinfo/postgis-users
> > > 
> > 
> > 
> > 
> > 
> > 
> > 		
> > __________________________________ 
> > Yahoo! Mail Mobile 
> > Take Yahoo! Mail with you! Check email on your
> mobile phone. 
> > http://mobile.yahoo.com/learn/mail 
> > _______________________________________________
> > geos-devel mailing list
> > geos-devel at geos.refractions.net
> >
>
http://geos.refractions.net/mailman/listinfo/geos-devel
> _______________________________________________
> geos-devel mailing list
> geos-devel at geos.refractions.net
>
http://geos.refractions.net/mailman/listinfo/geos-devel
> 





		
____________________________________________________ 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com



More information about the postgis-users mailing list