Opened 14 years ago

Closed 13 years ago

#331 closed defect (wontfix)

GEOS build fails on linking on Solaris

Reported by: sandy2010 Owned by: pramsey
Priority: major Milestone:
Component: Build/Install Version: 3.1.1
Severity: Critical Keywords: sun, solaris, sparc
Cc:

Description (last modified by mloskot)

I'm building geos-3.1.1 on Solaris (5.9 sparc and 5.10 x86) and used all the 3 patches uploaded by rroliver in ticket #224.

and I get some issue during link time with multiple symbol definitions. When I provide --disable-inline during configure, it gives me the following error on linking:

CC -G -zdefs -hlibgeos-3.1.1.so -o .libs/libgeos-3.1.1.so   .libs/inlines.o -Qoption ld -z -Qoption ld allextract,algorithm/.libs/libalgorithm.a,geom/.libs/libgeom.a,geomgraph/.libs/libgeomgraph.a,index/.libs/libindex.a,io/.libs/libio.a,noding/.libs/libnoding.a,operation/.libs/liboperation.a,planargraph/.libs/libplanargraph.a,precision/.libs/libprecision.a,simplify/.libs/libsimplify.a,util/.libs/libutil.a -Qoption ld -z -Qoption ld defaultextract  -lCstd -lCrun -lc  

Undefined                       first referenced
 symbol                             in file

cos    operation/.libs/liboperation.a(OffsetCurveBuilder.o)
log    geom/.libs/libgeom.a(PrecisionModel.o)
pow      index/.libs/libindex.a(DoubleBits.o)
sin      operation/.libs/liboperation.a(OffsetCurveBuilder.o)
ceil     geom/.libs/libgeom.a(PrecisionModel.o)
fabs     algorithm/.libs/libalgorithm.a(CGAlgorithms.o)
sqrt     algorithm/.libs/libalgorithm.a(CGAlgorithms.o)
atan2    geom/.libs/libgeom.a(LineSegment.o)
floor    algorithm/.libs/libalgorithm.a(RobustDeterminant.o)
__fabsl  algorithm/.libs/libalgorithm.a(HCoordinate.o)
ld: fatal: Symbol referencing errors. No output written to .libs/libgeos-3.1.1.so
make[2]: *** [libgeos.la] Error 1
make[2]: Leaving directory `/opt/geos-3.1.1/source'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/geos-3.1.1/source'
make: *** [all-recursive] Error 1

Change History (6)

comment:1 by mloskot, 14 years ago

Keywords: sun solaris sparc added

comment:2 by mloskot, 14 years ago

Description: modified (diff)

comment:3 by mloskot, 14 years ago

Note, the patches from #224 have not been incorporated to GEOS source base, so they are not supported as a part of GEOS.

comment:4 by rroliver, 14 years ago

configure with

LIBS="-lm" ./configure ...

comment:5 by mloskot, 14 years ago

Component: DefaultBuild/Install
Owner: changed from geos-devel@… to pramsey
Summary: Geos build fails on linking on SolarisGEOS build fails on linking on Solaris

Feel free to update the Build Hints in BuildingOnUnixWithAutotools

comment:6 by strk, 13 years ago

Resolution: wontfix
Status: newclosed

Successful builds have been reported of geos 3.3.0 on solaris10 with sun pro v12 3.1 won't be fixed.

Note: See TracTickets for help on using tickets.