[asterisk-users] C compiler cannot create executables when building zaptel

CSB kjcsb at xnet.co.nz
Wed Mar 5 11:50:40 CST 2008


When attempting to build zaptel I get the following error:
configure:2184: error: C compiler cannot create executables

vi config.log
configure:2066: $? = 0
configure:2073: gcc -v >&5
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
--with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.1 20070105 (Red Hat 4.1.1-51)
configure:2076: $? = 0
configure:2083: gcc -V >&5
gcc: '-V' option must have argument
configure:2086: $? = 1
configure:2109: checking for C compiler default output file name
configure:2136: gcc    conftest.c  >&5
collect2: vfork: Interrupted system call
configure:2139: $? = 0
configure:2177: result:
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define _GNU_SOURCE 1
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }

I believe I have all the necessary packages installed.

Having done some research, one link suggests using strace and in that case I
don't get the error:
strace -f -o /tmp/trace -e trace=process ./configure
...
configure: *** Zaptel build successfully configured ***

uname -a
Linux beta.domain.com 2.6.20-1.2320.fc5 #1 Tue Jun 12 18:50:38 EDT 2007 i686
i686 i386 GNU/Linux

Could anyone suggest why this is the case?

Regards

Cameron





More information about the asterisk-users mailing list