Well, made a link to the 'as' file to where gcc is expecting it to be, changed the permissions so it was executable, now the error is:
 
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
 
configure:746: checking for gcc
configure:859: checking whether the C compiler (gcc  ) works
configure:875: gcc -o conftest    conftest.c  1>&5
gcc: installation problem, cannot exec `/usr/ccs/bin/as': Exec format error
configure: failed program was:
 
#line 870 "configure"
#include "confdefs.h"
 
main(){return(0);}
Any idea's ?
-----Original Message-----
From: Andrew Milne [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 1 December 2004 3:27 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Problems with 'configure' during install

Lyle,
 
'as' is in /opt/sfw/$MACHTYPE/bin on my machine which you will need in your path. (where $MACHTYPE is 'sparc-sun-solaris2.9)
 
Andrew.
 
 
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cameron, Lyle K
Sent: Wednesday, 1 December 2004 12:16 PM
To: [EMAIL PROTECTED]
Subject: RE: Problems with 'configure' during install

gcc seems to be compiling fine when used manually, its only when I use an automated script like configure that it seems to bomb out. The config.log looks like this:
 
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
 
configure:746: checking for gcc
configure:859: checking whether the C compiler (gcc  ) works
configure:875: gcc -o conftest    conftest.c  1>&5
gcc: installation problem, cannot exec `as': No such file or directory
configure: failed program was:
 
#line 870 "configure"
#include "confdefs.h"
 
main(){return(0);}
I have had similar problems with another package I've been trying to compile, its output is a little more verbose, but it looks like a similar, if not the same thing:
 
.
.
configure:2433: checking for C compiler default output file name
configure:2436: gcc    conftest.c  >&5
gcc: installation problem, cannot exec `as': No such file or directory
configure:2439: $? = 1
configure: failed program was:
| /* confdefs.h.  */
.
.
 
Seems to produce the same output during configure, the old:
 
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

Whatever it is, it doesn't seem to be limited to FreeRadius....
 
Lyle

From: Andrew Milne [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 1 December 2004 2:19 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Problems with 'configure' during install

Lyle,
 
I am using the sunfreeware version (or maybe the companion CD version). I don't know if that matters or not?
 
If you create a simple C file:
 
tmp.c
---------
#include <stdio.h>
 
int main(void)
{
    printf ("Hello world\n");
}
---------
 
Does 'gcc tmp.c' produce an a.out? And './a.out' print Hello world?
 
What does the 'config.log' have in it after the configure?
 
Andrew.
 
 
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cameron, Lyle K
Sent: Wednesday, 1 December 2004 10:56 AM
To: [EMAIL PROTECTED]
Subject: RE: Problems with 'configure' during install

Yes, but the binary is at /usr/local/bin, not /opt/sfw/bin...
-----Original Message-----
From: Andrew Milne [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 1 December 2004 1:49 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Problems with 'configure' during install

Lyle,
 
Can you run gcc? That is, do you have /opt/sfw/bin in your path?
 
Regards
Andrew Milne
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cameron, Lyle K
Sent: Wednesday, 1 December 2004 10:31 AM
To: [EMAIL PROTECTED]
Subject: Problems with 'configure' during install

Having a major trouble trying to get 'configure' to run during the installation. I run it and get the following error message:
 
Checking whether C compiler (gcc ) works... no
Configure: Error: Installation or configuration problem: C compiler cannot create executables
 
Using FreeRadius v1.0.1
make v3.80
gcc v3.4.2
Solaris 8 on an Ultra 2.
 
I've tried everything I can think of, thought one of you might have come across (and hopefully surmounted) a problem like this.
 
Thanks in advance for any help...

------------------------------------------------------------------
Lyle Cameron
Canberra Deep Space Communication Complex
Raytheon Australia
Ph: +61 2 6201 7866
Fax: +61 2 6201 7845
E-mail: [EMAIL PROTECTED]
ICQ# 1363500
------------------------------------------------------------------

 

This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal - For more information please visit www.marshalsoftware.com

This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal - For more information please visit www.marshalsoftware.com

This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal - For more information please visit www.marshalsoftware.com

This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal - For more information please visit www.marshalsoftware.com

Reply via email to