Problems with building Apache 2.0.35 on Solaris 5.8

Problems with building Apache 2.0.35 on Solaris 5.8

Post by Shann » Sun, 05 May 2002 05:16:20



Hi all,
I'm hoping this is a really easy question for someone to answer.  I've
compiled Apache2 on my Solaris box.  That went fine.  Going onto the
next step 'make' produced and 'error: unknown opcode' and an
'error:unknown syntax' (the complete make output is below)

Any ideas on what is going wrong.  I've been fighting with this thing
for 2 days now and I've got brain-fry.

Thanks for any suggestions,
Shannon

Making all in srclib
make[1]: Entering directory `/usr/local/httpd-2.0.35/srclib'
Making all in apr
make[2]: Entering directory `/usr/local/httpd-2.0.35/srclib/apr'
Making all in strings
make[3]: Entering directory
`/usr/local/httpd-2.0.35/srclib/apr/strings'
make[4]: Entering directory
`/usr/local/httpd-2.0.35/srclib/apr/strings'
/bin/sh /usr/local/httpd-2.0.35/srclib/apr/libtool --silent
--mode=compile gcc -
g -O2 -pthreads   -DHAVE_CONFIG_H -DSOLARIS2=8
-D_POSIX_PTHREAD_SEMANTICS -D_REE
NTRANT   -I../include -I../include/arch/unix  -c apr_snprintf.c &&
touch apr_snp
rintf.lo
/usr/ccs/bin/as: "/var/tmp/ccjgACnQ.s", line 4219: error: unknown
opcode ".subse
ction"
/usr/ccs/bin/as: "/var/tmp/ccjgACnQ.s", line 4219: error: statement
syntax
/usr/ccs/bin/as: "/var/tmp/ccjgACnQ.s", line 4343: error: unknown
opcode ".previ
ous"
/usr/ccs/bin/as: "/var/tmp/ccjgACnQ.s", line 4343: error: statement
syntax
make[4]: *** [apr_snprintf.lo] Error 1
make[4]: Leaving directory
`/usr/local/httpd-2.0.35/srclib/apr/strings'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/usr/local/httpd-2.0.35/srclib/apr/strings'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/httpd-2.0.35/srclib/apr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/httpd-2.0.35/srclib'
make: *** [all-recursive] Error 1

 
 
 

Problems with building Apache 2.0.35 on Solaris 5.8

Post by Joshua Sliv » Sun, 05 May 2002 05:23:34



> Hi all,
> I'm hoping this is a really easy question for someone to answer.  I've
> compiled Apache2 on my Solaris box.  That went fine.  Going onto the
> next step 'make' produced and 'error: unknown opcode' and an
> 'error:unknown syntax' (the complete make output is below)
> Any ideas on what is going wrong.  I've been fighting with this thing
> for 2 days now and I've got brain-fry.

Unfortunately, there seem to be a buch of problems, mixing bugs in
apache and bugs in gcc.  Check the apache bug database for some
suggestions.  Some people have better luck when they use the full gnu
toolset (including gbu-binutils) rather than mixing gcc with solaris
"as".  Also, you can try the alpha version of the next release:

http://httpd.apache.org/dev/dist/

--
Joshua Slive

Apache HTTP Server Users Mailing List: http://httpd.apache.org/userslist.html

 
 
 

Problems with building Apache 2.0.35 on Solaris 5.8

Post by Neil W Ricker » Sun, 05 May 2002 06:40:45



>I'm hoping this is a really easy question for someone to answer.  I've
>compiled Apache2 on my Solaris box.  That went fine.  Going onto the
>next step 'make' produced and 'error: unknown opcode' and an
>'error:unknown syntax' (the complete make output is below)

That usually means that the gcc you downloaded was intended to be
used with gas (the gnu assembler), but you are using with solaris
as.  Either install gnu binutils or find a different gcc compiler.
 
 
 

Problems with building Apache 2.0.35 on Solaris 5.8

Post by hug » Thu, 09 May 2002 12:44:20


My situation is similar, though the platform is RedHat Linux 7.1 2.96-98,
gcc version 2.96.

I ran "configure" from httpd-2.0.36/ and the first make error message
informed that APR_PATH_MAX
had not been determined, apparently because <linux/limits.h> could not be found
(I found it lurking in /usr/src/linux-2.4.7-10/include/linux/limits.h)

To prove I could be right, I hard-coded the (absolute) path inside the including
file, and lo, make found a new problem with "incomplete type" , 2 files later,
for "sockaddr_in sin".

Isn't the configure script provided by the Apache folks supposed to overcome
differences in linux distributions?

I experienced the same problems with httpd-2.0.35.

Hugh
Mercado Del Camionero


> Hi all,
> I'm hoping this is a really easy question for someone to answer.  I've
> compiled Apache2 on my Solaris box.  That went fine.  Going onto the
> next step 'make' produced and 'error: unknown opcode' and an
> 'error:unknown syntax' (the complete make output is below)

> Any ideas on what is going wrong.  I've been fighting with this thing
> for 2 days now and I've got brain-fry.

> Thanks for any suggestions,
> Shannon

> Making all in srclib
> make[1]: Entering directory `/usr/local/httpd-2.0.35/srclib'
> Making all in apr
> make[2]: Entering directory `/usr/local/httpd-2.0.35/srclib/apr'
> Making all in strings
> make[3]: Entering directory
> `/usr/local/httpd-2.0.35/srclib/apr/strings'
> make[4]: Entering directory
> `/usr/local/httpd-2.0.35/srclib/apr/strings'
> /bin/sh /usr/local/httpd-2.0.35/srclib/apr/libtool --silent
> --mode=compile gcc -
> g -O2 -pthreads   -DHAVE_CONFIG_H -DSOLARIS2=8
> -D_POSIX_PTHREAD_SEMANTICS -D_REE
> NTRANT   -I../include -I../include/arch/unix  -c apr_snprintf.c &&
> touch apr_snp
> rintf.lo
> /usr/ccs/bin/as: "/var/tmp/ccjgACnQ.s", line 4219: error: unknown
> opcode ".subse
> ction"
> /usr/ccs/bin/as: "/var/tmp/ccjgACnQ.s", line 4219: error: statement
> syntax
> /usr/ccs/bin/as: "/var/tmp/ccjgACnQ.s", line 4343: error: unknown
> opcode ".previ
> ous"
> /usr/ccs/bin/as: "/var/tmp/ccjgACnQ.s", line 4343: error: statement
> syntax
> make[4]: *** [apr_snprintf.lo] Error 1
> make[4]: Leaving directory
> `/usr/local/httpd-2.0.35/srclib/apr/strings'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory
> `/usr/local/httpd-2.0.35/srclib/apr/strings'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/usr/local/httpd-2.0.35/srclib/apr'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/httpd-2.0.35/srclib'
> make: *** [all-recursive] Error 1

 
 
 

1. Configure "stuck" with Apache2.035 and Solaris 5.8

Hello

I have been trying to build Apache 2.035 on my Sun SPARC running Solaris 8

It runs through the normal stuff and then SITS and does nothing
at the line "Check for compiler flasgs...."

 e.g.

$  ./configure

blah blah ... blah
....
creating libtool
loading cache /usr/local/src/httpd-2.0.35/./config.cache

Check for compiler flags...

It will sit for 8 hours and not do anything more

I was using an older version of gcc, 2.9 or so, and I just
upgraded to gcc 3.0.3, as well as the latest versions
of libtool 1.04 and autoconf 2.53 off of sunfreeware.

Same problem.

I have been using and building apache for years and years now
and never ran into this.  Solaris 8 is patched up to MU 5.

Tried it on another Sparc and have the same troubles.

Anyone else run into this?  Any tips appreciated:

replies to


without the .nospam

2. Creator 3d Card...

3. Fixed: Configure "stuck" with Apache2.035 and Solaris 5.8

4. HELP:PII 400Mhz with MilleniumII AGP

5. building TkWWW on solaris 2.3 with gcc2.5.8

6. stable rsync tree

7. problem compiling Apache HTTPD 2.0.35 in Solaris 8 (sparc)

8. Adaptec 2940 + Quantum HD

9. problem compiling getaddrinfo on solaris 5.6, solaris 5.8

10. Problem adding DSO module to Apache 2.0.35 on 64 bit Solaris 8 2/02

11. Apache 2.0.35, building with SSL

12. Problem installing Apache 2.0.35 on Solaris 8

13. Problems compiling Apache 2.0.35 on Solaris 2.7