Trying to compile the redshift source program to see if it will work in Peebee's Slacko LxPupSc-17.01.1R. Here is the output I am getting, and I cannot---despiute hours of Googling to find a remedy---get passed this:
"configure: error: C preprocessor /lib/cpp fails sanity check"
Here is the complete terminal output I get from the moment I enter the "./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var" command:
Code: Select all
# ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
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 ISO C89... none needed
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... none needed
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/i586-slackware-linux/bin/ld
checking if the linker (/usr/i586-slackware-linux/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for X11... yes
checking for XF86VM... yes
checking for XCB... yes
checking for XCB_RANDR... yes
checking for a Python interpreter with version >= 2.4... python
checking for python... /usr/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
checking whether to enable RANDR method... yes
checking whether to enable VidMode method... yes
checking whether to enable GTK status icon... yes
checking how to run the C preprocessor... /lib/cpp
configure: error: in `/root/XXcompiling/redshift-1.2-source-for-building':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
#
Anyone have any hints, help, tips or whatever to get pas tthis? Usually this error is because g++ is not installed. Well, in LxPupSc-17.01.1R, the latest g++ (which is gcc-g++-5.40) is already installed. So..?????