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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-13-2008, 07:53 AM
|
#1
|
Member
Registered: Sep 2004
Location: Brazil
Distribution: Slackware
Posts: 45
Rep:
|
Error compiling amsn
Hi,
I've download amsn-0.97.2 fonts and the corresponding Slackbuild package but it returns an error when it try to configure:
Quote:
...
amsn-0.97.2/FAQ
amsn-0.97.2/socks.tcl
amsn-0.97.2/langlist
amsn-0.97.2/progressbar.tcl
amsn-0.97.2/abook.tcl
amsn-0.97.2/remote.tcl
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking tcl build dir... using tcl library in /usr/lib
checking tk build dir... using tk library in /usr/lib
checking for main in -lstdc++... yes
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
|
Looking at config.log:
Quote:
# grep cpp config.log
configure:3153: g++ -c conftest.cpp >&5
configure:3216: g++ -c -g conftest.cpp >&5
configure:3780: gcc -E -traditional-cpp conftest.c
configure:3780: gcc -E -traditional-cpp conftest.c
configure:3780: /lib/cpp conftest.c
configure:3780: /lib/cpp conftest.c
configure:3858: result: /lib/cpp
configure:3887: /lib/cpp conftest.c
configure:3887: /lib/cpp conftest.c
configure:3957: error: C preprocessor "/lib/cpp" fails sanity check
ac_cv_lib_stdcpp_main=yes
ac_cv_prog_CPP=/lib/cpp
CPP='/lib/cpp'
|
I reinstalled gcc and gcc-g++ packages but the problem persists
How I correct it??
I'm using Slackware 12.2
|
|
|
12-13-2008, 09:14 AM
|
#2
|
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
|
Don't just grep config.log for cpp. You need to find the test program that failed in config.log. You should be able to figure out why the test program failed; something is usually missing. Usually, it is missing glibc headers that gives this error...but check config.log for the exact reason for failure.
|
|
|
12-13-2008, 09:36 AM
|
#3
|
Member
Registered: Sep 2004
Location: Brazil
Distribution: Slackware
Posts: 45
Original Poster
Rep:
|
Ok, I'm posting the entire config.log:
Quote:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.62. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = brevleq
uname -m = i686
uname -r = 2.6.24.5-smp
uname -s = Linux
uname -v = #2 SMP Wed Apr 30 13:41:38 CDT 2008
/usr/bin/uname -p = AMD Turion(tm) 64 X2 Mobile Technology TL-50
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/games
PATH: /usr/lib/java/bin
PATH: /usr/lib/java/jre/bin
PATH: /usr/lib/qt/bin
PATH: .
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1922: checking for wish
configure:1940: found /usr/bin/wish
configure:1952: result: /usr/bin/wish
configure:2080: checking for gcc
configure:2096: found /usr/bin/gcc
configure:2107: result: gcc
configure:2345: checking for C compiler version
configure:2353: gcc --version >&5
gcc (GCC) 4.2.4
Copyright (C) 2007 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:2357: $? = 0
configure:2364: gcc -v >&5
Reading specs from /usr/lib/gcc/i486-slackware-linux/4.2.4/specs
Target: i486-slackware-linux
Configured with: ../gcc-4.2.4/configure --prefix=/usr --enable-shared --enable-languages=ada,c,c++,fortran,java,objc --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --with-arch=i486 --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 4.2.4
configure:2368: $? = 0
configure:2375: gcc -V >&5
gcc: '-V' option must have argument
configure:2379: $? = 1
configure:2402: checking for C compiler default output file name
configure:2424: gcc conftest.c >&5
configure:2428: $? = 0
configure:2466: result: a.out
configure:2483: checking whether the C compiler works
configure:2493: ./a.out
configure:2497: $? = 0
configure:2514: result: yes
configure:2521: checking whether we are cross compiling
configure:2523: result: no
configure:2526: checking for suffix of executables
configure:2533: gcc -o conftest conftest.c >&5
configure:2537: $? = 0
configure:2561: result:
configure:2567: checking for suffix of object files
configure:2593: gcc -c conftest.c >&5
configure:2597: $? = 0
configure:2620: result: o
configure:2624: checking whether we are using the GNU C compiler
configure:2653: gcc -c conftest.c >&5
configure:2660: $? = 0
configure:2677: result: yes
configure:2686: checking whether gcc accepts -g
configure:2716: gcc -c -g conftest.c >&5
configure:2723: $? = 0
configure:2824: result: yes
configure:2841: checking for gcc option to accept ISO C89
configure:2915: gcc -c -g -O2 conftest.c >&5
configure:2922: $? = 0
configure:2945: result: none needed
configure:3029: checking for g++
configure:3045: found /usr/bin/g++
configure:3056: result: g++
configure:3087: checking for C++ compiler version
configure:3095: g++ --version >&5
g++ (GCC) 4.2.4
Copyright (C) 2007 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:3099: $? = 0
configure:3106: g++ -v >&5
Reading specs from /usr/lib/gcc/i486-slackware-linux/4.2.4/specs
Target: i486-slackware-linux
Configured with: ../gcc-4.2.4/configure --prefix=/usr --enable-shared --enable-languages=ada,c,c++,fortran,java,objc --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --with-arch=i486 --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 4.2.4
configure:3110: $? = 0
configure:3117: g++ -V >&5
g++: '-V' option must have argument
configure:3121: $? = 1
configure:3124: checking whether we are using the GNU C++ compiler
configure:3153: g++ -c conftest.cpp >&5
configure:3160: $? = 0
configure:3177: result: yes
configure:3186: checking whether g++ accepts -g
configure:3216: g++ -c -g conftest.cpp >&5
configure:3223: $? = 0
configure:3324: result: yes
configure:3375: checking tcl build dir
configure:3447: result: using tcl library in /usr/lib
configure:3520: checking tk build dir
configure:3598: result: using tk library in /usr/lib
configure:3659: checking for main in -lstdc++
configure:3688: gcc -o conftest -g -O2 conftest.c -lstdc++ >&5
configure:3695: $? = 0
configure:3716: result: yes
configure:3740: checking how to run the C preprocessor
configure:3780: gcc -E conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:145,
from /usr/lib/gcc/i486-slackware-linux/4.2.4/include/limits.h:122,
from /usr/lib/gcc/i486-slackware-linux/4.2.4/include/syslimits.h:7,
from /usr/lib/gcc/i486-slackware-linux/4.2.4/include/limits.h:11,
from conftest.c:9:
/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or directory
configure:3787: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3780: gcc -E conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:145,
from /usr/lib/gcc/i486-slackware-linux/4.2.4/include/limits.h:122,
from /usr/lib/gcc/i486-slackware-linux/4.2.4/include/syslimits.h:7,
from /usr/lib/gcc/i486-slackware-linux/4.2.4/include/limits.h:11,
from conftest.c:9:
/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or directory
configure:3787: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3780: gcc -E -traditional-cpp conftest.c
In file included from /usr/include/features.h:331,
from /usr/include/assert.h:38,
from conftest.c:12:
/usr/include/sys/cdefs.h:32: error: #error "You need a ISO C conforming compiler to use the glibc headers"
configure:3787: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3780: gcc -E -traditional-cpp conftest.c
In file included from /usr/include/features.h:331,
from /usr/include/assert.h:38,
from conftest.c:12:
/usr/include/sys/cdefs.h:32: error: #error "You need a ISO C conforming compiler to use the glibc headers"
configure:3787: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3780: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:145,
from /usr/lib/gcc/i486-slackware-linux/4.2.4/include/limits.h:122,
from /usr/lib/gcc/i486-slackware-linux/4.2.4/include/syslimits.h:7,
from /usr/lib/gcc/i486-slackware-linux/4.2.4/include/limits.h:11,
from conftest.c:9:
/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or directory
configure:3787: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3780: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:145,
from /usr/lib/gcc/i486-slackware-linux/4.2.4/include/limits.h:122,
from /usr/lib/gcc/i486-slackware-linux/4.2.4/include/syslimits.h:7,
from /usr/lib/gcc/i486-slackware-linux/4.2.4/include/limits.h:11,
from conftest.c:9:
/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or directory
configure:3787: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3858: result: /lib/cpp
configure:3887: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:145,
from /usr/lib/gcc/i486-slackware-linux/4.2.4/include/limits.h:122,
from /usr/lib/gcc/i486-slackware-linux/4.2.4/include/syslimits.h:7,
from /usr/lib/gcc/i486-slackware-linux/4.2.4/include/limits.h:11,
from conftest.c:9:
/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or directory
configure:3894: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3887: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:153,
from /usr/include/limits.h:145,
from /usr/lib/gcc/i486-slackware-linux/4.2.4/include/limits.h:122,
from /usr/lib/gcc/i486-slackware-linux/4.2.4/include/syslimits.h:7,
from /usr/lib/gcc/i486-slackware-linux/4.2.4/include/limits.h:11,
from conftest.c:9:
/usr/include/bits/local_lim.h:36:26: error: linux/limits.h: No such file or directory
configure:3894: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3957: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
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_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_XMKMF_set=
ac_cv_env_XMKMF_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_lib_stdcpp_main=yes
ac_cv_objext=o
ac_cv_path_ac_prefix_program=/usr/bin/wish
ac_cv_prog_CPP=/lib/cpp
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
APPNAME='amsn'
APPRELEASE='1'
APPSTABLE='yes'
APPVERSION='0.97.2'
BUILD_DIR='/home/hudson/downloads/amsn/slackbuild/amsn/amsn-0.97.2'
CC='gcc'
CFLAGS='-g -O2'
CONFIGURE_ARGS=''
CPP='/lib/cpp'
CPPFLAGS=''
CXX='g++'
CXXFLAGS='-g -O2'
CXX_LIB='-lstdc++'
DEBUG='no'
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FOUND_OS='linux'
FOUND_X11='no'
GREP=''
LDFLAGS=''
LDLIBS=''
LIBDIR='/home/hudson/downloads/amsn/slackbuild/amsn/amsn-0.97.2'
LIBOBJS=''
LIBPTHREAD=''
LIBS=''
LTLIBOBJS=''
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
SHELL='/bin/sh'
STATIC='no'
TCLSH='/usr/bin/tclsh'
TCL_INC_SPEC='-I/usr/include'
TCL_LIB_DIR='/usr/lib'
TCL_STUB_LIB_SPEC='-L/usr/lib -ltclstub8.5'
TCL_VERSION='8.5'
TK_INC_SPEC='-I/usr/include'
TK_LIB=''
TK_LIBS='-lX11 -lXss -lXext -lXft -lX11 -lfreetype -lz -lfontconfig -lXrender -lX11 -ldl -lieee -lm'
TK_LIB_DIR='/usr/lib'
TK_STUB_LIB_SPEC='-L/usr/lib -ltkstub8.5'
TK_VERSION='8.5'
TOP_DIR='/home/hudson/downloads/amsn/slackbuild/amsn/amsn-0.97.2'
USE_MMX=''
XMKMF=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
ac_ct_CC='gcc'
ac_ct_CXX='g++'
ac_prefix_program='/usr/bin/wish'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
configure: exit 1
|
|
|
|
12-13-2008, 10:04 AM
|
#4
|
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
|
error: linux/limits.h: No such file or directory
That file is a Linux kernel header file.
|
|
|
12-13-2008, 02:28 PM
|
#5
|
Member
Registered: Sep 2004
Location: Brazil
Distribution: Slackware
Posts: 45
Original Poster
Rep:
|
Thanks!!
I've reinstalled kernel-headers package and its working fine right now!
|
|
|
All times are GMT -5. The time now is 07:20 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|