CSB
2008-Mar-05 17:50 UTC
[asterisk-users] C compiler cannot create executables when building zaptel
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
Stefan Guenther
2008-Mar-05 18:26 UTC
[asterisk-users] C compiler cannot create executables when building zaptel
CSB wrote:> >When attempting to build zaptel I get the following error: >configure:2184: error: C compiler cannot create executables >on a Debian/Ubuntu-system apt-get install build-essential make bin86 solved this problem for me. Stefan -- ******************************************** in-put GbR - Das Linux-Systemhaus Stefan-Michael Guenther Geschaeftsfuehrer Moltkestrasse 49 D-76133 Karlsruhe Tel./Fax : +49 (0)721 / 83044 - 98/93 http://www.in-put.de ******************************************** Schulungen Installationen Beratung Support Voice-over-IP-Loesungen ********************************************
Michiel van Baak
2008-Mar-05 19:06 UTC
[asterisk-users] C compiler cannot create executables when building zaptel
On 06:50, Thu 06 Mar 08, CSB wrote:> When attempting to build zaptel I get the following error: > configure:2184: error: C compiler cannot create executables</snip>> > 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?I had the same error on a clean ubuntu install. What fixed it, is installing the build-essential package. I dont know if fedora has the same package, but should be something like this. -- Michiel van Baak michiel at vanbaak.eu http://michiel.vanbaak.eu GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x71C946BD "Why is it drug addicts and computer aficionados are both called users?"
Tzafrir Cohen
2008-Mar-05 19:34 UTC
[asterisk-users] C compiler cannot create executables when building zaptel
On Thu, Mar 06, 2008 at 06:50:40AM +1300, CSB wrote:> 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 ***That's from the end of the configure script. Can you post your config.log ?> > 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?What version of Zaptel is it? What is the output of: ./install_prereq test -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Tzafrir Cohen
2008-Mar-05 19:36 UTC
[asterisk-users] C compiler cannot create executables when building zaptel
On Wed, Mar 05, 2008 at 07:26:21PM +0100, Stefan Guenther wrote:> CSB wrote: > > > >When attempting to build zaptel I get the following error: > >configure:2184: error: C compiler cannot create executables > > > on a Debian/Ubuntu-system > > apt-get install build-essential make bin86$ apt-cache depends build-essential build-essential |Depends: libc6-dev Depends: <libc-dev> libc6-dev Depends: gcc Depends: g++ Depends: make Depends: dpkg-dev So it pulls make as well. Are you sure bin86 is needed? -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Tzafrir Cohen
2008-Mar-06 19:12 UTC
[asterisk-users] C compiler cannot create executables when building zaptel
On Thu, Mar 06, 2008 at 06:50:40AM +1300, CSB wrote:> When attempting to build zaptel I get the following error: > configure:2184: error: C compiler cannot create executablesWhere do you actually get the error from? From the 'make' command? If so: go chase errors in menuselect/configure -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir