Workaround for incorrect gcc exit code?

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

 



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?

sschaefe@modela022 ./conftest
./conftest: relocation error: ./conftest: undefined symbol: setpcred
sschaefe@modela022 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


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux