Opened 6 years ago

Closed 6 years ago

#4374 closed defect (fixed)

undefined reference to `geod_init'

Reported by: robe Owned by: robe
Priority: blocker Milestone: PostGIS 3.0.0
Component: QA/buildbots Version: master
Keywords: Cc:

Description

I've been getting errors running trunk on new debbie

I thought maybe it was something with proj 5.2.0 and changes we made in 3 because PostGIS 2.5 runs fine.

However when I try to test 5.2.0 on my desktop, it desn't error out so not sure if its something I missed installing or I have 2 versions of proj lurking

  PostGIS is now configured for x86_64-pc-linux-gnu

 -------------- Compiler Info ------------- 
  C compiler:           gcc -std=gnu99 -g -O2 -fno-math-errno -fno-signed-zeros
  CPPFLAGS:              -I/var/lib/jenkins/workspace/geos/rel-3.6w64/include   -I/usr/include/libxml2 -I/usr/include   
  SQL preprocessor:     /usr/bin/cpp -traditional-cpp -w -P

 -------------- Additional Info ------------- 
  Interrupt Tests:   DISABLED use: --with-interrupt-tests to enable

 -------------- Dependencies -------------- 
  GEOS config:          /var/lib/jenkins/workspace/geos/rel-3.6w64/bin/geos-config
  GEOS version:         3.6.4dev
  GDAL config:          /var/lib/jenkins/workspace/gdal/rel-2.4w64/bin/gdal-config
  GDAL version:         2.4.1
  SFCGAL config:        /usr/bin/sfcgal-config
  SFCGAL version:       1.3.6
  PostgreSQL config:    /var/lib/jenkins/workspace/pg/rel/pg9.6w64/bin/pg_config
  PostgreSQL version:   PostgreSQL 9.6.12
  PROJ4 version:        52
  Libxml2 config:       /usr/bin/xml2-config
  Libxml2 version:      2.9.4
  JSON-C support:       no
  protobuf-c support:   no
  PCRE support:         no
  Perl:                 /usr/bin/perl
  Wagyu:                no

 --------------- Extensions --------------- 
  PostGIS Raster:                     enabled
  PostGIS Topology:                   enabled
  SFCGAL support:                     enabled
  Address Standardizer support:       disabled

 -------- Documentation Generation -------- 
  xsltproc:             /usr/bin/xsltproc
  xsl style sheets:     /usr/share/xml/docbook/stylesheet/docbook-xsl
  dblatex:              /usr/bin/dblatex
  convert:              /usr/bin/convert
  mathml2.dtd:          /usr/share/xml/schema/w3c/mathml/dtd/mathml2.dtd

/usr/bin/ld: ../../liblwgeom/.libs/liblwgeom.a(lwspheroid.o): in function `ptarray_area_spheroid':
/var/lib/jenkins/workspace/postgis/branches/3.0/liblwgeom/lwspheroid.c:144: undefined reference to `geod_init'
/usr/bin/ld: /var/lib/jenkins/workspace/postgis/branches/3.0/liblwgeom/lwspheroid.c:146: undefined reference to `geod_polygon_init'
/usr/bin/ld: /var/lib/jenkins/workspace/postgis/branches/3.0/liblwgeom/lwspheroid.c:155: undefined reference to `geod_polygon_addpoint'
/usr/bin/ld: /var/lib/jenkins/workspace/postgis/branches/3.0/liblwgeom/lwspheroid.c:158: undefined reference to `geod_polygon_compute'
/usr/bin/ld: ../../liblwgeom/.libs/liblwgeom.a(lwspheroid.o): in function `spheroid_distance':
/var/lib/jenkins/workspace/postgis/branches/3.0/liblwgeom/lwspheroid.c:82: undefined reference to `geod_init'
/usr/bin/ld: /var/lib/jenkins/workspace/postgis/branches/3.0/liblwgeom/lwspheroid.c:88: undefined reference to `geod_inverse'
/usr/bin/ld: ../../liblwgeom/.libs/liblwgeom.a(lwspheroid.o): in function `spheroid_direction':
/var/lib/jenkins/workspace/postgis/branches/3.0/liblwgeom/lwspheroid.c:103: undefined reference to `geod_init'
/usr/bin/ld: /var/lib/jenkins/workspace/postgis/branches/3.0/liblwgeom/lwspheroid.c:109: undefined reference to `geod_inverse'
/usr/bin/ld: ../../liblwgeom/.libs/liblwgeom.a(lwspheroid.o): in function `spheroid_project':
/var/lib/jenkins/workspace/postgis/branches/3.0/liblwgeom/lwspheroid.c:126: undefined reference to `geod_init'
/usr/bin/ld: /var/lib/jenkins/workspace/postgis/branches/3.0/liblwgeom/lwspheroid.c:130: undefined reference to `geod_direct'

Change History (4)

comment:1 by robe, 6 years ago

Component: postgisbuild/upgrade/install
Owner: changed from pramsey to strk

I think the problem may be I installed the 5.2 binaries but an older development lib and since 3.0 takes advantage of > 5. enhancements, 2.5 problem doesn't care about these new function. Going to try to remove and reinstall proj

comment:2 by robe, 6 years ago

Component: build/upgrade/installbuildbots
Owner: changed from strk to robe

comment:3 by strk, 6 years ago

Still an issue ? Badge on wiki says 2.5 Debbie is passing…

comment:4 by robe, 6 years ago

Resolution: fixed
Status: newclosed

no — not sure what fixed it.

Note: See TracTickets for help on using tickets.