apache 1.3.26 -on Solaris 8 with GCC 3.1 ./configure failure ?

apache 1.3.26 -on Solaris 8 with GCC 3.1 ./configure failure ?

Post by Matthew Darc » Mon, 08 Jul 2002 21:38:39



\Hi,

I have just downloaded apache 1.3.26 from apache.org.

I have GCC 3.1 installed from sun freeware as a package.

I have ran the following configure command.

./configure --enable-module=cern_meta --enable-module=example --enable-modul
e=headers --enable-module=info --enable-module=log_agent --enable-module=log
_referer --enable-module=so --enable-module=unique_id --enable-module=usertr
ack --enable-module=vhost_alias --with-perl=/usr/bin

This doesn't run ok

I get

bash-2.05#
./configure --enable-module=cern_meta --enable-module=example --enab
le-module=headers --enable-module=info --enable-module=log_agent --enable-mo
dul
e=log_referer --enable-module=so --enable-module=unique_id --enable-module=u
ser
track --enable-module=vhost_alias --with-perl=/usr/bin
Configuring for Apache, Version 1.3.26
 + using installation path layout: Apache (config.layout)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
 + configured for Solaris 280 platform
 + setting C compiler to gcc
 + setting C pre-processor to gcc -E
 + checking for system header files
 + adding selected modules
 + using builtin Expat
 + 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.

======== Error Output for sanity check ========
cd ..; gcc  -DSOLARIS2=280 -DUSE_EXPAT -I./lib/expat-lite `./apaci`     -o
helpe
rs/dummy helpers/dummy.c   -lsocket -lnsl -lpthread
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../../sparc-sun-solari
s2.8
/bin/ld: cannot open values-Xa.o: No such file or directory
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
============= End of Error Report =============

 Aborting!

It seems to be complaining that gcc is not an ANSI C compiler.

What do I have to alert to get this working ?
Also can apache be compiled in 64 bit mode ? is this worth doing ?

Thanks,

matt.

 
 
 

apache 1.3.26 -on Solaris 8 with GCC 3.1 ./configure failure ?

Post by u n d e r a c h i e v e » Mon, 08 Jul 2002 21:59:46



> \Hi,

> I have just downloaded apache 1.3.26 from apache.org.

> I have GCC 3.1 installed from sun freeware as a package.

> I have ran the following configure command.

> ./configure --enable-module=cern_meta --enable-module=example --enable-modul
> e=headers --enable-module=info --enable-module=log_agent --enable-module=log
> _referer --enable-module=so --enable-module=unique_id --enable-module=usertr
> ack --enable-module=vhost_alias --with-perl=/usr/bin

> This doesn't run ok

> I get

[snip most]

- Show quoted text -

Quote:>  + checking for system header files
>  + adding selected modules
>  + using builtin Expat
>  + 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.

>======== Error Output for sanity check ========
> cd ..; gcc  -DSOLARIS2=280 -DUSE_EXPAT -I./lib/expat-lite `./apaci`     -o
> helpe
> rs/dummy helpers/dummy.c   -lsocket -lnsl -lpthread
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../../sparc-sun-solari
> s2.8
> /bin/ld: cannot open values-Xa.o: No such file or directory
> collect2: ld returned 1 exit status
> make: *** [dummy] Error 1
>============= End of Error Report =============

is gcc is your path?

which ld is first in your path (type 'which ld ' to find out)?

I would recommend using EITHER gcc plus gnu ld and other binutils OR
sun's forte collection. I have a muderous time trying to mix and match  :)

