[cgma-dev] r4616 - in cgm/trunk: . m4

Jason Kraftcheck kraftche at cae.wisc.edu
Mon Mar 21 12:11:31 CDT 2011


On 03/21/2011 12:04 PM, Iulian Grindeanu wrote:
> I got some config errors, in CGM with occ;
> Is anybody else getting those? 
> The file Standard_Version.hxx seems to be in the right place. 
> 


I do not see these errors.  And the inability to find standard headers like
'fstream' and 'limits.'h is a) indicative of something being quite wrong and
b) most likely the reason that Standard_Version.hxx appears unusable.

Have you tried regenerating the autotools stuff (autoreconf -fi)?.  Is the
detected C++ compiler what you expect it to be?

- jason


> Iulian
> 
> checking for fstream... no
> checking fstream.h usability... no
> checking fstream.h presence... no
> checking for fstream.h... no
> checking limits.h usability... no
> checking limits.h presence... yes
> configure: WARNING: limits.h: present but cannot be compiled
> configure: WARNING: limits.h:     check for missing prerequisite headers?
> configure: WARNING: limits.h: see the Autoconf documentation
> configure: WARNING: limits.h:     section "Present But Cannot Be Compiled"
> configure: WARNING: limits.h: proceeding with the compiler's result
> checking for limits.h... no
> checking Standard_Version.hxx usability... no
> checking Standard_Version.hxx presence... yes
> configure: WARNING: Standard_Version.hxx: present but cannot be compiled
> configure: WARNING: Standard_Version.hxx:     check for missing prerequisite headers?
> configure: WARNING: Standard_Version.hxx: see the Autoconf documentation
> configure: WARNING: Standard_Version.hxx:     section "Present But Cannot Be Compiled"
> configure: WARNING: Standard_Version.hxx: proceeding with the compiler's result
> checking for Standard_Version.hxx... no
> configure: error: OpenCascade config error:Standard_Version.hxx not found
> 
> 
> 
> ----- Original Message -----
>> Author: kraftche
>> Date: 2011-03-21 11:50:35 -0500 (Mon, 21 Mar 2011)
>> New Revision: 4616
>>
>> Modified:
>> cgm/trunk/configure.ac
>> cgm/trunk/m4/compiler.m4
>> Log:
>> o Sync m4/compiler.m4 with MOAB version
>> o Add --disable-fortran flag to force iGeom.h w/out Fortran name
>> mangling
>>
>>
>> Modified: cgm/trunk/configure.ac
>> ===================================================================
>> --- cgm/trunk/configure.ac 2011-03-20 09:18:34 UTC (rev 4615)
>> +++ cgm/trunk/configure.ac 2011-03-21 16:50:35 UTC (rev 4616)
>> @@ -10,8 +10,12 @@
>> [AM_INIT_AUTOMAKE([foreign -Wall])])
>> AC_DISABLE_SHARED
>>
>> +AC_ARG_ENABLE([fortran],[AC_HELP_STRING([--disable-fortran],
>> + [No Fortran name mangling in ITAPS C headers])],
>> + [ENABLE_FORTRAN=$enableval],[ENABLE_FORTRAN=yes])
>> +
>> EXTRA_GNU_FLAGS="-Wall -pipe -pedantic"
>> -FATHOM_CHECK_COMPILERS
>> +FATHOM_CHECK_COMPILERS([yes],[yes],[$ENABLE_FORTRAN])
>> AC_PROG_LIBTOOL
>> LIBS="-lm"
>> AC_PROG_SED
>> @@ -21,14 +25,14 @@
>> ################################################################################
>> # Fortran Stuff for ITAPS C bindings
>> ################################################################################
>> -if test "x" != "x$FC"; then
>> +if test "xyes" = "x$ENABLE_FORTRAN" && test "x" != "x$FC"; then
>> AC_FC_WRAPPERS
>> fi
>>
>> ################################################################################
>> # Create libtool script
>> ################################################################################
>> -# We need the libtool script both for the calls to the
>> ITAPS_LIBTOOL_VAR
>> +# We need the libtool script both for the calls to the
>> FATHOM_LIBTOOL_VAR
>> # macro and for us in testing for ACIS libraries. If we're using a
>> newer
>> # version of libtool, the script normally isn't generated until
>> AC_OUTPUT
>> # at the end of the configure script. Ask that it be created now
>> instead.
>> @@ -38,8 +42,8 @@
>> ################################################################################
>> # Extract libtool config
>> ################################################################################
>> -ITAPS_LIBTOOL_VAR( [CXX], [compiler_lib_search_path],
>> [CGM_CXX_LINKFLAGS])
>> -ITAPS_LIBTOOL_VAR( [CXX], [postdeps], [CGM_CXX_LIBS])
>> +FATHOM_LIBTOOL_VAR( [CXX], [compiler_lib_search_path],
>> [CGM_CXX_LINKFLAGS])
>> +FATHOM_LIBTOOL_VAR( [CXX], [postdeps], [CGM_CXX_LIBS])
>> AC_SUBST(CGM_CXX_LINKFLAGS)
>> AC_SUBST(CGM_CXX_LIBS)
>>
>>
>> Modified: cgm/trunk/m4/compiler.m4
>> ===================================================================
>> --- cgm/trunk/m4/compiler.m4 2011-03-20 09:18:34 UTC (rev 4615)
>> +++ cgm/trunk/m4/compiler.m4 2011-03-21 16:50:35 UTC (rev 4616)


-- 
"A foolish consistency is the hobgoblin of little minds" - Ralph Waldo Emerson



More information about the cgma-dev mailing list