problem compiling Apache HTTPD 2.0.35 in Solaris 8 (sparc)

problem compiling Apache HTTPD 2.0.35 in Solaris 8 (sparc)

Post by Jeff Jacobs » Sat, 04 May 2002 23:31:36



Hi,

I've searched through the newsgroups looking for an already posted
solution and couldn't find one.

I'm trying to make Apache HTTPD 2.0.35 in Solaris 8 (sparc), using gcc
version 3.03. I'm getting the following error when make enters the
strings directory. Any help or advice would be GREATLY appreciated!

Thanks,
Jeff

======================
Making all in strings
/bin/sh /usr/local/src/httpd-apache_2.0.35/srclib/apr/libtool --silent
--mode=compile gcc -g -O2 -pthreads   -DHAVE_CONFIG_H -DSOLARIS2=8
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT   -I../include
-I../include/arch/unix  -c apr_snprintf.c && touch apr_snprintf.lo
/usr/ccs/bin/as: "/var/tmp/ccokjxnQ.s", line 4227: error: unknown
opcode ".subsection"
/usr/ccs/bin/as: "/var/tmp/ccokjxnQ.s", line 4227: error: statement
syntax
/usr/ccs/bin/as: "/var/tmp/ccokjxnQ.s", line 4351: error: unknown
opcode ".previous"
/usr/ccs/bin/as: "/var/tmp/ccokjxnQ.s", line 4351: error: statement
syntax
*** Error code 1
make: Fatal error: Command failed for target `apr_snprintf.lo'
Current working directory
/usr/local/src/httpd-apache_2.0.35/srclib/apr/strings
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory
/usr/local/src/httpd-apache_2.0.35/srclib/apr/strings
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory
/usr/local/src/httpd-apache_2.0.35/srclib/apr
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/local/src/httpd-apache_2.0.35/srclib
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'

 
 
 

problem compiling Apache HTTPD 2.0.35 in Solaris 8 (sparc)

Post by Oncal » Sun, 05 May 2002 00:22:40


Quote:> Making all in strings
> /bin/sh /usr/local/src/httpd-apache_2.0.35/srclib/apr/libtool --silent
> --mode=compile gcc -g -O2 -pthreads   -DHAVE_CONFIG_H -DSOLARIS2=8
> -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT   -I../include
> -I../include/arch/unix  -c apr_snprintf.c && touch apr_snprintf.lo
> /usr/ccs/bin/as: "/var/tmp/ccokjxnQ.s", line 4227: error: unknown
> opcode ".subsection"
> /usr/ccs/bin/as: "/var/tmp/ccokjxnQ.s", line 4227: error: statement
> syntax
> /usr/ccs/bin/as: "/var/tmp/ccokjxnQ.s", line 4351: error: unknown
> opcode ".previous"
> /usr/ccs/bin/as: "/var/tmp/ccokjxnQ.s", line 4351: error: statement
> syntax
> *** Error code 1
> make: Fatal error: Command failed for target `apr_snprintf.lo'
> Current working directory
> /usr/local/src/httpd-apache_2.0.35/srclib/apr/strings
> *** Error code 1
> make: Fatal error: Command failed for target `all-recursive'
> Current working directory
> /usr/local/src/httpd-apache_2.0.35/srclib/apr/strings
> *** Error code 1
> make: Fatal error: Command failed for target `all-recursive'
> Current working directory
> /usr/local/src/httpd-apache_2.0.35/srclib/apr
> *** Error code 1
> make: Fatal error: Command failed for target `all-recursive'
> Current working directory /usr/local/src/httpd-apache_2.0.35/srclib
> *** Error code 1
> make: Fatal error: Command failed for target `all-recursive'

Your problem is that the Solaris-supplied assembler ( /usr/ccs/bin/as ) is
in conflict with the GNU compiler (gcc) you installed.  Your options are
either using the GNU assembler instead of the Solaris assembler, or using
another GNU compiler which works with your Solaris-supplied assembler.