sunfreeware has binaries of binutils for install, plus other GNU goodies
like make, autoconf etc. install all of them and make sure /usr/local/bin
is FIRST in your path (or remove sun's stuff from the path completely).

this may not be the answer to your problem, but it is definitely worth a try

--
u n d e r a c h i e v e r

 
 
 

apache 1.3.26 -on Solaris 8 with GCC 3.1 ./configure failure ?

Post by Ole Michaelse » Mon, 08 Jul 2002 22:55:11



>  helpe
>  rs/dummy helpers/dummy.c   -lsocket -lnsl -lpthread
>  /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../../sparc-sun-solari
>  s2.8
>  /bin/ld: cannot open values-Xa.o: No such file or directory
>  collect2: ld returned 1 exit status
>  make: *** [dummy] Error 1
> ============= End of Error Report =============

You don't have SUNWarc which contains the file values-Xa.o:

bash-2.03$ pkgchk -l -p /usr/ccs/lib/values-Xa.o
Pathname: /usr/ccs/lib/values-Xa.o
Type: symbolic link
Source of link: ../../lib/values-Xa.o
Referenced by the following packages:
        SUNWarc        
Current status: installed

bash-2.03$

Hope this helps,

--
Ole Michaelsen, Darmstadt, Germany
http://www.fys.ku.dk/~omic

 
 
 

apache 1.3.26 -on Solaris 8 with GCC 3.1 ./configure failure ?

Post by Matthew Darc » Mon, 08 Jul 2002 23:05:56






> > \Hi,

> > I have just downloaded apache 1.3.26 from apache.org.

> > I have GCC 3.1 installed from sun freeware as a package.

> > I have ran the following configure command.

./configure --enable-module=cern_meta --enable-module=example --enable-modul
e=headers --enable-module=info --enable-module=log_agent --enable-module=log
_referer --enable-module=so --enable-module=unique_id --enable-module=usertr
Quote:> > ack --enable-module=vhost_alias --with-perl=/usr/bin

> > This doesn't run ok

> > I get

> [snip most]
> >  + checking for system header files
> >  + adding selected modules
> >  + using builtin Expat
> >  + 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.

> >======== Error Output for sanity check ========
> > cd ..; gcc  -DSOLARIS2=280 -DUSE_EXPAT -I./lib/expat-lite
paci`     -o
> > helpe
> > rs/dummy helpers/dummy.c   -lsocket -lnsl -lpthread

/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../../sparc-sun-solari

- Show quoted text -

Quote:> > s2.8
> > /bin/ld: cannot open values-Xa.o: No such file or directory
> > collect2: ld returned 1 exit status
> > make: *** [dummy] Error 1
> >============= End of Error Report =============

> is gcc is your path?

> which ld is first in your path (type 'which ld ' to find out)?

> I would recommend using EITHER gcc plus gnu ld and other binutils OR
> sun's forte collection. I have a muderous time trying to mix and match  :)

> sunfreeware has binaries of binutils for install, plus other GNU goodies
> like make, autoconf etc. install all of them and make sure /usr/local/bin
> is FIRST in your path (or remove sun's stuff from the path completely).

> this may not be the answer to your problem, but it is definitely worth a
try

> --
> u n d e r a c h i e v e r

This is an excellent comment.

gcc IS in my $PATH

bash-2.05# echo $PATH
/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/bin:/usr/local/sparc-sun-solari
s2.8
/bin

And ld is version
bash-2.05# which ld
/usr/local/sparc-sun-solaris2.8/bin/ld

&

bash-2.05# ld --version
GNU ld 2.11.2
Copyright 2001 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
  Supported emulations:
   elf32_sparc
   elf64_sparc

It would appear I am already using the GNU version of ld.

I'll certainlytry updating bin utils.

Also what SUN package is the the cc binarys in (I can't remember SUNWdev ??)

More suggestions welcome.

Thanks,

Matt.

 
 
 

apache 1.3.26 -on Solaris 8 with GCC 3.1 ./configure failure ?

Post by Matthew Darc » Tue, 09 Jul 2002 04:02:08




> >  helpe
> >  rs/dummy helpers/dummy.c   -lsocket -lnsl -lpthread

/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../../sparc-sun-solari

Quote:> >  s2.8
> >  /bin/ld: cannot open values-Xa.o: No such file or directory
> >  collect2: ld returned 1 exit status
> >  make: *** [dummy] Error 1
> > ============= End of Error Report =============

> You don't have SUNWarc which contains the file values-Xa.o:

> bash-2.03$ pkgchk -l -p /usr/ccs/lib/values-Xa.o
> Pathname: /usr/ccs/lib/values-Xa.o
> Type: symbolic link
> Source of link: ../../lib/values-Xa.o
> Referenced by the following packages:
>         SUNWarc
> Current status: installed

> bash-2.03$

> Hope this helps,

> --
> Ole Michaelsen, Darmstadt, Germany
> http://www.fys.ku.dk/~omic

This was a MASSIVE HELP !!!!

I found I was missing

                         SUNWhea
                        SUNWsrh
                        SUNWbtool
                        SUNWscpu
                        SUNWtoo
                        SUNWlibm
                        SUNWsprot
                        SUNWarc

which I am told Gcc needs to work %100

I managed to get through the configure part this time. and ran "make all"

It didn't take long to fail though with this error.

===> src/ap
gcc -c  -I../os/unix -I../include   -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expa
t-l
te `../apaci` ap_cpystrn.c
gcc -c  -I../os/unix -I../include   -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expa
t-l
te `../apaci` ap_execve.c
gcc -c  -I../os/unix -I../include   -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expa
t-l
te `../apaci` ap_fnmatch.c
gcc -c  -I../os/unix -I../include   -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expa
t-l
te `../apaci` ap_getpass.c
gcc -c  -I../os/unix -I../include   -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expa
t-l
te `../apaci` ap_md5c.c
gcc -c  -I../os/unix -I../include   -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expa
t-l
te `../apaci` ap_signal.c
gcc -c  -I../os/unix -I../include   -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expa
t-l
te `../apaci` ap_slack.c
gcc -c  -I../os/unix -I../include   -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expa
t-l
te `../apaci` ap_snprintf.c
In file included from ap_snprintf.c:75:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/include/math.h:25:26:
iso/math_
so.h: No such file or directory
make[3]: *** [ap_snprintf.o] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/usr/local/src/apache_1.3.26/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/src/apache_1.3.26'
make: *** [build] Error 2

looks like math_so.h is missing from the src/ap dir ? Why would this be ??
Thanks,

Matt

 
 
 

1. apache 1.3.26 gcc 3.1 solaris 8 make all failing

Hi,

After much help from this group (thanks)

I finally managed to get my apache build to create the needed makefiles.

I ran "make all" and got this.

===> src/ap
gcc -c  -I../os/unix -I../include   -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expa
t-l
te `../apaci` ap_cpystrn.c
gcc -c  -I../os/unix -I../include   -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expa
t-l
te `../apaci` ap_execve.c
gcc -c  -I../os/unix -I../include   -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expa
t-l
te `../apaci` ap_fnmatch.c
gcc -c  -I../os/unix -I../include   -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expa
t-l
te `../apaci` ap_getpass.c
gcc -c  -I../os/unix -I../include   -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expa
t-l
te `../apaci` ap_md5c.c
gcc -c  -I../os/unix -I../include   -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expa
t-l
te `../apaci` ap_signal.c
gcc -c  -I../os/unix -I../include   -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expa
t-l
te `../apaci` ap_slack.c
gcc -c  -I../os/unix -I../include   -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expa
t-l
te `../apaci` ap_snprintf.c
In file included from ap_snprintf.c:75:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/include/math.h:25:26:
iso/math_
so.h: No such file or directory
make[3]: *** [ap_snprintf.o] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/usr/local/src/apache_1.3.26/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/src/apache_1.3.26'
make: *** [build] Error 2

Looks like math_so.h is failing or missing ?

Any ideas or suggestions ?

Thanks,

Matt.

2. Ipchains firewall and transparent/interception squid proxy question

3. Problems with Apache 1.3.26 build on Solaris 7 (and Websphere integration)

4. bugs...

5. Cant compile Apache 1.3.26 on Solaris 7 (2.7)

6. at daemon fails to startup

7. Apache 1.3.26 and PHP on Solaris 7

8. nsrinfo

9. Apache 1.3.26 in Sun Solaris 8 package?

10. Apache 1.3.26+ mod_ssl/OpenSSL + PHP4/MySQL on Solaris 9

11. Building mod_snmp as DSO with apache 1.3.26 on Solaris 8

12. Apache 1.3.26 binary for Solaris 8 ?

13. Apache apache 1.3.26 config file