[postgis-tickets] [PostGIS] #2649: cu_varint.o: undefined reference to symbol 'lround@@GLIBC_2.2.5'

PostGIS trac at osgeo.org
Sat Feb 22 12:03:45 PST 2014


#2649: cu_varint.o: undefined reference to symbol 'lround@@GLIBC_2.2.5'
---------------------+------------------------------------------------------
 Reporter:  strk     |       Owner:  nicklas      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.2.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------
Changes (by strk):

  * owner:  pramsey => nicklas


Comment:

 No idea where the error comes from, here's the full context:
 {{{
 make[2]: Entering directory `/usr/src/postgis/postgis/liblwgeom/cunit'
 gcc -g -O2  -Wall -Wmissing-prototypes -I/usr/local/include   -I.. -c -o
 cu_varint.o cu_varint.c
 /bin/bash ../../libtool --mode=link gcc -g -O2  -Wall -Wmissing-prototypes
 -I/usr/local/include   -o cu_tester cu_algorithm.o cu_buildarea.o
 cu_clean.o cu_print.o cu_misc.o cu_ptarray.o cu_geodetic.o cu_geos.o
 cu_tree.o cu_measures.o cu_node.o cu_libgeom.o cu_split.o
 cu_stringbuffer.o cu_triangulate.o cu_homogenize.o cu_force_sfs.o
 cu_out_wkt.o cu_out_wkb.o cu_out_gml.o cu_out_kml.o cu_out_geojson.o
 cu_out_svg.o cu_surface.o cu_out_x3d.o cu_in_geojson.o cu_in_wkb.o
 cu_in_wkt.o cu_varint.o cu_tester.o  ../liblwgeom.la -lcunit
 libtool: link: gcc -g -O2 -Wall -Wmissing-prototypes -I/usr/local/include
 -o .libs/cu_tester cu_algorithm.o cu_buildarea.o cu_clean.o cu_print.o
 cu_misc.o cu_ptarray.o cu_geodetic.o cu_geos.o cu_tree.o cu_measures.o
 cu_node.o cu_libgeom.o cu_split.o cu_stringbuffer.o cu_triangulate.o
 cu_homogenize.o cu_force_sfs.o cu_out_wkt.o cu_out_wkb.o cu_out_gml.o
 cu_out_kml.o cu_out_geojson.o cu_out_svg.o cu_surface.o cu_out_x3d.o
 cu_in_geojson.o cu_in_wkb.o cu_in_wkt.o cu_varint.o cu_tester.o
 ../.libs/liblwgeom.so -lcunit
 /usr/bin/ld: cu_varint.o: undefined reference to symbol
 'lround@@GLIBC_2.2.5'
 /lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from
 command line
 collect2: error: ld returned 1 exit status
 }}}

 If I remove cu_varint.o from the commanline (after rebuilding cu_tester.o
 to avoid its references) the build passes.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2649#comment:3>
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