do you have other c compiler installed on your RH 7.2? if that compiles your helloworld and gcc doesn't. then you know for sure that gcc is a problem.
I am not a hardcore C guy so can't say much about it. However, it seems to be the problem with gcc. consider upgrading. HTH Navjot Singh >-----Original Message----- >From: guddu dhanoa [mailto:[EMAIL PROTECTED] >Sent: Saturday, January 10, 2004 8:34 PM >To: Navjot Singh >Subject: RE: problem while compiling > > >Thanks for the advice. I wrote the old helloworld >program but while compiling it as below > >"gcc -o hello helloworld.c" > >the compilation is aborted. On checking in google I >figured that my gcc(version 2.96) might be corrupted. >Downloaded the rpm and re-installed but again getting >the same error. when trying to install a higher >version of gcc (version 3.2), it asks to install >compatible versions of some other utilities(see below) > >rpm -ivh gcc-3.2-7.i386.rpm >error: failed dependencies: > cpp = 3.2-7 is needed by gcc-3.2-7 > binutils >= 2.12.90.0.7-1 is needed by >gcc-3.2-7 > glibc-devel >= 2.2.90-12 is needed by >gcc-3.2-7 > libgcc >= 3.2-7 is needed by gcc-3.2-7 > rpmlib(PartialHardlinkSets) <= 4.0.4-1 is >needed by gcc-3.2-7 > gdb < 5.1-2 conflicts with gcc-3.2-7 > > >What do you say?? Is the problem really with gcc? >Should I go ahead and install the higher versions of >whatever is required alongwith gcc? > >Regards, >guddu >--- Navjot Singh <[EMAIL PROTECTED]> wrote: >> it seems from the error that make is able to detect >> gcc on system. but >> unable to compile and save file. >> Can you write a small c file in the same dir in >> which kannel is untarred >> now? >> Try compling that. you will have your way. >> >> HTH >> Navjot Singh >> >> >-----Original Message----- >> >From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] >> >Behalf Of guddu dhanoa >> >Sent: Wednesday, January 07, 2004 5:06 PM >> >To: [EMAIL PROTECTED] >> >Subject: problem while compiling >> > >> > >> >Hi, >> > >> >I have just downloaded the kannel version 1.3.1. >> While >> >running "./configure" I'm getting following error >> > >> >loading cache ./config.cache >> > >> >Configuring for Kannel gateway version 1.3.1 ... >> > >> >Running system checks ... >> >checking host system type... ./config.guess: line >> 1: >> >3495 Aborted ( $c -c -o $dummy.o >> >$dummy.c ) >/dev/null 2>&1 >> >./config.guess: line 1: 3498 Aborted >> >( $c -c -o $dummy.o $dummy.c ) >/dev/null 2>&1 >> >i686-pc-linux-gnu >> >checking for gcc... gcc >> >checking whether the C compiler (gcc ) works... no >> >configure: error: installation or configuration >> >problem: C compiler cannot create executables. >> > >> > >> >I have checked my system (Redhat Linux 7.2) and it >> >does have "gcc". Can anyone guide me in solving >> this >> >problem. >> > >> >Thanks in advance >> > >> >cheers!!! >> >guddu >> > >> >__________________________________ >> >Do you Yahoo!? >> >Yahoo! Hotjobs: Enter the "Signing Bonus" >> Sweepstakes >> >http://hotjobs.sweepstakes.yahoo.com/signingbonus >> > >> > >> > > >__________________________________ >Do you Yahoo!? >Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes >http://hotjobs.sweepstakes.yahoo.com/signingbonus >
