Linux - SoftwareThis 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.
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.
I hope my issue isn't one that's been answered directly before... I've spent several hours searching both the forums and googling the internet. It seems the error is a fairly common one, although after trying several potential fixes, I have yet to hit upon a solution.
I'm attempting to install hplip for my HP Photosmart printer. According to information at hpinkjet.sourceforge.net, this should be the right driver package. I've downloaded and extracted the necessary files, and am attempting to run configure using the command ./configure --prefix=/usr . I encountered some earlier errors concerning presence of a c compiler, and overcame those by installing gcc and gcc-c++ packages. Now my error is this:
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
configure: error: /bin/sh './configure' failed for prnt
(I did not post the entire output string in the interest of space).
I've waded through the config.log file generated, but there doesn't appear to be anything meaningful there. I have installed several packages in an attempt to fix the problem, including the gcc and gcc-c++ compilers, m4, libtools, binutils, make, automake, autoconf, and bin86. Is there one I'm missing?
Disk space on my box is a bit of a concern, otherwise I'd just install every development package I could find, but rather than attempt the shotgun approach, I thought I'd post my question here.
Running slackware 10.0 on a PII-400, 3Gb HDD, networked.
just compile your own custom kernel .........that sanity check just
means that the version of Gcc you have installed does not match the Gcc version used to compile the currently running kernel..........
so just compile a new kernel so the Gcc versions match
@320mb: So what you're saying is I need a compiler to recompile so my compiler works? I'm a bit green with linux in general... is there a reasonable resource you could point me to?
@__J: Here's the full output of the ./configure execution, with the config.log following that. Thanks for the interest in my problem.
Full text output from ./configure --prefix=/usr
root@gandalf:/usr/hplip-0.8.8# ./configure --prefix=/usr
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
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 ANSI C... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking for /usr/i486-slackware-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
Full text of config.log
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.59. Invocation command line was
configure:1538: checking for a BSD-compatible install
configure:1593: result: /usr/bin/ginstall -c
configure:1604: checking whether build environment is sane
configure:1647: result: yes
configure:1712: checking for gawk
configure:1728: found /usr/bin/gawk
configure:1738: result: gawk
configure:1748: checking whether make sets $(MAKE)
configure:1768: result: yes
configure:2015: checking build system type
configure:2033: result: i686-pc-linux-gnu
configure:2041: checking host system type
configure:2055: result: i686-pc-linux-gnu
configure:2075: checking for style of include used by make
configure:2103: result: GNU
configure:2174: checking for gcc
configure:2190: found /usr/bin/gcc
configure:2200: result: gcc
configure:2444: checking for C compiler version
configure:2447: gcc --version </dev/null >&5
gcc (GCC) 3.3.4
Copyright (C) 2003 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:2450: $? = 0
configure:2452: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/specs
Configured with: ../gcc-3.3.4/configure --prefix=/usr --enable-shared --enable-threads=posix -
-enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux
--host=i486-slackware-linux
Thread model: posix
gcc version 3.3.4
configure:2455: $? = 0
configure:2457: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2460: $? = 1
configure:2483: checking for C compiler default output file name
configure:2486: gcc conftest.c >&5
configure:2489: $? = 0
configure:2535: result: a.out
configure:2540: checking whether the C compiler works
configure:2546: ./a.out
configure:2549: $? = 0
configure:2566: result: yes
configure:2573: checking whether we are cross compiling
configure:2575: result: no
configure:2578: checking for suffix of executables
configure:2580: gcc -o conftest conftest.c >&5
configure:2583: $? = 0
configure:2608: result:
configure:2614: checking for suffix of object files
configure:2635: gcc -c conftest.c >&5
configure:2638: $? = 0
configure:2660: result: o
configure:2664: checking whether we are using the GNU C compiler
configure:2688: gcc -c conftest.c >&5
configure:2694: $? = 0
configure:2698: test -z
|| test ! -s conftest.err
configure:2701: $? = 0
configure:2704: test -s conftest.o
configure:2707: $? = 0
configure:2720: result: yes
configure:2726: checking whether gcc accepts -g
configure:2747: gcc -c -g conftest.c >&5
configure:2753: $? = 0
configure:2757: test -z
|| test ! -s conftest.err
configure:2760: $? = 0
configure:2763: test -s conftest.o
configure:2766: $? = 0
configure:2777: result: yes
configure:2794: checking for gcc option to accept ANSI C
configure:2864: gcc -c -g -O2 conftest.c >&5
configure:2870: $? = 0
configure:2874: test -z
|| test ! -s conftest.err
configure:2877: $? = 0
configure:2880: test -s conftest.o
configure:2883: $? = 0
configure:2901: result: none needed
configure:2919: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: parse error before "me"
configure:2925: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:3060: checking dependency style of gcc
configure:3150: result: gcc3
configure:3167: checking for a sed that does not truncate output
configure:3221: result: /usr/bin/sed
configure:3224: checking for egrep
configure:3234: result: grep -E
configure:3250: checking for ld used by gcc
configure:3317: result: /usr/i486-slackware-linux/bin/ld
configure:3326: checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld
configure:3341: result: yes
configure:3346: checking for /usr/i486-slackware-linux/bin/ld option to reload object files
configure:3353: result: -r
configure:3362: checking for BSD-compatible nm
configure:3404: result: /usr/bin/nm -B
configure:3408: checking whether ln -s works
configure:3412: result: yes
configure:3419: checking how to recognise dependent libraries
configure:3602: result: pass_all
configure:3816: checking how to run the C preprocessor
configure:3851: gcc -E conftest.c
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:122,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:11,
from conftest.c:12:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3857: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "hplip"
| #define VERSION "0.8.8"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3851: gcc -E conftest.c
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:122,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:11,
from conftest.c:12:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3857: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "hplip"
| #define VERSION "0.8.8"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3851: gcc -E -traditional-cpp conftest.c
In file included from /usr/include/features.h:291,
from /usr/include/assert.h:36,
from conftest.c:14:
/usr/include/sys/cdefs.h:31: #error "You need a ISO C conforming compiler to use the glibc hea
ders"
configure:3857: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "hplip"
| #define VERSION "0.8.8"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3851: gcc -E -traditional-cpp conftest.c
In file included from /usr/include/features.h:291,
from /usr/include/assert.h:36,
from conftest.c:14:
/usr/include/sys/cdefs.h:31: #error "You need a ISO C conforming compiler to use the glibc hea
ders"
configure:3857: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "hplip"
| #define VERSION "0.8.8"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3851: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:122,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:11,
from conftest.c:12:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3857: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "hplip"
| #define VERSION "0.8.8"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3851: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:122,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:11,
from conftest.c:12:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3857: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "hplip"
| #define VERSION "0.8.8"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3934: result: /lib/cpp
configure:3958: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:122,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:11,
from conftest.c:12:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3964: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "hplip"
| #define VERSION "0.8.8"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3958: /lib/cpp conftest.c
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:122,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:11,
from conftest.c:12:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
configure:3964: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "hplip"
| #define VERSION "0.8.8"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:4033: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
If you are new to linux, do yourself a favor and get debian linux before you try slackware. All you have to do is download the first testing CD (sarge CD 1) and that will install enough stuff to get ftp working and the os(debian) will automatically download the rest and install it for you. Just don't use the 2.6 kernel in sarge or reiserfs, use 2.4 kernel and ext3. Or better yet, at the boot prompt, just hit enter and follow the directions. Slackware is not a newb distro, which is what you need for like the first year.
Thanks... took a while to get back to the problem, but installing kernel-headers took care of the problem and creates a good makefile. Now I just need to get snmp installed on the box so I can compile with network support.
hey dudex.. i had the same problem and searched a few days for an answer.. kernel-headers was what i needed. i see the the thread is a lil' old.. but i just signed up to thank you
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.