compilation error

Developers
2009-11-02
2013-04-22
  • John Pritchard
    John Pritchard
    2009-11-02

    hi, on opensolaris 5.11 build 104 nevada (sparc)

    opennurbs_point.cpp: In function `bool ON_IsFinite(double)':
    opennurbs_point.cpp:44: error: `finite' undeclared (first use this function)
    opennurbs_point.cpp:44: error: (Each undeclared identifier is reported only once for each function it appears in.)

    Found "finite" in the included ieeefp
    Guess my skills are very old and rusty
    Any help appreciated,
    thanks,
    john

     
  • John Pritchard
    John Pritchard
    2009-11-02

    so i'm missing -I/usr/include and wondering how the auticonf / configure / make process mucked that up

     
  • John Pritchard
    John Pritchard
    2009-11-02

    a simple test importing ieeefp and using "finite" works, so ieeefp isnt getting imported

     
  • John Pritchard
    John Pritchard
    2009-11-02

    added `#define HAVE_IEEEFP_H 1` to `brlcad/include/brlcad_config.h`
    guess configure isn't looking at the case defined in `src/other/openNURBS/opennurbs_point.cpp`

     
  • John Pritchard
    John Pritchard
    2009-11-02

    got up to an apparent libtool problem.. using libtool 1.5.22, autoconf 2.61 and automake 1.10

    `/bin/bash ../../../libtool -silent -tag=CXX  -silent  -mode=link g++ -I../../../src/other/openNURBS   -I../../../src/other/step/include -I../../../src/other/step/src/cleditor -I../../../src/other/step/src/clstepcore -I../../../src/other/step/src/clutils -I../../../src/other/step/src/cldai -I../../../src/other/step/src/test   -pipe -fno-strict-aliasing -fno-common -fexceptions -g   -L/usr/lib -L/usr/local/lib -L/usr/X11/lib -pipe -fno-strict-aliasing -fno-common -fexceptions -g -o step-g step_g-SdaiAll.o  step_g-SdaiCONFIG_CONTROL_DESIGN.o  step_g-SdaiCONFIG_CONTROL_DESIGN.init.o  step_g-compstructs.o step_g-schema.o  step_g-AdvancedBrepShapeRepresentation.o  step_g-AdvancedFace.o  step_g-AmountOfSubstanceContextDependentUnit.o  step_g-AmountOfSubstanceConversionBasedUnit.o  step_g-AmountOfSubstanceSiUnit.o  step_g-AmountOfSubstanceUnit.o  step_g-AreaContextDependentUnit.o  step_g-AreaConversionBasedUnit.o  step_g-AreaSiUnit.o step_g-AreaUnit.o  step_g-Axis1Placement.o  step_g-Axis2Placement.o  step_g-Axis2Placement2D.o  step_g-Axis2Placement3D.o  step_g-BRLCADWrapper.o step_g-BSplineCurve.o  step_g-BSplineCurveWithKnots.o  step_g-BSplineSurface.o  step_g-BSplineSurfaceWithKnots.o  step_g-BezierCurve.o step_g-BezierSurface.o  step_g-BoundaryCurve.o step_g-BoundedCurve.o  step_g-BoundedPCurve.o step_g-BoundedSurface.o  step_g-BoundedSurfaceCurve.o  step_g-CartesianPoint.o  step_g-CartesianTransformationOperator.o  step_g-CartesianTransformationOperator2D.o  step_g-CartesianTransformationOperator3D.o  step_g-Circle.o step_g-ClosedShell.o  step_g-CompositeCurve.o  step_g-CompositeCurveOnSurface.o  step_g-CompositeCurveSegment.o step_g-Conic.o  step_g-ConicalSurface.o  step_g-ConnectedFaceSet.o  step_g-ContextDependentUnit.o  step_g-ConversionBasedUnit.o step_g-Curve.o  step_g-CurveBoundedSurface.o  step_g-CurveReplica.o  step_g-CylindricalSurface.o  step_g-DefinitionalRepresentation.o  step_g-DerivedUnit.o  step_g-DerivedUnitElement.o  step_g-DimensionalExponents.o  step_g-Direction.o step_g-Edge.o  step_g-EdgeCurve.o step_g-EdgeLoop.o  step_g-ElectricCurrentContextDependentUnit.o  step_g-ElectricCurrentConversionBasedUnit.o  step_g-ElectricCurrentSiUnit.o  step_g-ElectricCurrentUnit.o  step_g-ElementarySurface.o step_g-Ellipse.o  step_g-Face.o step_g-FaceBound.o  step_g-FaceOuterBound.o step_g-FaceSurface.o  step_g-Factory.o step_g-FoundedItem.o  step_g-FunctionallyDefinedTransformation.o  step_g-GeometricRepresentationContext.o  step_g-GeometricRepresentationItem.o  step_g-GlobalUncertaintyAssignedContext.o  step_g-GlobalUnitAssignedContext.o  step_g-Hyperbola.o step_g-IntersectionCurve.o  step_g-LengthContextDependentUnit.o  step_g-LengthConversionBasedUnit.o  step_g-LengthMeasureWithUnit.o  step_g-LengthSiUnit.o step_g-LengthUnit.o  step_g-Line.o step_g-LocalUnits.o  step_g-Loop.o  step_g-LuminousIntensityContextDependentUnit.o  step_g-LuminousIntensityConversionBasedUnit.o  step_g-LuminousIntensitySiUnit.o  step_g-LuminousIntensityUnit.o  step_g-ManifoldSolidBrep.o  step_g-MassContextDependentUnit.o  step_g-MassConversionBasedUnit.o  step_g-MassSiUnit.o step_g-MassUnit.o  step_g-MeasureValue.o step_g-MeasureWithUnit.o  step_g-NamedUnit.o step_g-OffsetCurve2D.o  step_g-OffsetCurve3D.o step_g-OffsetSurface.o  step_g-OpenNurbsInterfaces.o  step_g-OrientedEdge.o step_g-PCurve.o  step_g-PCurveOrSurface.o step_g-Parabola.o  step_g-ParametricRepresentationContext.o  step_g-Path.o step_g-Placement.o  step_g-Plane.o  step_g-PlaneAngleContextDependentUnit.o  step_g-PlaneAngleConversionBasedUnit.o  step_g-PlaneAngleMeasureWithUnit.o  step_g-PlaneAngleSiUnit.o  step_g-PlaneAngleUnit.o step_g-Point.o  step_g-Polyline.o step_g-PullbackCurve.o  step_g-QuasiUniformCurve.o  step_g-QuasiUniformSurface.o  step_g-RatioContextDependentUnit.o  step_g-RatioConversionBasedUnit.o  step_g-RatioSiUnit.o step_g-RatioUnit.o  step_g-RationalBSplineCurve.o  step_g-RationalBSplineCurveWithKnots.o  step_g-RationalBSplineSurface.o  step_g-RationalBSplineSurfaceWithKnots.o  step_g-RationalBezierCurve.o  step_g-RationalBezierSurface.o  step_g-RationalQuasiUniformCurve.o  step_g-RationalQuasiUniformSurface.o  step_g-RationalUniformCurve.o  step_g-RationalUniformSurface.o  step_g-RectangularCompositeSurface.o  step_g-RectangularTrimmedSurface.o  step_g-Representation.o  step_g-RepresentationContext.o  step_g-RepresentationItem.o  step_g-STEPEntity.o step_g-STEPWrapper.o  step_g-SeamCurve.o  step_g-ShapeRepresentation.o step_g-SiUnit.o  step_g-SolidAngleContextDependentUnit.o  step_g-SolidAngleConversionBasedUnit.o  step_g-SolidAngleSiUnit.o  step_g-SolidAngleUnit.o step_g-SolidModel.o  step_g-SphericalSurface.o step_g-Surface.o  step_g-SurfaceCurve.o  step_g-SurfaceOfLinearExtrusion.o  step_g-SurfaceOfRevolution.o  step_g-SurfacePatch.o step_g-SurfaceReplica.o  step_g-SweptSurface.o  step_g-ThermodynamicTemperatureContextDependentUnit.o  step_g-ThermodynamicTemperatureConversionBasedUnit.o  step_g-ThermodynamicTemperatureSiUnit.o  step_g-ThermodynamicTemperatureUnit.o  step_g-TimeContextDependentUnit.o  step_g-TimeConversionBasedUnit.o  step_g-TimeSiUnit.o step_g-TimeUnit.o  step_g-TopologicalRepresentationItem.o  step_g-ToroidalSurface.o step_g-TrimmedCurve.o  step_g-TrimmingSelect.o  step_g-UncertaintyMeasureWithUnit.o  step_g-UniformCurve.o step_g-UniformSurface.o  step_g-Unit.o step_g-Vector.o  step_g-Vertex.o step_g-VertexLoop.o  step_g-VertexPoint.o  step_g-VolumeContextDependentUnit.o  step_g-VolumeConversionBasedUnit.o  step_g-VolumeSiUnit.o step_g-VolumeUnit.o  step_g-step-g.o ../../../src/libbu/libbu.la  ../../../src/libwdb/libwdb.la  ../../../src/librt/librt.la  ../../../src/other/step/src/clstepcore/libstepcore.la ../../../src/other/step/src/cldai/libstepdai.la ../../../src/other/step/src/cleditor/libstepeditor.la ../../../src/other/step/src/clutils/libsteputils.la ../../../src/other/step/src/express/libexpress.la
    g++: ../../../src/other/step/src/clstepcore/.libs/libstepcore.so: No such file or directory
    g++: ../../../src/other/step/src/cldai/.libs/libstepdai.so: No such file or directory
    g++: ../../../src/other/step/src/cleditor/.libs/libstepeditor.so: No such file or directory
    g++: /www/home/jdp/src/brlcad/src/other/step/src/clstepcore/.libs/libstepcore.so: No such file or directory
    g++: /www/home/jdp/src/brlcad/src/other/step/src/clutils/.libs/libsteputils.so: No such file or directory
    g++: /www/home/jdp/src/brlcad/src/other/step/src/express/.libs/libexpress.so: No such file or directory
    g++: ../../../src/other/step/src/clutils/.libs/libsteputils.so: No such file or directory
    g++: ../../../src/other/step/src/express/.libs/libexpress.so: No such file or directory
    *** Error code 1
    make: Fatal error: Command failed for target 'step-g'
    Current working directory /www/home/jdp/src/brlcad/src/conv/step
    `

     
  • Sean Morrison
    Sean Morrison
    2009-11-03

    John,

    Thanks for the build progress reporting.  Looks like the HAVE_IEEEFP_H check was inadvertently removed, which is what caused that build fault.  I just added it back to configure.

    As for the libtool problem, you may be right.  Those g++'s getting appended to the end certainly don't look right.  The versions of the GNU tools you're using do seem fine, though, and are regularly tested.  Did you run "sh autogen.sh" before running configure?

    Cheers!
    Sean

     
  • John Pritchard
    John Pritchard
    2009-11-03

    sean,
    yes, of course

    many thanks
    cheers

     
  • Sean Morrison
    Sean Morrison
    2009-11-03

    It may help to specify the -enable-verbose configure option in order to see what the compile line looks like.  It's not clear whether the problem is actually libtool or automake (or maybe even autoconf, but unlikely).  If you could post a bug report and attach your Makefile and Makefile.in files from src/other/step and src/other/step/src/express that might help pinpoint the issue.

    The idea is to see where exactly the g++ is getting injected, whether it's in the Makefile or if it's coming from the libtool script from the top-level.

    Cheers!
    Sean

    p.s. new bug can be reported here:  https://sourceforge.net/tracker/?func=add&group_id=105292&atid=640802

     
  • John Pritchard
    John Pritchard
    2009-11-03

    hm.. doing a clean checkout / rebuild..
    after svn up, saw

    (brlcad) $ ./autogen.sh
    Preparing the BRL-CAD build system…please wait

    Found GNU Autoconf version 2.61
    Found GNU Automake version 1.10
    Found GNU Libtool version 1.5.22

    Automatically preparing build … Warning: autoreconf failed
    Attempting to run the preparation steps individually

    Preparing build … ERROR: aclocal failed

     
  • John Pritchard
    John Pritchard
    2009-11-03

    oh.. cleanly, too

    (brlcad) $ ./autogen.sh
    Preparing the BRL-CAD build system…please wait

    Found GNU Autoconf version 2.61
    Found GNU Automake version 1.10
    Found GNU Libtool version 1.5.22

    Automatically preparing build … Warning: autoreconf failed
    Attempting to run the preparation steps individually

    Preparing build … ERROR: aclocal failed

    i'm fairly lost

     
  • Sean Morrison
    Sean Morrison
    2009-11-03

    Try this:

        sh autogen.sh -v

    Verbose will report most steps and outputs.