[geos-devel] Error Compiling GEOS CVS and Snapshot File Missing

strk at refractions.net strk at refractions.net
Tue May 10 04:04:13 EDT 2005


On Mon, May 09, 2005 at 10:45:40PM -0600, Darren Houston wrote:
> Hi strk,
> 
> I updated GEOS with your patch, started compiling and it almost made it all 
> the way through. Your patch did fix the one problem I had. A new error was 
> thrown that looked like it was an issue with the gcc compiler, so I upgraded 
> to a more recent version (3.4.3 from 3.3.5). GEOS CVS compiled fine. I've 
> included my compiler error below for future reference.

It looks like an STL limitation... doesn't provide copy semantic
for unsigned char (?).
Anyway current CVS contained the patch, which was needed anyway
(default value for T& was a T*)

> Thank you for your help,

Thank you for testing
--strk;

> 
> Darren H.
> 
> 
> example.o(.gnu.linkonce.t._ZNSbIhSt11char_traitsIhESaIhEE12_S_constructIPhEES4_T_S5_RKS1_St20forward_iterator_tag+0x4e): 
> In function `unsigned char* std::basic_string<unsigned char, 
> std::char_traits<unsigned char>, std::allocator<unsigned char> 
> >::_S_construct<unsigned char*>(unsigned char*, unsigned char*, 
> std::allocator<unsigned char> const&, std::forward_iterator_tag)':
> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-v3/bits/basic_string.h:311: 
> undefined reference to `std::char_traits<unsigned char>::copy(unsigned char*, 
> unsigned char const*, unsigned)'
> collect2: ld returned 1 exit status
> make[1]: *** [example] Error 1
> 
> 
> On May 9, 2005 01:17 pm, strk at refractions.net wrote:
> > I didn't get errors with GCC 3.4.3, anyway this patch should
> > fix it, please try:
> >
> > Index: source/headers/geos/WKBWriterT.h
> > ===================================================================
> > RCS file: /home/cvs/postgis/geos/source/headers/geos/WKBWriterT.h,v
> > retrieving revision 1.3
> > diff -U2 -r1.3 WKBWriterT.h
> > --- source/headers/geos/WKBWriterT.h    29 Apr 2005 17:40:36 -0000      1.3
> > +++ source/headers/geos/WKBWriterT.h    9 May 2005 19:17:00 -0000
> > @@ -113,5 +113,5 @@
> >
> >  template<class T> void
> > -WKBWriterT<T>::write(const Geometry &g, T &os=outStream)
> > +WKBWriterT<T>::write(const Geometry &g, T &os)
> >  {
> >         outStream = &os;
> >
> >
> >
> > --
> > strk;
> >
> > On Mon, May 09, 2005 at 11:53:00AM -0600, Darren Houston wrote:
> > > Hello everyone,
> > >
> > > It's been about 6 months since I've updated my PostGIS and GEOS to the
> > > latest and greatest (CVS) to play with. I grabbed GEOS from the hourly
> > > snapshot from the website, configured and started to compile. An error
> > > was thrown;
> > >
> > > ../../source/headers/geos/io.h:272:29: geos/WKBWriterT.h: No such file or
> > > directory
> > >
> > > Indeed, this file is missing. So, I grabbed the latest CVS source (17:00
> > > hours GMT, May 9), ran autogen.sh, made sure WKBWriterT.h was in the
> > > source (which it was), configured and started to compile. An error was
> > > thrown;
> > >
> > > In file included from ../../source/headers/geos/io.h:272,
> > >                  from Geometry.cpp:28:
> > > ../../source/headers/geos/WKBWriterT.h:115: error: invalid use of member
> > > ` geos::WKBWriterT<T>::outStream'
> > >
> > > WKBWriterT.h is giving me problems. I looked at WKBWriterT.h, but I'm not
> > > a C++ programmer, so no blazing mistakes jumped out at me.
> > >
> > > My environment is as follows;
> > >
> > > gcc (GCC) 3.3.5  (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)
> > > GNU Make 3.80
> > >
> > > Let me know if you want any more info.
> > >
> > > Hope this was usefull,
> > >
> > > Darren H.
> > > _______________________________________________
> > > 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
> _______________________________________________
> geos-devel mailing list
> geos-devel at geos.refractions.net
> http://geos.refractions.net/mailman/listinfo/geos-devel



More information about the geos-devel mailing list