bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

configure: error: no acceptable C compiler found in $PATH (+possible sol


From: Kreek, Fred
Subject: configure: error: no acceptable C compiler found in $PATH (+possible solution)
Date: Wed, 13 Jun 2007 10:09:25 +0200

Hi,
 
I found a bug in a configure script. A problem is that I do not have easy 
access to the internet, so checking whether the bug still exists in the newest 
version of autoconf is a problem. At the end of this mail there is a transcript 
of the commands I entered.
 
I tried to install PDFlib-Lite-5.0.4p1-Unix-src. The installation includes a 
step where configure should be run. I did so. But to my horror :) the script 
failed giving me a message that I do not have an acceptable C compiler (See 
transcript). Strange enough, since I do have a C compiler, but a colleague of 
me could run configure without any problem.
 
It took some effort but I think I found the problem. While running configure, 
the following code is executed (several times):
<snippet>
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
  echo "#! /bin/sh" >conf$$.sh
  echo  "exit 0"   >>conf$$.sh
  chmod +x conf$$.sh
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
    PATH_SEPARATOR=';'
  else
    PATH_SEPARATOR=:
  fi
  rm -f conf$$.sh
fi
</snippet>
This looks like it should work, but it does not. 
The problem is the fact that I use ksh. With ksh you have 2 variables defining 
the path: $PATH, but also $FPATH. Due some problems in the configuration my 
$FPATH contains the current directory. This results in conf$$.sh being found, 
even when a ':' is the path separator

Possible Solution:
reset $FPATH during this part of the script

Yours,

FK



<snippet> 
address@hidden> ./configure
checking build system type... alphaev68-dec-osf5.1
checking host system type... alphaev68-dec-osf5.1
checking MACHDEP... osf1V5
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
address@hidden> cat 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
 
## --------- ##
## Platform. ##
## --------- ##
 
hostname = XXXXXXXXX
uname -m = alpha
uname -r = V5.1
uname -s = OSF1
uname -v = 2650
 
/usr/bin/uname -p = alpha
/bin/uname -X     = unknown
 
/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = alpha
/usr/bin/oslevel       = unknown
/bin/universe          = unknown
 
PATH: XXXXXXXX:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/bin:/sbin
 

## ----------- ##
## Core tests. ##
## ----------- ##
 
configure:1740: checking build system type
configure:1758: result: alphaev68-dec-osf5.1
configure:1766: checking host system type
configure:1780: result: alphaev68-dec-osf5.1
configure:1789: checking MACHDEP
configure:1816: result: osf1V5
configure:1865: checking for gcc
configure:1894: result: no
configure:1945: checking for cc
configure:1974: result: no
configure:1987: checking for cc
configure:2033: result: no
configure:2086: checking for cl
configure:2115: result: no
configure:2128: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
 
## ---------------- ##
## Cache variables. ##
## ---------------- ##
 
ac_cv_build=alphaev68-dec-osf5.1
ac_cv_build_alias=alphaev68-dec-osf5.1
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_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=alphaev68-dec-osf5.1
ac_cv_host_alias=alphaev68-dec-osf5.1
 
## ----------------- ##
## Output variables. ##
## ----------------- ##
 
BINDINGS=''
BINDTARGETS=''
CC=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX=''
CXXFLAGS=''
DEFINES=''
DEFS=''
ECHO='print -r'
ECHO_C='ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
EXTERNALLIBS=''
FLATELIBINC=''
FLATELIBLINK=''
INCLUDES=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
JAVAINCLUDE=''
JPEGLIBINC=''
JPEGLIBLINK=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTARGETS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
LTVERSIONINFO='4:2:2'
MATHLIB='-lm'
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=';'
PDCORELIBINC=''
PDCORELIBLINK=''
PDFLIBCONVENIENT=''
PDFLIBINC=''
PDFLIBLINK=''
PDFLIBNAME='pdf'
PDFLIB_LINK=''
PDFLIB_LTAGE='2'
PDFLIB_LTCURRENT='4'
PDFLIB_LTREVISION='2'
PDFLIB_MAJOR='5'
PDFLIB_MINOR='0'
PDFLIB_REVISION='4'
PDFPEDANTIC=''
PDILIBINC=''
PDILIBLINK=''
PDPAGELIBINC=''
PDPAGELIBLINK=''
PDULIBINC=''
PDULIBLINK=''
PERL=''
PERLBOOLDEF=''
PERLINCLUDE=''
PERLLIBDIR=''
PERLLINK=''
PHP_PDFLIBS=''
PLATFORM_ID=''
PNGLIBINC=''
PNGLIBLINK=''
PROGTARGETS=''
PSPBINDINGS=''
PSPLIBINC=''
PSPLIBLINK=''
PSPLIB_LINK=''
PTFDIR=''
PYINCLUDE=''
PYTHONBIN=''
PYTHONLIBDIR=''
RANLIB=''
RM=''
RPATH=''
SHELL='/bin/ksh'
STDCPP=''
STRIP=''
TCL=''
TCLBIN=''
TCLINCLUDE=''
TCLPACKAGEDIR=''
TETLIBINC=''
TETLIBLINK=''
TETLIB_LINK=''
TIFFLIBINC=''
TIFFLIBLINK=''
VERSION='5.0.4'
WITH_PDI=''
WITH_SHARED=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
bindir='${exec_prefix}/bin'
build='alphaev68-dec-osf5.1'
build_alias=''
build_cpu='alphaev68'
build_os='osf5.1'
build_vendor='dec'
datadir='${prefix}/share'
exec_prefix='NONE'
host='alphaev68-dec-osf5.1'
host_alias=''
host_cpu='alphaev68'
host_os='osf5.1'
host_vendor='dec'
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
 
## ----------- ##
## confdefs.h. ##
## ----------- ##
 
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
 
configure: exit 1
address@hidden>
</snippet>


Disclaimer:
De inhoud van dit bericht is uitsluitend bestemd voor geadresseerde.       
Gebruik van de inhoud van dit bericht door anderen zonder toestemming van het 
Kadaster
is onrechtmatig. Mocht dit bericht ten onrechte bij u terecht komen, dan 
verzoeken wij u 
dit direct te melden aan de verzender en het bericht te vernietigen. 
Aan de inhoud van dit bericht kunnen geen rechten worden ontleend.

Disclaimer:
The content of this message is meant to be received by the addressee only.
Use of the content of this message by anyone other than the addressee without 
the consent
of the Kadaster is unlawful. If you have received this message but are not the 
addressee, 
please contact the sender immediately and destroy the message. 
No rights can be derived from the content of this message.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]