Click to See Complete Forum and Search --> : going crazy.please help


Cdee007
01-25-2001, 03:08 AM
Okay guys, I've tried everything I can think of and getting nowhere. I'm trying to install apache on an SGI IRIX 6.5 machine. I need it to work with php, but nothing seems to work. Apache won't install because I'm getting the error at the bottom. I think it's a compiler error, everything else compilers with gcc, but apache insists on using cc is there a way to compile apache with that compiler. I need serious help please and I'm ready to pull my hair out. I have an old version of apache 1.3.3 or something but the files that php needs to complie itself with can't find the files. So I'm trying to uninstall it and install a newer version of apache so php can find the files it needs but this compiler error is driving crazy. I've tried both apache 1.3.12 and 1.3.14 Check out this error message please help
bash# cd apache_1.3.12
bash# ls
ABOUT_APACHE config.layout KEYS README
Announcement config.status LICENSE README.configure
cgi-bin htdocs logs README.NT
conf icons Makefile src
configure INSTALL Makefile.tmpl WARNING-NT.TXT
bash# ./configure
Configuring for Apache, Version 1.3.12
+ Warning: Configuring Apache with default settings.
+ This is probably not what you really want.
+ Please read the README.configure and INSTALL files
+ first or at least run './configure --help' for
+ a compact summary of available options.
+ using installation path layout: Apache (config.layout)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
+ configured for SGI IRIX-32 platform
+ setting C compiler to cc
+ setting C pre-processor to /lib/cpp
+ checking for system header files
+ adding selected modules
+ checking sizeof various data types
+ doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed. The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.

cd ..; cc -DIRIX -n32 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` -n32 -o helpers/dummy helpers/dummy.c
cc ERROR: cannot exec /usr/lib32/cmplrs/fec
*** Error code 2 (bu21)
======== Error Output for sanity check ========
============= End of Error Report =============

Aborting!

nopun
01-25-2001, 09:10 AM
It shouldn't be too difficult to get the thing to use gcc rather than cc - whether that will be the end of your problems is another issue.

Hopefully the configure script will allow you to pass a parameter thus:

./configure CC=gcc

If not, "./configure --help" may list valid options. Otherwise you will have to view the script and maybe edit it to force it to use gcc.
As a last resort brute force method you could temporarily rename the existing cc program, and create a symlink cc pointing to gcc.