[postgis-tickets] [PostGIS] #2878: winnie coughing up blood when trying to build cunit for twkb

PostGIS trac at osgeo.org
Sat Aug 9 19:24:15 PDT 2014


#2878: winnie coughing up blood when trying to build cunit for twkb
----------------------+-----------------------------------------------------
  Reporter:  robe     |       Owner:  nicklas      
      Type:  defect   |      Status:  reopened     
  Priority:  blocker  |   Milestone:  PostGIS 2.2.0
 Component:  postgis  |     Version:  trunk        
Resolution:           |    Keywords:               
----------------------+-----------------------------------------------------
Changes (by robe):

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


Comment:

 nope now she's very angry and grinding her teeth :)
 Your r12875 commit was okay and then she started growling at r12876

 {{{
 ../.libs/liblwgeom.a(lwout_twkb.o): In function
 `_varint_u64_encoded_size':
 e:\jenkins\postgis\branches\2.2\liblwgeom/varint.h:53: multiple definition
 of `_varint_u64_encoded_size'
 cu_varint.o:e:\jenkins\postgis\branches\2.2\liblwgeom\cunit/../varint.h:53:
 first defined here
 ../.libs/liblwgeom.a(lwout_twkb.o): In function `_varint_u64_encode_buf':
 e:\jenkins\postgis\branches\2.2\liblwgeom/varint.h:60: multiple definition
 of `_varint_u64_encode_buf'
 cu_varint.o:e:\jenkins\postgis\branches\2.2\liblwgeom\cunit/../varint.h:60:
 first defined here
 ../.libs/liblwgeom.a(lwout_twkb.o): In function `varint_u32_encoded_size':
 e:\jenkins\postgis\branches\2.2\liblwgeom/varint.h:75: multiple definition
 of `varint_u32_encoded_size'
 cu_varint.o:e:\jenkins\postgis\branches\2.2\liblwgeom\cunit/../varint.h:75:
 first defined here
 ../.libs/liblwgeom.a(lwout_twkb.o): In function `varint_u32_encode_buf':
 e:\jenkins\postgis\branches\2.2\liblwgeom/varint.h:90: multiple definition
 of `varint_u32_encode_buf'
 cu_varint.o:e:\jenkins\postgis\branches\2.2\liblwgeom\cunit/../varint.h:90:
 first defined here
 ../.libs/liblwgeom.a(lwout_twkb.o): In function `varint_s32_encoded_size':
 e:\jenkins\postgis\branches\2.2\liblwgeom/varint.h:95: multiple definition
 of `varint_s32_encoded_size'
 cu_varint.o:e:\jenkins\postgis\branches\2.2\liblwgeom\cunit/../varint.h:95:
 first defined here
 ../.libs/liblwgeom.a(lwout_twkb.o): In function `varint_s32_encode_buf':
 e:\jenkins\postgis\branches\2.2\liblwgeom/varint.h:111: multiple
 definition of `varint_s32_encode_buf'
 cu_varint.o:e:\jenkins\postgis\branches\2.2\liblwgeom\cunit/../varint.h:111:
 first defined here
 ../.libs/liblwgeom.a(lwout_twkb.o): In function `varint_s64_encoded_size':
 e:\jenkins\postgis\branches\2.2\liblwgeom/varint.h:117: multiple
 definition of `varint_s64_encoded_size'
 cu_varint.o:e:\jenkins\postgis\branches\2.2\liblwgeom\cunit/../varint.h:117:
 first defined here
 ../.libs/liblwgeom.a(lwout_twkb.o): In function `varint_s64_encode_buf':
 e:\jenkins\postgis\branches\2.2\liblwgeom/varint.h:134: multiple
 definition of `varint_s64_encode_buf'
 cu_varint.o:e:\jenkins\postgis\branches\2.2\liblwgeom\cunit/../varint.h:134:
 first defined here
 ../.libs/liblwgeom.a(lwout_twkb.o): In function `varint_u64_encoded_size':
 e:\jenkins\postgis\branches\2.2\liblwgeom/varint.h:140: multiple
 definition of `varint_u64_encoded_size'
 cu_varint.o:e:\jenkins\postgis\branches\2.2\liblwgeom\cunit/../varint.h:140:
 first defined here
 ../.libs/liblwgeom.a(lwout_twkb.o): In function `varint_u64_encode_buf':
 e:\jenkins\postgis\branches\2.2\liblwgeom/varint.h:155: multiple
 definition of `varint_u64_encode_buf'
 cu_varint.o:e:\jenkins\postgis\branches\2.2\liblwgeom\cunit/../varint.h:155:
 first defined here
 ../.libs/liblwgeom.a(lwout_twkb.o):lwout_twkb.c:(.rdata+0x2f4): multiple
 definition of `varint_s32_max'
 cu_varint.o:cu_varint.c:(.rdata+0x1e0): first defined here
 ../.libs/liblwgeom.a(lwout_twkb.o):lwout_twkb.c:(.rdata+0x2f8): multiple
 definition of `varint_s32_min'
 cu_varint.o:cu_varint.c:(.rdata+0x1e4): first defined here
 ../.libs/liblwgeom.a(lwout_twkb.o):lwout_twkb.c:(.rdata+0x2fc): multiple
 definition of `varint_u32_max'
 cu_varint.o:cu_varint.c:(.rdata+0x1e8): first defined here
 ../.libs/liblwgeom.a(lwout_twkb.o):lwout_twkb.c:(.rdata+0x300): multiple
 definition of `varint_s64_max'
 cu_varint.o:cu_varint.c:(.rdata+0x1f0): first defined here
 ../.libs/liblwgeom.a(lwout_twkb.o):lwout_twkb.c:(.rdata+0x308): multiple
 definition of `varint_s64_min'
 cu_varint.o:cu_varint.c:(.rdata+0x1f8): first defined here
 ../.libs/liblwgeom.a(lwout_twkb.o):lwout_twkb.c:(.rdata+0x310): multiple
 definition of `varint_u64_max'
 cu_varint.o:cu_varint.c:(.rdata+0x200): first defined here
 collect2.exe: error: ld returned 1 exit status
 Makefile:83: recipe for target `cu_tester' failed
 make[2]: *** [cu_tester] Error 1
 make[2]: Leaving directory
 `/projects/postgis/branches/2.2/liblwgeom/cunit'
 Makefile:156: recipe for target `check' failed
 make[1]: *** [check] Error 2
 make[1]: Leaving directory `/projects/postgis/branches/2.2/liblwgeom'
 GNUmakefile:14: recipe for target `check' failed
 make: *** [check] Error 1
 }}}


 Maybe it's because you are missing an include guard for varint.h?

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2878#comment:8>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list