LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-25-2009, 07:31 AM   #1
rajim
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Rep: Reputation: 1
/lib/cpp" fails sanity check


Hi all,

I am using Redhat linux 4.2. i am trying to install lesstif-0.95.0. While running
./configure i got the error as below
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

My config.log file is

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by lesstif configure 0.95.0, which was
generated by GNU Autoconf 2.59. Invocation command line was

$ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = localhost.localdomain
uname -m = i686
uname -r = 2.6.9-42.ELsmp
uname -s = Linux
uname -v = #1 SMP Wed Jul 12 23:27:17 EDT 2006

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/kerberos/sbin
PATH: /usr/kerberos/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /root/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1580: checking for a BSD-compatible install
configure:1635: result: /usr/bin/install -c
configure:1646: checking whether build environment is sane
configure:1689: result: yes
configure:1754: checking for gawk
configure:1770: found /bin/gawk
configure:1780: result: gawk
configure:1790: checking whether make sets $(MAKE)
configure:1810: result: yes
configure:2029: checking build system type
configure:2047: result: i686-pc-linux-gnulibc1
configure:2055: checking host system type
configure:2069: result: i686-pc-linux-gnulibc1
configure:2078: checking whether to enable maintainer-specific portions of Makefiles
configure:2087: result: no
configure:2151: checking where to store autoconf macro files
configure:2164: result: /usr/share/aclocal
configure:2172: result: Building a Motif 2.1-compatible version
configure:2214: checking whether to support EditRes
configure:2227: result: yes
configure:2383: checking for gcc
configure:2399: found /usr/bin/gcc
configure:2409: result: gcc
configure:2653: checking for C compiler version
configure:2656: gcc --version </dev/null >&5
gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-3)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2659: $? = 0
configure:2661: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)
configure:2664: $? = 0
configure:2666: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2669: $? = 1
configure:2692: checking for C compiler default output file name
configure:2695: gcc conftest.c >&5
configure:2698: $? = 0
configure:2744: result: a.out
configure:2749: checking whether the C compiler works
configure:2755: ./a.out
configure:2758: $? = 0
configure:2775: result: yes
configure:2782: checking whether we are cross compiling
configure:2784: result: no
configure:2787: checking for suffix of executables
configure:2789: gcc -o conftest conftest.c >&5
configure:2792: $? = 0
configure:2817: result:
configure:2823: checking for suffix of object files
configure:2844: gcc -c conftest.c >&5
configure:2847: $? = 0
configure:2869: result: o
configure:2873: checking whether we are using the GNU C compiler
configure:2897: gcc -c conftest.c >&5
configure:2903: $? = 0
configure:2907: test -z
|| test ! -s conftest.err
configure:2910: $? = 0
configure:2913: test -s conftest.o
configure:2916: $? = 0
configure:2929: result: yes
configure:2935: checking whether gcc accepts -g
configure:2956: gcc -c -g conftest.c >&5
configure:2962: $? = 0
configure:2966: test -z
|| test ! -s conftest.err
configure:2969: $? = 0
configure:2972: test -s conftest.o
configure:2975: $? = 0
configure:2986: result: yes
configure:3003: checking for gcc option to accept ANSI C
configure:3073: gcc -c -g -O2 conftest.c >&5
conftest.c:21:19: stdio.h: No such file or directory
conftest.c:22:23: sys/types.h: No such file or directory
conftest.c:23:22: sys/stat.h: No such file or directory
conftest.c:26: error: syntax error before '*' token
conftest.c:26: warning: "struct stat" declared inside parameter list
conftest.c:26: warning: its scope is only this definition or declaration, which is probably not what you want
conftest.c:26: warning: data definition has no type or storage class
conftest.c:55: error: syntax error before "FILE"
conftest.c:55: warning: "struct stat" declared inside parameter list
conftest.c:55: error: `pairnames' declared as function returning a function
conftest.c:55: error: syntax error before "int"
configure:3079: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "lesstif"
| #define PACKAGE_TARNAME "lesstif"
| #define PACKAGE_VERSION "0.95.0"
| #define PACKAGE_STRING "lesstif 0.95.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "lesstif"
| #define VERSION "0.95.0"
| #define MAJOR_VERSION 0
| #define MINOR_VERSION 95
| #define PICO_VERSION 0
| #define LAST_MAJOR_VERSION 0
| #define LAST_MINOR_VERSION 94
| #define LAST_PICO_VERSION 4
| #define LESSTIF_EDITRES 1
| #define NONSTANDARD_CONVERTERS 1
| #define LESSTIF_VERBOSE 1
| /* end confdefs.h. */
| #include <stdarg.h>
| #include <stdio.h>
| #include <sys/types.h>
| #include <sys/stat.h>
| /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
| struct buf { int x; };
| FILE * (*rcsopen) (struct buf *, struct stat *, int);
| static char *e (p, i)
| char **p;
| int i;
| {
| return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, ...)
| {
| char *s;
| va_list v;
| va_start (v,p);
| s = g (p, va_arg (v,int));
| va_end (v);
| return s;
| }
|
| /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
| function prototypes and stuff, but not '\xHH' hex character constants.
| These don't provoke an error unfortunately, instead are silently treated
| as 'x'. The following induces an error, until -std1 is added to get
| proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
| array size at least. It's necessary to write '\x00'==0 to get something
| that's true only with -std1. */
| int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
| int test (int i, double x);
| struct s1 {int (*f) (int a);};
| struct s2 {int (*f) (double a);};
| int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
| int argc;
| char **argv;
| int
| main ()
| {
| return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
| ;
| return 0;
| }
configure:3073: gcc -qlanglvl=ansi -c -g -O2 conftest.c >&5
gcc: unrecognized option `-qlanglvl=ansi'
conftest.c:21:19: stdio.h: No such file or directory
conftest.c:22:23: sys/types.h: No such file or directory
conftest.c:23:22: sys/stat.h: No such file or directory
conftest.c:26: error: syntax error before '*' token
conftest.c:26: warning: "struct stat" declared inside parameter list
conftest.c:26: warning: its scope is only this definition or declaration, which is probably not what you want
conftest.c:26: warning: data definition has no type or storage class
conftest.c:55: error: syntax error before "FILE"
conftest.c:55: warning: "struct stat" declared inside parameter list
conftest.c:55: error: `pairnames' declared as function returning a function
conftest.c:55: error: syntax error before "int"
configure:3079: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
|| #define PACKAGE_NAME "lesstif"
| #define PACKAGE_TARNAME "lesstif"
| #define PACKAGE_VERSION "0.95.0"
| #define PACKAGE_STRING "lesstif 0.95.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "lesstif"
| #define VERSION "0.95.0"
| #define MAJOR_VERSION 0
| #define MINOR_VERSION 95
| #define PICO_VERSION 0
| #define LAST_MAJOR_VERSION 0
| #define LAST_MINOR_VERSION 94
| #define LAST_PICO_VERSION 4
| #define LESSTIF_EDITRES 1
| #define NONSTANDARD_CONVERTERS 1
| #define LESSTIF_VERBOSE 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3526: gcc -E conftest.c
In file included from /usr/lib/gcc/i386-redhat-linux/3.4.6/include/syslimits.h:7,
from /usr/lib/gcc/i386-redhat-linux/3.4.6/include/limits.h:11,
from conftest.c:21:
/usr/lib/gcc/i386-redhat-linux/3.4.6/include/limits.h:122:61: limits.h: No such file or directory
configure:3532: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "lesstif"
| #define PACKAGE_TARNAME "lesstif"
| #define PACKAGE_VERSION "0.95.0"
| #define PACKAGE_STRING "lesstif 0.95.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "lesstif"
| #define VERSION "0.95.0"
| #define MAJOR_VERSION 0
| #define MINOR_VERSION 95
| #define PICO_VERSION 0
| #define LAST_MAJOR_VERSION 0
| #define LAST_MINOR_VERSION 94
| #define LAST_PICO_VERSION 4
| #define LESSTIF_EDITRES 1
| #define NONSTANDARD_CONVERTERS 1
| #define LESSTIF_VERBOSE 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3526: gcc -E -traditional-cpp conftest.c
conftest.c:23: assert.h: No such file or directory
configure:3532: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "lesstif"
| #define PACKAGE_TARNAME "lesstif"
| #define PACKAGE_VERSION "0.95.0"
| #define PACKAGE_STRING "lesstif 0.95.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "lesstif"
| #define VERSION "0.95.0"
| #define MAJOR_VERSION 0
| #define MINOR_VERSION 95
| #define PICO_VERSION 0
| #define LAST_MAJOR_VERSION 0
| #define LAST_MINOR_VERSION 94
| #define LAST_PICO_VERSION 4
| #define LESSTIF_EDITRES 1
| #define NONSTANDARD_CONVERTERS 1
| #define LESSTIF_VERBOSE 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3526: gcc -E -traditional-cpp conftest.c
conftest.c:23: assert.h: No such file or directory
configure:3532: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "lesstif"
| #define PACKAGE_TARNAME "lesstif"
| #define PACKAGE_VERSION "0.95.0"
| #define PACKAGE_STRING "lesstif 0.95.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "lesstif"
| #define VERSION "0.95.0"
| #define MAJOR_VERSION 0
| #define MINOR_VERSION 95
| #define PICO_VERSION 0
| #define LAST_MAJOR_VERSION 0
| #define LAST_MINOR_VERSION 94
| #define LAST_PICO_VERSION 4
| #define LESSTIF_EDITRES 1
| #define NONSTANDARD_CONVERTERS 1
| #define LESSTIF_VERBOSE 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3526: /lib/cpp conftest.c
In file included from /usr/lib/gcc/i386-redhat-linux/3.4.6/include/syslimits.h:7,
from /usr/lib/gcc/i386-redhat-linux/3.4.6/include/limits.h:11,
from conftest.c:21:
/usr/lib/gcc/i386-redhat-linux/3.4.6/include/limits.h:122:61: limits.h: No such file or directory
configure:3532: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "lesstif"
| #define PACKAGE_TARNAME "lesstif"
| #define PACKAGE_VERSION "0.95.0"
| #define PACKAGE_STRING "lesstif 0.95.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "lesstif"
| #define VERSION "0.95.0"
| #define MAJOR_VERSION 0
| #define MINOR_VERSION 95
| #define PICO_VERSION 0
| #define LAST_MAJOR_VERSION 0
| #define LAST_MINOR_VERSION 94
| #define LAST_PICO_VERSION 4
| #define LESSTIF_EDITRES 1
| #define NONSTANDARD_CONVERTERS 1
| #define LESSTIF_VERBOSE 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3526: /lib/cpp conftest.c
In file included from /usr/lib/gcc/i386-redhat-linux/3.4.6/include/syslimits.h:7,
from /usr/lib/gcc/i386-redhat-linux/3.4.6/include/limits.h:11,
from conftest.c:21:
/usr/lib/gcc/i386-redhat-linux/3.4.6/include/limits.h:122:61: limits.h: No such file or directory
configure:3532: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "lesstif"
| #define PACKAGE_TARNAME "lesstif"
| #define PACKAGE_VERSION "0.95.0"
| #define PACKAGE_STRING "lesstif 0.95.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "lesstif"
| #define VERSION "0.95.0"
| #define MAJOR_VERSION 0
| #define MINOR_VERSION 95
| #define PICO_VERSION 0
| #define LAST_MAJOR_VERSION 0
| #define LAST_MINOR_VERSION 94
| #define LAST_PICO_VERSION 4
| #define LESSTIF_EDITRES 1
| #define NONSTANDARD_CONVERTERS 1
| #define LESSTIF_VERBOSE 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3609: result: /lib/cpp
configure:3633: /lib/cpp conftest.c
In file included from /usr/lib/gcc/i386-redhat-linux/3.4.6/include/syslimits.h:7,
from /usr/lib/gcc/i386-redhat-linux/3.4.6/include/limits.h:11,
from conftest.c:21:
/usr/lib/gcc/i386-redhat-linux/3.4.6/include/limits.h:122:61: limits.h: No such file or directory
configure:3639: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "lesstif"
| #define PACKAGE_TARNAME "lesstif"
| #define PACKAGE_VERSION "0.95.0"
| #define PACKAGE_STRING "lesstif 0.95.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "lesstif"
| #define VERSION "0.95.0"
| #define MAJOR_VERSION 0
| #define MINOR_VERSION 95
| #define PICO_VERSION 0
| #define LAST_MAJOR_VERSION 0
| #define LAST_MINOR_VERSION 94
| #define LAST_PICO_VERSION 4
| #define LESSTIF_EDITRES 1
| #define NONSTANDARD_CONVERTERS 1
| #define LESSTIF_VERBOSE 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3633: /lib/cpp conftest.c
In file included from /usr/lib/gcc/i386-redhat-linux/3.4.6/include/syslimits.h:7,
from /usr/lib/gcc/i386-redhat-linux/3.4.6/include/limits.h:11,
from conftest.c:21:
/usr/lib/gcc/i386-redhat-linux/3.4.6/include/limits.h:122:61: limits.h: No such file or directory
configure:3639: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "lesstif"
| #define PACKAGE_TARNAME "lesstif"
| #define PACKAGE_VERSION "0.95.0"
| #define PACKAGE_STRING "lesstif 0.95.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "lesstif"
| #define VERSION "0.95.0"
| #define MAJOR_VERSION 0
| #define MINOR_VERSION 95
| #define PICO_VERSION 0
| #define LAST_MAJOR_VERSION 0
| #define LAST_MINOR_VERSION 94
| #define LAST_PICO_VERSION 4
| #define LESSTIF_EDITRES 1
| #define NONSTANDARD_CONVERTERS 1
| #define LESSTIF_VERBOSE 1
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3708: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnulibc1
ac_cv_build_alias=i686-pc-linux-gnulibc1
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_host=i686-pc-linux-gnulibc1
ac_cv_host_alias=i686-pc-linux-gnulibc1
ac_cv_objext=o
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP=/lib/cpp
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=no
ac_cv_prog_make_make_set=yes
am_cv_CC_dependencies_compiler_type=none

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /root/Softwares/lesstif-0.95.0/missing --run aclocal-1.9'
ACLOCALDIR='/usr/share/aclocal'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /root/Softwares/lesstif-0.95.0/missing --run tar'
AR=''
AS=''
AUTOCONF='${SHELL} /root/Softwares/lesstif-0.95.0/missing --run autoconf'
AUTOHEADER='${SHELL} /root/Softwares/lesstif-0.95.0/missing --run autoheader'
AUTOMAKE='${SHELL} /root/Softwares/lesstif-0.95.0/missing --run automake-1.9'
AWK='gawk'
Aclocal_FALSE='#'
Aclocal_TRUE=''
Build12='no'
Build20='no'
Build21='yes'
BuildLibDtPrint_FALSE=''
BuildLibDtPrint_TRUE=''
BuildTestDir=''
CC='gcc'
CCDEPMODE='depmode=none'
CFLAGS='-g -O2'
CONFDIR=''
CPP='/lib/cpp'
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
Editres=''
F77=''
FC_DEFAULT_FONTS=''
FFLAGS=''
FONTCONFIG_CFLAGS=''
FONTCONFIG_LIBS=''
FREETYPE_CFLAGS=''
HTML2TEXT=''
Have_Exctags_FALSE=''
Have_Exctags_TRUE=''
Have_Libxp_FALSE=''
Have_Libxp_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LAST_MAJOR_VERSION=''
LAST_MINOR_VERSION=''
LAST_PICO_VERSION=''
LDFLAGS=''
LEX=''
LEXLIB=''
LEX_OUTPUT_ROOT=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIBTOOL_VERSION='0:95:0'
LINKS_CMD=''
LN_S=''
LTLIBOBJS=''
LT_BUILD_MAN2HTML_FALSE=''
LT_BUILD_MAN2HTML_TRUE=''
LT_HAVELIBXP=''
LYNX_CMD=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAJOR_VERSION=''
MAKEINFO='${SHELL} /root/Softwares/lesstif-0.95.0/missing --run makeinfo'
MAN2HTML=''
MINOR_VERSION=''
MOTIF_CFLAGS=''
MOTIF_LIBS=''
OBJDUMP=''
OBJEXT='o'
PACKAGE='lesstif'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='lesstif'
PACKAGE_STRING='lesstif 0.95.0'
PACKAGE_TARNAME='lesstif'
PACKAGE_VERSION='0.95.0'
PATH_SEPARATOR=':'
PICO_VERSION=''
RANLIB=''
RM=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
UseXDND_FALSE=''
UseXDND_TRUE='#'
VERSION='0.95.0'
Version_1_2_FALSE=''
Version_1_2_TRUE='#'
Version_2_0_FALSE=''
Version_2_0_TRUE='#'
Version_2_1_FALSE='#'
Version_2_1_TRUE=''
XIsR6_FALSE=''
XIsR6_TRUE=''
XPLIB=''
XRENDER_CFLAGS=''
XRENDER_LIBS=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_FONT_DIR=''
X_LIBS=''
X_PRE_LIBS=''
YACC=''
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_F77=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
ac_have_ctags=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE='#'
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnulibc1'
build_alias=''
build_cpu='i686'
build_os='linux-gnulibc1'
build_vendor='pc'
confdir=''
cp=''
datadir='${prefix}/share'
exec_prefix='NONE'
extralibs=''
fc_config=''
ft_config=''
host='i686-pc-linux-gnulibc1'
host_alias=''
host_cpu='i686'
host_os='linux-gnulibc1'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/root/Softwares/lesstif-0.95.0/install-sh'
lib_version_suffix='-2.1'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
man2html_cmd=''
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
motif_includes=''
motif_libraries=''
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
subdirs=' test'
sysconfdir='${prefix}/etc'
target_alias=''
version_suffix='-2.1'
x_inc_path=''
x_includes='NONE'
x_lib_path=''
x_libraries='NONE'
xmREVISION='1'
xmVERSION='2'
xmVer='2.1'

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define LAST_MAJOR_VERSION 0
#define LAST_MINOR_VERSION 94
#define LAST_PICO_VERSION 4
#define LESSTIF_EDITRES 1
#define LESSTIF_VERBOSE 1
#define MAJOR_VERSION 0
#define MINOR_VERSION 95
#define NONSTANDARD_CONVERTERS 1
#define PACKAGE "lesstif"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "lesstif"
#define PACKAGE_STRING "lesstif 0.95.0"
#define PACKAGE_TARNAME "lesstif"
#define PACKAGE_VERSION "0.95.0"
#define PICO_VERSION 0
#define VERSION "0.95.0"

configure: exit 1
I have installed gcc, g++
[root@localhost lesstif-0.95.0]# rpm -qa | grep gcc gcc4-c++-4.1.0-18.EL4
libgcc-3.4.6-3
gcc-g77-3.4.6-3
compat-gcc-32-3.2.3-47.3
gcc-c++-3.4.6-3
gcc-objc-3.4.6-3
compat-gcc-32-c++-3.2.3-47.3
gcc-3.4.6-3
gcc-java-3.4.6-3
gcc4-gfortran-4.1.0-18.EL4
gcc-gnat-3.4.6-3
compat-libgcc-296-2.96-132.7.2
gcc4-4.1.0-18.EL4

can anyone help me to resolve the problem
Thanks in advance
 
Old 04-25-2009, 11:30 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.
Quote:
conftest.c:21:19: stdio.h: No such file or directory
conftest.c:22:23: sys/types.h: No such file or directory
conftest.c:23:22: sys/stat.h: No such file or directory
The missing package is 'glic-devel'.
Install it, and things should work.

But why interested in 'Lesstif' ?
The package 'openmotif' for EL4 will do the job,
no need to compile lesstif.
( You might need 'openmotif-devel' too.)
.....

P.S.: Please edit your post # 1 : Use code tags to make it readable :
[ code ] ...text to be included ... [ /code ]
( without the space inside the square brackets.)
.....

Last edited by knudfl; 04-28-2009 at 11:38 AM.
 
Old 04-26-2009, 01:26 AM   #3
rajim
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by knudfl View Post
Welcome to LQ.

The missing package is 'glic-devel'.
Install it, and things should work.

But why interested in 'Lesstif' ?
The package 'openmotif' for EL4 will do the job,
no need to compile lesstif.
( You might need 'openmotif-devel' too.)
.....

P.S.: Please edit your post # 1 : Use code tags to me it readable :
[ code ] ...text to be included ... [/ code ]
( without the space inside the square brackets.)
.....
Thank you for ur suggestion, but
while i search in my machine it says that it was already installed.

[root@localhost SOFTWARES]# rpm -q glibc-devel
glibc-devel-2.3.4-2.25

how do i proceed further
 
Old 04-27-2009, 12:24 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
how do i proceed further
Install the rpm package 'openmotif' from the install DVD.
E.g. openmotif-2.2.3-9.RHEL4.1.i386.rpm , which provides :
Code:
libMrm.so.3@  libMrm.so.3.0.2*  libUil.so.3@  
libUil.so.3.0.2*  libXm.so.3@  libXm.so.3.0.2*
.....

Last edited by knudfl; 04-27-2009 at 08:59 AM.
 
Old 04-28-2009, 10:30 AM   #5
rajim
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by knudfl View Post
Install the rpm package 'openmotif' from the install DVD.
E.g. openmotif-2.2.3-9.RHEL4.1.i386.rpm , which provides :
Code:
libMrm.so.3@  libMrm.so.3.0.2*  libUil.so.3@  
libUil.so.3.0.2*  libXm.so.3@  libXm.so.3.0.2*
.....
I try to install openmotif-2.2.3-9.RHEL4.1.i386.rpm, it shows
warning: openmotif-2.2.3-9.RHEL4.1.src.rpm: V3 DSA signature: NOKEY, key ID db42a60e

Then i try the openMotif-2.2.3.tar.gz, ./configure get worked, in 'make' it displays the error

usr/X11R6/lib/X11/bindings\" -DINCDIR=\"/usr/X11R6/include/X11\" -DLIBDIR=\"/usr/X11R6/lib/X11\" -I/usr/X11R6/include -g -O2 -Wall -Wno-unused -Wno-comment -c XmStrDefs.c -fPIC -DPIC -o .libs/XmStrDefs.lo
In file included from XmStrDefs.c:10:
../Xm/Xm.h:59:34: X11/extensions/Print.h: No such file or directory
In file included from XmStrDefs.c:10:
../Xm/Xm.h:827: error: syntax error before "XPContext"
../Xm/Xm.h:827: warning: no semicolon at end of struct or union
../Xm/Xm.h:830: error: syntax error before '}' token
../Xm/Xm.h:830: warning: type defaults to `int' in declaration of `XmPrintShellCallbackStruct'
../Xm/Xm.h:830: warning: data definition has no type or storage class
make[2]: *** [XmStrDefs.lo] Error 1
make[2]: Leaving directory `/root/SOFTWARES/openMotif-2.2.3/lib/Xm'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/SOFTWARES/openMotif-2.2.3/lib'
make: *** [all-recursive] Error 1

Help me to fix it
 
Old 04-28-2009, 11:43 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
openmotif-2.2.3-9.RHEL4.1.i386.rpm is a package.

openmotif-2.2.3-9.RHEL4.1.src.rpm is the source code for
openmotif.

About openMotif-2.2.3.tar.gz : Not easy to compile,
please use the rpm package.
.....
 
Old 04-29-2009, 10:46 AM   #7
rajim
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by knudfl View Post
openmotif-2.2.3-9.RHEL4.1.i386.rpm is a package.

openmotif-2.2.3-9.RHEL4.1.src.rpm is the source code for
openmotif.

About openMotif-2.2.3.tar.gz : Not easy to compile,
please use the rpm package.
.....
I tried to install the rpm,

Code:
#rpm -ivh openmotif-2.2.3-9.RHEL4.1.i386.rpm
warning: openmotif-2.2.3-9.RHEL4.1.i386.rpm: V3 DSA signature: NOKEY, key ID 0c98ff9d
Preparing...                ########################################### [100%]
        package openmotif-2.2.3-10.RHEL4.5 (which is newer than openmotif-2.2.3-9.RHEL4.1) is already installed
        file /usr/X11R6/bin/mwm from install of openmotif-2.2.3-9.RHEL4.1 conflicts with file from package openmotif-2.2.3-10.RHEL4.5
        file /usr/X11R6/bin/xmbind from install of openmotif-2.2.3-9.RHEL4.1 conflicts with file from package openmotif-2.2.3-10.RHEL4.5
        file /usr/X11R6/lib/libMrm.so.3.0.2 from install of openmotif-2.2.3-9.RHEL4.1 conflicts with file from package openmotif-2.2.3-10.RHEL4.5
        file /usr/X11R6/lib/libUil.so.3.0.2 from install of openmotif-2.2.3-9.RHEL4.1 conflicts with file from package openmotif-2.2.3-10.RHEL4.5
        file /usr/X11R6/lib/libXm.so.3.0.2 from install of openmotif-2.2.3-9.RHEL4.1 conflicts with file from package openmotif-2.2.3-10.RHEL4.5


#rpm -qd openmotif-2.2.3-10.RHEL4.5
/usr/X11R6/man/man1/mwm.1.gz
/usr/X11R6/man/man1/xmbind.1.gz
/usr/X11R6/man/man4/mwmrc.4.gz
/usr/share/doc/openmotif-2.2.3/COPYRIGHT.MOTIF
/usr/share/doc/openmotif-2.2.3/README
/usr/share/doc/openmotif-2.2.3/RELEASE
/usr/share/doc/openmotif-2.2.3/RELNOTES
What it means? Is openmotif-2.2.3 is already installed in the machine?
I want to install the software xmakemol which depends on openmotif. But if i compile it
Code:
[root@localhost xmakemol-5.16]# make
gcc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/share/doc/openmotif/include/  -I/usr/X11R6/include     -g -O2 -I/usr/share/doc/openmotif/include/  -I/usr/X11R6/include -DELEMENTS=\"/usr/local/share/xmakemol/elements\" -c animate.c
In file included from /usr/X11R6/include/Xm/FileSB.h:47,
                 from animate.c:45:
/usr/X11R6/include/Xm/Xm.h:59:34: X11/extensions/Print.h: No such file or directory
In file included from /usr/X11R6/include/Xm/FileSB.h:47,
                 from animate.c:45:
/usr/X11R6/include/Xm/Xm.h:827: error: syntax error before "XPContext"
/usr/X11R6/include/Xm/Xm.h:827: warning: no semicolon at end of struct or union
/usr/X11R6/include/Xm/Xm.h:830: error: syntax error before '}' token
/usr/X11R6/include/Xm/Xm.h:830: warning: data definition has no type or storage class
make: *** [animate.o] Error 1
How to proceed further.
 
Old 04-29-2009, 05:03 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
What you need could be the " -devel " version
of the openmotif, already installed.

To know all your packages, do this command :
'rpm -qa | sort > my_packages.txt' : makes a text file
in /home/"user".

'rpm -qa | grep openmotif' : tells only, if you have the
two required packages, openmotif and openmotif-devel.
.....
X11/extensions/Print.h: No such file or directory ... :
Install package 'xorg-x11-deprecated-libs-devel'
.....
 
Old 05-02-2009, 02:33 AM   #9
rajim
LQ Newbie
 
Registered: Apr 2009
Posts: 5

Original Poster
Rep: Reputation: 1
Hai

Thank you so much.

After installing [B]xorg-x11-deprecated-libs-devel[/B, i have got installed openmotiff as well as xmakemol.

Thank u for ur replies.

Last edited by rajim; 05-02-2009 at 03:02 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GCC fails to compile - Chapter 6.14 - C preprocessor "/lib/cpp" fails sanity check jaydoc Linux From Scratch 1 01-28-2009 05:17 PM
error: C++ preprocessor "/lib/cpp" fails sanity check marek345 Linux - Software 4 11-06-2008 09:49 AM
error: C preprocessor "/lib/cpp" fails sanity check Virtuality Debian 13 01-12-2008 04:37 AM
error: C++ preprocessor "/lib/cpp" fails sanity check i.you Linux - Software 3 03-06-2007 02:24 AM
error: C preprocessor "/lib/cpp" fails sanity check Master Fox Linux - Software 0 10-14-2004 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration