Cannot build HPLIP on RHEL7.5

Asked by Eric Masshardt

Red Hat Enterprise Linux Workstation release 7.5 (Maipo)
gcc-c++-4.8.5-28.el7_5.1.x86_64

Using hplip-3.18.6.run file, it runs until the "BUILD AND INSTALL" step and then fails:

BUILD AND INSTALL
-----------------
Running './configure --with-hpppddir=/usr/share/cups/model/HP --libdir=/usr/lib64 --prefix=/usr --enable-qt4 --disable-qt5 --enable-doc-build --enable-cups-ppd-install --disable-foomatic-drv-install --enable-libusb01_build --disable-foomatic-ppd-install --disable-hpijs-install --disable-class-driver --disable-udev_sysfs_rules --disable-policykit --disable-cups-drv-install --enable-hpcups-install --enable-network-build --enable-dbus-build --enable-scan-build --enable-fax-build'
Please wait, this may take several minutes... error: Configure failed with error: General/unknown error
error: output = checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking whether the C++ compiler works... no
configure: error: in `/tmp/hplip/hplip-3.18.6':
configure: error: C++ compiler cannot create executables
See `config.log' for more details

Some additional details from config.log:

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

configure:2663: checking for a BSD-compatible install
configure:2731: result: /bin/install -c
configure:2742: checking whether build environment is sane
configure:2792: result: yes
configure:2933: checking for a thread-safe mkdir -p
configure:2972: result: /bin/mkdir -p
configure:2985: checking for gawk
configure:3001: found /bin/gawk
configure:3012: result: gawk
configure:3023: checking whether make sets $(MAKE)
configure:3045: result: yes
configure:3216: checking for g++
configure:3232: found /bin/g++
configure:3243: result: g++
configure:3270: checking for C++ compiler version
configure:3279: g++ --version >&5
g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)
Copyright (C) 2015 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:3290: $? = 0
configure:3279: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-b
ugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --
enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enab
le-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,ob
jc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl
=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/b
uild/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --w
ith-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC)
configure:3290: $? = 0
configure:3279: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:3290: $? = 4
configure:3279: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'
g++: fatal error: no input files
compilation terminated.
configure:3290: $? = 4
configure:3310: checking whether the C++ compiler works
configure:3332: g++ conftest.cpp >&5
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/libstdc++.so: error adding symbols: File format not recognized
collect2: error: ld returned 1 exit status
configure:3336: $? = 1
configure:3374: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "HP Linux Imaging and Printing"
| #define PACKAGE_TARNAME "hplip"
| #define PACKAGE_VERSION "3.18.6"
| #define PACKAGE_STRING "HP Linux Imaging and Printing 3.18.6"
| #define PACKAGE_BUGREPORT "3.18.6"
| #define PACKAGE_URL ""
| #define PACKAGE "hplip"
| #define VERSION "3.18.6"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3379: error: in `/tmp/hplip/hplip-3.18.6':
configure:3381: error: C++ compiler cannot create executables
See `config.log' for more details

Question information

Language:
English Edit question
Status:
Answered
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
srinivas (srinivas5) said :
#1

Hi,
We need to use the .rpm file for installing the hplip driver in RHEL and not the hplip-3.18.6.run file.
Can you download the latest .rpm file from the below portal and try installing the driver? RHEL install instructions can be found from the hplip portal.

https://developers.hp.com/hp-linux-imaging-and-printing/gethplip

Select the appropriate RHEL version from the drop down list to download the .rpm file.

Thanks
Srinivas

Can you help with this problem?

Provide an answer of your own, or ask Eric Masshardt for more information if necessary.

To post a message you must log in.