Configure errors

| | Comments (0)

Errors found while running "configure" script to build dist for unix systems.

sanity check

The following error occurred while building "db" (Berkley Database):

configure: error: C preprocessor "/lib/cpp" fails sanity check<br />

The first solution for this one was to remove the GCC_ROOT environment variable. But we have place it back because GCC uses it to find it's friends (cc1)

The solution was to set the environment variable C_INCLUDE_PATH to a directory that includes "limits.h" inside the gcc binaries itself.

Since we are using an alternative layout for GCC, we must use three (until now) environment variables to change the compiler location:

  • GCC_ROOT
  • C_INCLUDE_PATH
  • CPLUS_INCLUDE_PATH

Leave a comment