autoconf
[Top][All Lists]
Advanced

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

Workaround for incorrect gcc exit code?


From: Stephen P. Schaefer
Subject: Workaround for incorrect gcc exit code?
Date: Thu, 29 Jan 2009 21:07:47 -0500

I'm seeing the following in config.log;

configure:8972: checking for setpcred
configure:9022: gcc -o conftest -O2 -march=i386 -mcpu=i686 -g -fpie
-I/usr/kerberos/include -I/usr/kerberos/include/gssapi -Wall
-Wpointer-arith -Wno-uninitialized  -I/usr/kerberos/include
-I/usr/kerberos/include/gssapi  -pie -L/usr/kerberos/lib conftest.c -lz 
>&5
/tmp/ccijWTnn.o(.text+0x19): In function `main':
/.automount/rfgbfiler1/vol/work/work/sps/rpmbuild/BUILD/openssh-3.9p1/configure:9131:
undefined reference to `setpcred'
/tmp/ccijWTnn.o(.data.rel+0x0):/.automount/rfgbfiler1/vol/work/work/sps/rpmbuild/BUILD/openssh-3.9p1/configure:9130:
undefined reference to `setpcred'
configure:9025: $? = 0
configure:9028: test -s conftest
configure:9031: $? = 0
configure:9042: result: yes

...i.e., gcc is exiting 0 even though it doesn't successfully create
conftest, and "HAVE_SETPCRED" is getting defined when it shouldn't.  Is
there a workaround for this?  Some way to attempt to invoke conftest and
note the failure?

address@hidden ./conftest
./conftest: relocation error: ./conftest: undefined symbol: setpcred
address@hidden echo $?
127

The problem environment is RHEL3, gcc-3.2.3-53.i386,
binutils-2.14.90.0.4-39.i386 (/bin/ld), autoconf-2.57-3.noarch

Thanks,

    - Stephen P. Schaefer




reply via email to

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