automake
[Top][All Lists]
Advanced

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

Re: Cannot Create Executables (configure and -fPIC/-pic)


From: Jeffrey Walton
Subject: Re: Cannot Create Executables (configure and -fPIC/-pic)
Date: Tue, 21 Aug 2012 19:12:50 -0400

Hi Robert,

Thanks.

"configure: exit 77," and nothing relevant before the entry. It looks
like an autoconf problem.

Jeff

...

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR=''
AR=''
AS=''
AUTOCONF=''
AUTOHEADER=''
AUTOMAKE=''
AWK=''
CC='gcc'
CCDEPMODE=''
CFLAGS='-Wall -Wextra -Wconversion -fPIC -pic -Wno-unused-parameter
-Wformat=2 -Wformat-security -fstack-protector-all -Wstrict-overflow
-Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now'
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W=''
DAEMON_LIBS=''
DEFS=''
DEPDIR=''
DLLTOOL=''
DLOPEN=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXOSIP2_CFLAGS=''
EXOSIP2_LIBS=''
EXPORT_FLAGS=''
EXPORT_LIBS=''
FGREP=''
GREP=''
INCLUDE_FLAGS=''
INITRDDIR=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
INSTALL_STRIP_PROGRAM=''
LD=''
LDFLAGS=''
LIBOBJS=''
LIBOSIP2_CFLAGS=''
LIBOSIP2_LIBS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
LT_VERSION='1:6:0'
MAKEINFO=''
MANIFEST_TOOL=''
MKDIR_P=''
MOC=''
MODFLAGS=''
NETWORK_DOWN=''
NETWORK_RELOAD=''
NETWORK_UP=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PKG_CONFIG=''
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
QTAPPS=''
QT_CFLAGS=''
QT_LIBS=''
RANLIB=''
RCC=''
SED=''
SET_MAKE=''
SHELL='/bin/bash'
SIPWITCH_EXOSIP2=''
SIPWITCH_FLAGS=''
SIPWITCH_LIBS=''
STATIC_MODULES_FALSE=''
STATIC_MODULES_TRUE=''
STRIP=''
UCOMMON=''
UCOMMON_CFLAGS=''
UCOMMON_CLINK=''
UCOMMON_LIBS=''
UCOMMON_LINK=''
UCOMMON_MODEL=''
UCOMMON_REQUIRES='5.2.0'
UIC=''
USECURE_LINK=''
VERSION='1.3.1'
ZEROCONF_CFLAGS=''
ZEROCONF_FALSE=''
ZEROCONF_LIBS=''
ZEROCONF_TRUE=''
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot=''
am__nodep=''
am__quote=''
am__tar=''
am__untar=''
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
cgibindir=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
default_cfgpath=''
default_incpath=''
default_libexec=''
default_libpath=''
default_varpath=''
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
plugindir=''
prefix='NONE'
prefix_libdir=''
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='x86_64-unknown-linux-gnu'
target_alias=''
target_cpu='x86_64'
target_os='linux-gnu'
target_vendor='unknown'
translatedir=''
translations=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""

configure: exit 77

On Tue, Aug 21, 2012 at 6:11 PM, Robert Boehne <address@hidden> wrote:
> Jeffrey,
>
> If you look at config.log it will show you the test program that it was
> attempting
> to compile, and what errors that attempt generated.  It seems like your
> compiler doesn't like "-fPIC -pic" and it has little to do with autotools.
>
> HTH,
>
> Robert
>
>
> On 08/21/12 17:06, Jeffrey Walton wrote:
>>
>> Hi All,
>>
>> When I try and run configure with -fPIC -pic (as opposed to -fPIE
>> -pie), I receive "C compiler cannot create executables".
>>
>> ./configure CFLAGS="-Wall -Wextra -Wconversion -fPIC -pic
>> -Wno-unused-parameter -Wformat=2 -Wformat-security
>> -fstack-protector-all -Wstrict-overflow -Wl,-z,noexecstack
>> -Wl,-z,relro -Wl,-z,now"
>> checking build system type... x86_64-unknown-linux-gnu
>> checking host system type... x86_64-unknown-linux-gnu
>> checking target system type... x86_64-unknown-linux-gnu
>> checking for gcc... gcc
>> checking whether the C compiler works... no
>> configure: error: in `/home/jeffrey/Desktop/sipwitch-1.3.1':
>> configure: error: C compiler cannot create executables
>> See `config.log' for more details
>>
>> Because LDFLAGS cannot distinguish between executables and shared
>> objects, I was told to use -fPIC -pic: "using -fPIC instead of -fPIE
>> is always ok" [1].
>>
>> Any ideas how to get automake and friends to build ASLR enabled
>> executables and shared objects in this manner?
>>
>> Thanks in advance
>> Jeff
>>
>> [1] Request: Add -aslr switch that invokes -fPIE/-pie or -fPIC/-shared
>> as appropriate, http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52885



reply via email to

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