Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

compiler error: configure can create executables

Status
Not open for further replies.
Jan 10, 2003
34
NG
people

I recently installed solaris 8 on a sun ultra e450 machine. Runs well. To install sendmail, I need to install Berkeley DB. I get the error checking cc..cc
compiling...error: configure c compiler cannot make executables.

I was going to ask what was wrong with my installation. I had installed, gcc 2.9.5, gcc 3.0.3 and gcc 3.2.3 which I now have. But I was failing to compile.

I discovered, if I have bash on, I cannot compile. when Out of bash, straight as root, all works.

 
I have a question, how do I tell it to use gcc and not cc?

I downloaded source for sendmail-8.12.9. I copied devtools/OS/SCO.5.x to devtools/Site/site.config.m4. I then edited site.config.m4 and changed confCC from cc to gcc.

When I run sh ./Build, I still get error saying cc not found. I have gcc and it is in my $PATH. I tried to cheat and I ln /usr/local/bin/gcc /usr/bin/cc. I then got error c1 not found ...

I set environment variables confCC=gcc and no luck!

This is what my site.config.m4 file looks like:
------------
# $Id: SCO.5.x,v 8.14 2002/03/21 23:59:26 gshapiro Exp $

dnl DO NOT EDIT THIS FILE.
dnl Place personal settings in devtools/Site/site.config.m4

define(`confCC', `gcc -b elf')
define(`confLIBS', `-lsocket -lndbm -lprot -lcurses -lm -lx -lgen')
define(`confMAPDEF', `-DMAP_REGEX -DNDBM')
define(`confSBINGRP', `bin')
define(`confMBINDIR', `/usr/lib')
define(`confSBINDIR', `/usr/etc')
define(`confUBINDIR', `/usr/bin')
define(`confINSTALL', `${BUILDBIN}/install.sh')
-------------

When I run sh ./Build this is what I get
-------------
IFMS #> sh ./Build
Configuration: pfx=, os=SCO, rel=5.0.5, rbase=5, rroot=5.0, arch=i386, sfx=, var
iant=optimized
Making in /tmp/downloads/sendmail-8.12.9/obj.SCO.5.0.5.i386/sendmail
(cd ../../libsm; sh Build )
Configuration: pfx=, os=SCO, rel=5.0.5, rbase=5, rroot=5.0, arch=i386, sfx=, var
iant=optimized
Making in /tmp/downloads/sendmail-8.12.9/obj.SCO.5.0.5.i386/libsm
make[1]: Entering directory `/tmp/downloads/sendmail-8.12.9/obj.SCO.5.0.5.i386/l
ibsm'
cc -b elf -O -I. -I../../include -DMAP_REGEX -DNDBM -c -o assert.o assert.
c
make[1]: cc: Command not found
make[1]: *** [assert.o] Error 127
make[1]: Leaving directory `/tmp/downloads/sendmail-8.12.9/obj.SCO.5.0.5.i386/li
bsm'
make: *** [/tmp/downloads/sendmail-8.12.9/obj.SCO.5.0.5.i386/libsm/libsm.a] Erro
r 2
--------------

Please help!

Thank you all in advance!!!!

Jose Lerebours


KNOWLEDGE: Something you can give away endlessly and gain more of it in the process! - Jose Lerebours
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top