Re: C Compiler cannot create executables

2002-07-15 Thread Joshua Baker-LePain

On Mon, 15 Jul 2002 at 1:40pm, Rebecca Pakish wrote

> checking for gcc... gcc
> checking whether the C compiler (gcc  ) works... no
> configure: error: installation or configuration problem: C compiler cannot
> create executables.
> 
> What is happening with this compiler...I used gcc-2.95.3-sol8-sparc-local, I
> thought this was a stable release, am I wrong? I'm pretty sure I've used it
> before...

I believe you also need binutils, which includes (I think) bits like ld.  
Maybe I could qualify that all a bit more...

-- 
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University




Re: C Compiler cannot create executables

2002-07-15 Thread Scott Sanders



Also try adding /usr/ccs/bin to the END of your PATH

Rebecca Pakish wrote:

> Hi all...
>
> Trying to build amanda on a new sparc-sol8 box. Downloaded pkgs for make and
> gcc from sunfreeware and installed them with your basic pkgadd -d pkg-name
> command they seemed to install no problem.
>
> # which gcc
> /usr/local/bin/gcc
> # echo $PATH
>
> /usr/local/bin:/usr/local:/usr/local/sbin:/usr/sbin:/usr/bin
>
> On ./configure, however, I get this:
>
> # ./configure --with-user=amanda --with-group=sys --without-server
> --with-amandahosts --with-tape-server=slaw.unterlaw.com --with>
> creating cache ./config.cache
> checking host system type... sparc-sun-solaris2.8
> checking target system type... sparc-sun-solaris2.8
> checking build system type... sparc-sun-solaris2.8
> checking cached system tuple... ok
> checking for a BSD compatible install... config/install-sh -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... yes
> checking for working aclocal... missing
> checking for working autoconf... missing
> checking for working automake... missing
> checking for working autoheader... missing
> checking for working makeinfo... missing
> checking for non-rewinding tape device... /dev/null
> checking for raw ftape device... /dev/null
> checking for Kerberos and Amanda kerberos4 bits... no
> checking for gcc... gcc
> checking whether the C compiler (gcc  ) works... no
> configure: error: installation or configuration problem: C compiler cannot
> create executables.
>
> What is happening with this compiler...I used gcc-2.95.3-sol8-sparc-local, I
> thought this was a stable release, am I wrong? I'm pretty sure I've used it
> before...
>
> Rebecca A. Pakish
> Systems Administrator
> Unterberg & Associates, P.C.
> (219) 736-5579 ext. 184

--
Scott Sanders

Systems Administrator
Concepts Direct, Inc.
2950 Colorful Ave.
Longmont, CO 80504

(303) 682-7110 Phone
(303) 682-7140 Fax





Re: C Compiler cannot create executables

2002-07-15 Thread Scott Sanders


Set the env. variable

CC=gcc;export CC

before you run configure. Also run make distclean to cleanup the config.cache
from the last ./configure you ran.

Scott

Rebecca Pakish wrote:

> Hi all...
>
> Trying to build amanda on a new sparc-sol8 box. Downloaded pkgs for make and
> gcc from sunfreeware and installed them with your basic pkgadd -d pkg-name
> command they seemed to install no problem.
>
> # which gcc
> /usr/local/bin/gcc
> # echo $PATH
>
> /usr/local/bin:/usr/local:/usr/local/sbin:/usr/sbin:/usr/bin
>
> On ./configure, however, I get this:
>
> # ./configure --with-user=amanda --with-group=sys --without-server
> --with-amandahosts --with-tape-server=slaw.unterlaw.com --with>
> creating cache ./config.cache
> checking host system type... sparc-sun-solaris2.8
> checking target system type... sparc-sun-solaris2.8
> checking build system type... sparc-sun-solaris2.8
> checking cached system tuple... ok
> checking for a BSD compatible install... config/install-sh -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... yes
> checking for working aclocal... missing
> checking for working autoconf... missing
> checking for working automake... missing
> checking for working autoheader... missing
> checking for working makeinfo... missing
> checking for non-rewinding tape device... /dev/null
> checking for raw ftape device... /dev/null
> checking for Kerberos and Amanda kerberos4 bits... no
> checking for gcc... gcc
> checking whether the C compiler (gcc  ) works... no
> configure: error: installation or configuration problem: C compiler cannot
> create executables.
>
> What is happening with this compiler...I used gcc-2.95.3-sol8-sparc-local, I
> thought this was a stable release, am I wrong? I'm pretty sure I've used it
> before...
>
> Rebecca A. Pakish
> Systems Administrator
> Unterberg & Associates, P.C.
> (219) 736-5579 ext. 184

--
Scott Sanders

Systems Administrator
Concepts Direct, Inc.
2950 Colorful Ave.
Longmont, CO 80504






Re: C Compiler cannot create executables

2002-07-16 Thread Lee Fellows

On Mon, 2002-07-15 at 14:55, Joshua Baker-LePain wrote:
> On Mon, 15 Jul 2002 at 1:40pm, Rebecca Pakish wrote
> 
> > checking for gcc... gcc
> > checking whether the C compiler (gcc  ) works... no
> > configure: error: installation or configuration problem: C compiler cannot
> > create executables.
> > 
> > What is happening with this compiler...I used gcc-2.95.3-sol8-sparc-local, I
> > thought this was a stable release, am I wrong? I'm pretty sure I've used it
> > before...
> 
> I believe you also need binutils, which includes (I think) bits like ld.  
> Maybe I could qualify that all a bit more...
> 

  Just to add a little to Joshua's and Scott Sanders' recommendations, 
  which are excellent.

  Rebecca, try looking at your config.log to see what error is created
  when configure attempted to test gcc.  I have run into a situation
  with an incomplete Solaris 8 installation in which certain object
  files (used by both Sun's C compiler and gcc) where not installed.
  Consequently, compilation fails.  These referenced object files
  reside in /usr/lib and /usr/ccs/lib with names values-Xa.o,
  values-Xc.o, values-Xs.o, values-Xt.o and values-xpg4.o.  







RE: C Compiler cannot create executables

2002-07-16 Thread Rebecca Pakish

I was also getting some advice from Jon LaBadie about which gcc pkg I used.
I downloaded from sunfreeware, as I have done in the past but it wasn't
working. I used the version from the companion cd, and on pkgadd, it listed
3 different dependencies I was missing, the gnu common pkg, a header pkg and
an archived lib pkg. I installed all of those and voila! I can now ./config
amanda...

Thanks to all for your suggestions. I tried everything anyone threw my way.


>  Just to add a little to Joshua's and Scott Sanders' recommendations, 
>  which are excellent.
>
>  Rebecca, try looking at your config.log to see what error is created
>  when configure attempted to test gcc.  I have run into a situation
>  with an incomplete Solaris 8 installation in which certain object
>  files (used by both Sun's C compiler and gcc) where not installed.
>  Consequently, compilation fails.  These referenced object files
>  reside in /usr/lib and /usr/ccs/lib with names values-Xa.o,
>  values-Xc.o, values-Xs.o, values-Xt.o and values-xpg4.o.