-- OnCall
--
Fight the ITAA's campaign to drive engineer wages and employment down
http://www.geocities.com/oncallguild

 
 
 

problem compiling Apache HTTPD 2.0.35 in Solaris 8 (sparc)

Post by Jeff Jacobs » Sun, 05 May 2002 10:00:11



> Your problem is that the Solaris-supplied assembler ( /usr/ccs/bin/as ) is
> in conflict with the GNU compiler (gcc) you installed.  Your options are
> either using the GNU assembler instead of the Solaris assembler, or using
> another GNU compiler which works with your Solaris-supplied assembler.

> -- OnCall

Thank you, that was the problem. I installed the GNU binutils
(http://www.sunfreeware.com), which has a GNU version of "as", and was
eventually able to get Apache HTTPD 1.3.24 to compile and install.

I got past the "as" problem while compiling Apache HTTPD 2.0.35, but
then it blew up trying to build something else which was missing db.h
and had some invalid syntax in a .c module. I threw in the towel and
went with the older version of Apache.

Regards,
Jeff

 
 
 

1. Compiling Apache HTTPD 2.0.35 on Solaris 2.8

I am having trouble getting Apache HTTPD 2.0.35 to compile on a Sun
Solaris 2.8 system, with GNU gcc, make, bintools, etc.  I am getting
the following error in the apr section, with libtool reporting an
error of:

make[3]: Entering directory
`/usr/local/src/NMS/httpd-2.0.35/srclib/apr'
/bin/sh /usr/local/src/NMS/httpd-2.0.35/srclib/apr/libtool --silent
--mode=link
gcc -g -O2 -pthreads -DHAVE_CONFIG_H -DSOLARIS2=8
-D_POSIX_PTHREAD_SEMANTICS -D_
REENTRANT -I./include -I../include -o libapr.la -rpath refix/lib
strings/apr_cpy
strn.lo strings/apr_fnmatch.lo strings/apr_snprintf.lo
strings/apr_strings.lo st
... snip ...
libtool: link: only absolute run-paths are allowed

the configure command I am using is:
./configure --enable-layout=USAP --enable-ssl
--with-ssl=/usr/local/lib

where the USAP layout is:
<Layout USAP>
    prefix:        /usr/local
    exec_prefix:   $prefix
    bindir:        $exec_prefix/bin
    sbindir:       $exec_prefix/bin
    libexecdir:    $exec_prefix/libexec
    mandir:        $prefix/man
    sysconfdir:    $prefix/etc
    datadir:       $prefix/www
    iconsdir:      $datadir/icons
    htdocsdir:     $datadir/html
    manualdir:     $mandir/info
    cgidir:        $datadir/cgi-bin
    includedir:    $prefix/include
    localstatedir: $datadir
    runtimedir:    $localstatedir/log
    logfiledir:    $localstatedir/log
    proxycachedir: $localstatedir/proxy
</Layout>

and the SSL lib is:
openssl-0.9.6c

configured with the following:
./config --prefix=/usr/local

and installed with no errors

Any ideas as to why this is giving me an error?
I was able to get the old HTTPD 1.3 installed with no problems, so it
seems to be an error specific to HTTPD 2.0.

thanks,
john

John Patrick Carroll
LAN/WAN Specialist
Raytheon Polar Services Company

2. Can Loghost's syslogd steer multiple remote /var/adm/messages to multiple files?

3. Problems compiling Apache 2.0.35 on Solaris 2.7

4. Problems with user web directory access with Apache !?!?!?

5. Problem compiling Apache 2.0.35 on AIX 5.1

6. Need information on Veritas

7. Apache 2.0.35 LoadModule paths wrongly hard-coded - httpd.conf fails to use $libexecdir

8. Apache 0.6.5b with gcc 2.6.3 on SunOS 4.3.1

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

10. Problems with building Apache 2.0.35 on Solaris 5.8

11. Problem installing Apache 2.0.35 on Solaris 8

12. Apache 2.0.35 compile without mod_autoindex

13. compiled/installed lasted Apache on Linux 2.0.35 kernel