Page MenuHome GnuPG

configure: error: C compiler cannot create executables
Closed, InvalidPublic

Description

I am installing version on solaris 10 OS while configuring lib files getting below error, could you please send me details installation process of gnupg on solaris and rhel 6.

[nzl2lb4l:/opt/applications/gpg-install/libgpg-error-1.27]# ./configure
checking for a BSD-compatible install... build-aux/install-sh -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... (cached) yes
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
configure: autobuild project... libgpg-error
configure: autobuild revision... 1.27
configure: autobuild hostname... nzl2lb4l
configure: autobuild timestamp... 20170723-025230
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/opt/applications/gpg-install/libgpg-error-1.27':
configure: error: C compiler cannot create executables
See `config.log' for more details
[opt/applications/gpg-install/libgpg-error-1.27]#

actually I want to install gnupg-2.1.21 on solaris and rhel 6 and 7 versions please help me with installation steps

below is the log file.

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

It was created by libgpg-error configure 1.27, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure --disable-asm
  1. --------- ##
  2. Platform. ##
  3. --------- ##

hostname = nzl2lb4l
uname -m = sun4v
uname -r = 5.10
uname -s = SunOS
uname -v = Generic_150400-40

/usr/bin/uname -p = sparc
/bin/uname -X = System = SunOS
Node = nzl2lb4l
Release = 5.10
KernelID = Generic_150400-40
Machine = sun4v
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 8

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

PATH: /opt/applications/gnupg2/libgpg-error-1.27/bin
PATH: /opt/applications/gnupg2/libgcrypt-1.7.7/bin
PATH: /opt/applications/gnupg2/libksba-1.3.5/bin
PATH: /opt/applications/gnupg2/libgpg-error-1.27/bin
PATH: /opt/applications/gnupg2/libgcrypt-1.7.7/bin
PATH: /opt/applications/gnupg2/libksba-1.3.5/bin
PATH: /opt/emc/SYMCLI/V7.1/bin
PATH: /opt/emc/SYMCLI/V7.1/daemons
PATH: /opt/emc/SYMCLI/V7.1/storbin
PATH: /opt/CTEact/bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sfw/bin
PATH: /usr/local/bin
PATH: /usr/local/sbin
PATH: /usr/ccs/bin
PATH: /usr/openwin/bin
PATH: /usr/dt/bin
PATH: /app/unixsup/bin
PATH: /app/unixsup/unixadm/bin

  1. ----------- ##
  2. Core tests. ##
  3. ----------- ##

configure:2652: checking for a BSD-compatible install
configure:2720: result: build-aux/install-sh -c
configure:2731: checking whether build environment is sane
configure:2786: result: yes
configure:2937: checking for a thread-safe mkdir -p
configure:2976: result: build-aux/install-sh -c -d
configure:2983: checking for gawk
configure:3013: result: no
configure:2983: checking for mawk
configure:3013: result: no
configure:2983: checking for nawk
configure:2999: found /usr/bin/nawk
configure:3010: result: nawk
configure:3021: checking whether make sets $(MAKE)
configure:3043: result: yes
configure:3072: checking whether make supports nested variables
configure:3089: result: yes
configure:3216: checking whether to enable maintainer-specific portions of Makefiles
configure:3225: result: no
configure:3253: checking whether make supports nested variables
configure:3270: result: yes
configure:3288: checking build system type
configure:3302: result: sparc-sun-solaris2.10
configure:3322: checking host system type
configure:3335: result: sparc-sun-solaris2.10
configure:3359: autobuild project... libgpg-error
configure:3361: autobuild revision... 1.27
configure:3365: autobuild hostname... nzl2lb4l
configure:3374: autobuild timestamp... 20170723-041204
configure:3428: checking for gcc
configure:3444: found /usr/sfw/bin/gcc
configure:3455: result: gcc
configure:3684: checking for C compiler version
configure:3693: gcc --version >&5
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Copyright (C) 2004 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:3704: $? = 0
configure:3693: gcc -v >&5
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with: /gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
configure:3704: $? = 0
configure:3693: gcc -V >&5
gcc: `-V' option must have argument
configure:3704: $? = 1
configure:3693: gcc -qversion >&5
gcc: unrecognized option `-qversion'
gcc: no input files
configure:3704: $? = 1
configure:3724: checking whether the C compiler works
configure:3746: gcc conftest.c >&5
/usr/ccs/bin/as: error: unknown option '-'
/usr/ccs/bin/as: error: unknown option 't'
/usr/ccs/bin/as: error: unknown option 'aditional-format'
usage: /usr/ccs/bin/as [-V] [-Q{y,n}] [-q] [-s]

[-S] [-K {pic,PIC}] [-o objfile] [-L] [-T]
[-P [[-Yc,path] [-Ipath] [-Dname] [-Dname=def] [-Uname]]...]
[-m [-Ym,path]] [-n] [-ul] [-xF]
[-m32] [-m64]
[-xarch={v7,v8,v8a,v8plus,v8plusa,v8plusb,v9,v9a,v9b,sparc,sparcvis,sparcvis2,sparcvis3,sparcfmaf,sparcima}]
[-xcode={pic13,pic32}] file.s...

configure:3750: $? = 1
configure:3788: result: no
configure: failed program was:

/* confdefs.h */
#define PACKAGE_NAME "libgpg-error"
#define PACKAGE_TARNAME "libgpg-error"
#define PACKAGE_VERSION "1.27"
#define PACKAGE_STRING "libgpg-error 1.27"
#define PACKAGE_BUGREPORT "https://bugs.gnupg.org"
#define PACKAGE_URL ""
#define PACKAGE "libgpg-error"
#define VERSION "1.27"
/* end confdefs.h. */
int
main ()
{
;
return 0;
}

configure:3793: error: in `/opt/applications/gpg-install/libgpg-error-1.27':
configure:3795: error: C compiler cannot create executables
See `config.log' for more details

  1. ---------------- ##
  2. Cache variables. ##
  3. ---------------- ##

ac_cv_build=sparc-sun-solaris2.10
ac_cv_env_CC_FOR_BUILD_set=
ac_cv_env_CC_FOR_BUILD_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_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_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_host=sparc-sun-solaris2.10
ac_cv_prog_AWK=nawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes

  1. ----------------- ##
  2. Output variables. ##
  3. ----------------- ##

ACLOCAL='${SHELL} /opt/applications/gpg-install/libgpg-error-1.27/build-aux/missing aclocal-1.14'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AR=''
AS=''
AUTOCONF='${SHELL} /opt/applications/gpg-install/libgpg-error-1.27/build-aux/missing autoconf'
AUTOHEADER='${SHELL} /opt/applications/gpg-install/libgpg-error-1.27/build-aux/missing autoheader'
AUTOMAKE='${SHELL} /opt/applications/gpg-install/libgpg-error-1.27/build-aux/missing automake-1.14'
AWK='nawk'
BUILD_DOC_FALSE=''
BUILD_DOC_TRUE=''
BUILD_FILEVERSION=''
BUILD_REVISION=''
BUILD_TESTS_FALSE=''
BUILD_TESTS_TRUE=''
BUILD_TIMESTAMP=''
BUILD_VERSION=''
CC='gcc'
CCDEPMODE=''
CC_FOR_BUILD=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CROSS_COMPILING_FALSE=''
CROSS_COMPILING_TRUE=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
FORCE_USE_SYSCFG_FALSE=''
FORCE_USE_SYSCFG_TRUE=''
GETTEXT_MACRO_VERSION=''
GMSGFMT=''
GMSGFMT_015=''
GPG_ERROR_CONFIG_CFLAGS=''
GPG_ERROR_CONFIG_HOST=''
GPG_ERROR_CONFIG_ISUBDIRAFTER=''
GPG_ERROR_CONFIG_LIBS=''
GPG_ERROR_CONFIG_MT_CFLAGS=''
GPG_ERROR_CONFIG_MT_LIBS=''
GREP=''
HAVE_LD_VERSION_SCRIPT_FALSE=''
HAVE_LD_VERSION_SCRIPT_TRUE=''
HAVE_W32CE_SYSTEM_FALSE=''
HAVE_W32CE_SYSTEM_TRUE=''
HAVE_W32_SYSTEM_FALSE=''
HAVE_W32_SYSTEM_TRUE=''
HAVE_W64_SYSTEM_FALSE=''
HAVE_W64_SYSTEM_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INTLLIBS=''
INTL_MACOSX_LIBS=''
LANGUAGES_SOME_FALSE=''
LANGUAGES_SOME_TRUE=''
LD=''
LDFLAGS=''
LIBGPG_ERROR_LT_AGE='22'
LIBGPG_ERROR_LT_CURRENT='22'
LIBGPG_ERROR_LT_REVISION='0'
LIBICONV=''
LIBINTL=''
LIBMULTITHREAD=''
LIBOBJS=''
LIBS=''
LIBTHREAD=''
LIBTOOL=''
LIB_SCHED_YIELD=''
LIPO=''
LN_S=''
LTLIBICONV=''
LTLIBINTL=''
LTLIBMULTITHREAD=''
LTLIBOBJS=''
LTLIBTHREAD=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /opt/applications/gpg-install/libgpg-error-1.27/build-aux/missing makeinfo'
MANIFEST_TOOL=''
MKDIR_P='build-aux/install-sh -c -d'
MSGFMT=''
MSGFMT_015=''
MSGMERGE=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='libgpg-error'
PACKAGE_BUGREPORT='https://bugs.gnupg.org'
PACKAGE_NAME='libgpg-error'
PACKAGE_STRING='libgpg-error 1.27'
PACKAGE_TARNAME='libgpg-error'
PACKAGE_URL=''
PACKAGE_VERSION='1.27'
PATH_SEPARATOR=':'
POSUB=''
RANLIB=''
RC=''
SED=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
USE_NLS=''
VERSION='1.27'
VERSION_NUMBER='0x011b00'
XGETTEXT=''
XGETTEXT_015=''
XGETTEXT_EXTRA_OPTIONS=''
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_DUMPBIN=''
amEXEEXT_FALSE=''
am
EXEEXT_TRUE=''
amfastdepCC_FALSE=''
am
fastdepCC_TRUE=''
aminclude=''
am
isrc=''
amleading_dot='.'
am
nodep=''
amquote=''
am
tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='sparc-sun-solaris2.10'
build_alias=''
build_cpu='sparc'
build_os='solaris2.10'
build_vendor='sun'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='sparc-sun-solaris2.10'
host_alias=''
host_cpu='sparc'
host_os='solaris2.10'
host_vendor='sun'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /opt/applications/gpg-install/libgpg-error-1.27/build-aux/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

  1. ----------- ##
  2. confdefs.h. ##
  3. ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "libgpg-error"
#define PACKAGE_TARNAME "libgpg-error"
#define PACKAGE_VERSION "1.27"
#define PACKAGE_STRING "libgpg-error 1.27"
#define PACKAGE_BUGREPORT "https://bugs.gnupg.org"
#define PACKAGE_URL ""
#define PACKAGE "libgpg-error"
#define VERSION "1.27"

configure: exit 77

Details

Version
libgpg-error-1.27

Event Timeline

rajeshg8 updated the task description. (Show Details)
rajeshg8 added a subscriber: rajeshg8.
rajeshg8 removed a subscriber: rajeshg8.
werner removed a project: Bug Report.
werner added a subscriber: werner.

This is a support question - please ask on a gnupg mailing list or ask your Solaris vendor on how to properly install gcc.