Mailing List Archive

Installing 1.3.22 on Solaris 2.8
I'm using gcc and the ar from /usr/ccs/bin

Everything goes along fine until I do make.... and this is what I get.

Any ideas!?


gcc -c -I../os/unix -I../include -DSOLARIS2=280 -DUSE_EXPAT
-I../lib/expat-lite -DNO_DL_NEEDED `../apaci` ap_slack.c
gcc -c -I../os/unix -I../include -DSOLARIS2=280 -DUSE_EXPAT
-I../lib/expat-lite -DNO_DL_NEEDED `../apaci` ap_snprintf.c
/usr/ccs/bin/as: "/var/tmp/ccVSVPwn.s", line 3318: error: unknown opcode
".subsection"
/usr/ccs/bin/as: "/var/tmp/ccVSVPwn.s", line 3318: error: statement syntax
/usr/ccs/bin/as: "/var/tmp/ccVSVPwn.s", line 3442: error: unknown opcode
".previous"
/usr/ccs/bin/as: "/var/tmp/ccVSVPwn.s", line 3442: error: statement syntax
*** Error code 1
make: Fatal error: Command failed for target `ap_snprintf.o'
Current working directory /usr/local/apache_1.3.22/src/ap
*** Error code 1
make: Fatal error: Command failed for target `subdirs'
Current working directory /usr/local/apache_1.3.22/src
*** Error code 1
make: Fatal error: Command failed for target `build-std'
Current working directory /usr/local/apache_1.3.22
*** Error code 1
make: Fatal error: Command failed for target `build'
Re: Installing 1.3.22 on Solaris 2.8 [ In reply to ]
Jim Priovolos 301-435-6137 wrote:
>
> I'm using gcc and the ar from /usr/ccs/bin
>
> Everything goes along fine until I do make.... and this is what I get.
>
> Any ideas!?
>
>
> gcc -c -I../os/unix -I../include -DSOLARIS2=280 -DUSE_EXPAT
> -I../lib/expat-lite -DNO_DL_NEEDED `../apaci` ap_slack.c
> gcc -c -I../os/unix -I../include -DSOLARIS2=280 -DUSE_EXPAT
> -I../lib/expat-lite -DNO_DL_NEEDED `../apaci` ap_snprintf.c
> /usr/ccs/bin/as: "/var/tmp/ccVSVPwn.s", line 3318: error: unknown opcode
> ".subsection"
etc.

Another Solaris 2.8 fan!... Make is calling "as" - the assembler - which
then barfs. Did you make any changes or use any interesting options to
configure?

Rgds,

OWen Boyle.
Re: Installing 1.3.22 on Solaris 2.8 [ In reply to ]
>Mailing-List: contact users-help@httpd.apache.org; run by ezmlm
>list-help: <mailto:users-help@httpd.apache.org>
>list-unsubscribe: <mailto:users-unsubscribe@httpd.apache.org>
>list-post: <mailto:users@httpd.apache.org>
>Delivered-To: mailing list users@httpd.apache.org
>X-Authentication-Warning: bull1.bourse.ch: nobody set sender to <obo@bourse.ch>
using -f
>Date: Mon, 26 Nov 2001 16:02:44 +0100
>From: Owen Boyle <obo@bourse.ch>
>X-Accept-Language: en
>MIME-Version: 1.0
>To: users@httpd.apache.org
>Subject: Re: Installing 1.3.22 on Solaris 2.8
>Content-Transfer-Encoding: 7bit
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>
>Jim Priovolos 301-435-6137 wrote:
>>
>> I'm using gcc and the ar from /usr/ccs/bin
>>
>> Everything goes along fine until I do make.... and this is what I get.
>>
>> Any ideas!?
>>
>>
>> gcc -c -I../os/unix -I../include -DSOLARIS2=280 -DUSE_EXPAT
>> -I../lib/expat-lite -DNO_DL_NEEDED `../apaci` ap_slack.c
>> gcc -c -I../os/unix -I../include -DSOLARIS2=280 -DUSE_EXPAT
>> -I../lib/expat-lite -DNO_DL_NEEDED `../apaci` ap_snprintf.c
>> /usr/ccs/bin/as: "/var/tmp/ccVSVPwn.s", line 3318: error: unknown opcode
>> ".subsection"
>etc.
>
>Another Solaris 2.8 fan!... Make is calling "as" - the assembler - which
>then barfs. Did you make any changes or use any interesting options to
>configure?
>
>Rgds,
>
>OWen Boyle.
>

I like to keep current in the OS area when possible.

correct, as not ar.. good eye!

Being a true believe in the KISS principle, I am using all defaults.

I did ./configure --prefix=/usr/local/bin/apache_1.3.22
then... make
then I am very sad


-Jim
Re: Installing 1.3.22 on Solaris 2.8 [ In reply to ]
Jim Priovolos 301-435-6137 wrote:

> I did ./configure --prefix=/usr/local/bin/apache_1.3.22
> then... make
> then I am very sad

Strange - it compiles clean on my machine (also Solaris 2.8). Try
re-untarring and doing a totally vanilla configure and make (i.e. don't
even set the prefix)...

Rgds,

Owen Boyle.
Re: Installing 1.3.22 on Solaris 2.8 [ In reply to ]
On Mon, 26 Nov 2001, Owen Boyle <obo@bourse.ch> wrote,

> Jim Priovolos 301-435-6137 wrote:
>
> > I did ./configure --prefix=/usr/local/bin/apache_1.3.22
> > then... make
> > then I am very sad
>
> Strange - it compiles clean on my machine (also Solaris 2.8). Try
> re-untarring and doing a totally vanilla configure and make (i.e. don't
> even set the prefix)...

It's not a common prefix anyway :-)


san
--
Trabas - http://www.trabas.com
Re: Installing 1.3.22 on Solaris 2.8 [ In reply to ]
>Date: Mon, 26 Nov 2001 17:51:07 +0100
>From: Owen Boyle <obo@bourse.ch>
>X-Accept-Language: en
>MIME-Version: 1.0
>To: users@httpd.apache.org
>Subject: Re: Installing 1.3.22 on Solaris 2.8
>Content-Transfer-Encoding: 7bit
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>
>Jim Priovolos wrote:
>
>> I did ./configure --prefix=/usr/local/bin/apache_1.3.22
>> then... make
>> then I am very sad
>
>Strange - it compiles clean on my machine (also Solaris 2.8). Try
>re-untarring and doing a totally vanilla configure and make (i.e. don't
>even set the prefix)...
>
>Rgds,
>
>Owen Boyle.
>

I did a whole new download and gunzip and tar x and ./configure with no prefix
and it still does the same thing as soon as it hits the as. I was wondering if
the ccs/bin/as is a problem.

......
gcc -c -I../os/unix -I../include -DSOLARIS2=280 -DUSE_EXPAT
-I../lib/expat-lite -DNO_DL_NEEDED `../apaci` ap_slack.c
gcc -c -I../os/unix -I../include -DSOLARIS2=280 -DUSE_EXPAT
-I../lib/expat-lite -DNO_DL_NEEDED `../apaci` ap_snprintf.c
/usr/ccs/bin/as: "/var/tmp/ccpIC9eq.s", line 3318: error: unknown opcode
".subsection"
/usr/ccs/bin/as: "/var/tmp/ccpIC9eq.s", line 3318: error: statement syntax
/usr/ccs/bin/as: "/var/tmp/ccpIC9eq.s", line 3442: error: unknown opcode
".previous"
/usr/ccs/bin/as: "/var/tmp/ccpIC9eq.s", line 3442: error: statement syntax
*** Error code 1
make: Fatal error: Command failed for target `ap_snprintf.o'
Current working directory /usr/local/serv/apache_1.3.22/src/ap
*** Error code 1
make: Fatal error: Command failed for target `subdirs'
Current working directory /usr/local/serv/apache_1.3.22/src
*** Error code 1
make: Fatal error: Command failed for target `build-std'
Current working directory /usr/local/serv/apache_1.3.22
*** Error code 1
make: Fatal error: Command failed for target `build'



-Jim
Re: Installing 1.3.22 on Solaris 2.8 [ In reply to ]
Jim Priovolos wrote:
> I did a whole new download and gunzip and tar x and ./configure with no prefix
> and it still does the same thing as soon as it hits the as. I was wondering if
> the ccs/bin/as is a problem.

I think you must be right. Try checking the version. I get:

$ /usr/ccs/bin/as -V
as: Sun WorkShop 6 99/08/18

Do you have gcc?

I have:

$ /usr/local/bin/gcc -v
gcc version 2.95.2 19991024 (release)

check "ar" too:

$ /usr/ccs/bin/ar -V
ar: Software Generation Utilities (SGU) Solaris-ELF (4.0)

Rgds,

owen Boyle.
Re: Installing 1.3.22 on Solaris 2.8 [ In reply to ]
>Date: Tue, 27 Nov 2001 17:09:36 +0100
>From: Owen Boyle <obo@bourse.ch>
>X-Accept-Language: en
>MIME-Version: 1.0
>To: users@httpd.apache.org
>Subject: Re: Installing 1.3.22 on Solaris 2.8
>Content-Transfer-Encoding: 7bit
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>
>Jim Priovolos wrote:
>> I did a whole new download and gunzip and tar x and ./configure with no
prefix
>> and it still does the same thing as soon as it hits the as. I was wondering
if
>> the ccs/bin/as is a problem.
>
>I think you must be right. Try checking the version. I get:
>
>$ /usr/ccs/bin/as -V
>as: Sun WorkShop 6 99/08/18
>
>Do you have gcc?
>
>I have:
>
>$ /usr/local/bin/gcc -v
>gcc version 2.95.2 19991024 (release)
>
>check "ar" too:
>
>$ /usr/ccs/bin/ar -V
>ar: Software Generation Utilities (SGU) Solaris-ELF (4.0)
>
>Rgds,
>
>owen Boyle.
>

Looks the same here....

# /usr/ccs/bin/as -V
/usr/ccs/bin/as: Sun WorkShop 6 99/08/18
/usr/ccs/bin/as: error: no input filename given
usage: /usr/ccs/bin/as [-V] [-Q{y,n}] [-f[O][if]#] [-q] [-s]
[-S] [-K {pic,PIC}] [-o objfile] [-L] [-T]
[-P [[-Ipath] [-Dname] [-Dname=def] [-Uname]]...]
[-m [-Ym,path]] [-n] [-xF] [-xarch=v7] [-xarch=v8] [-xarch=v8a]
[-xarch=v8plus] [-xarch=v8plusa] [-xarch=v8plusb] [-xarch=v9] [-xarch=v9a]
[-xarch=v9b] [-xcode={pic13,pic32}] file.s...


# /usr/local/bin/gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0.2/specs
Configured with: ../configure --with-as=/usr/local/bin/as
--with-ld=/usr/local/bin/ld --enable-libgcj
Thread model: posix
gcc version 3.0.2

# /usr/ccs/bin/ar -V
ar: Software Generation Utilities (SGU) Solaris-ELF (4.0)
usage: ar -d[-vV] archive file ...
ar -m[-abivV] [posname] archive file ...
ar -p[-vV][-s] archive [file ...]
ar -q[-cuvV] [-abi] [posname] [file ...]
ar -r[-cuvV] [-abi] [posname] [file ...]
ar -t[-vV][-s] archive [file ...]
ar -x[-vV][-sCT] archive [file ...]
#
Re: Installing 1.3.22 on Solaris 2.8 [ In reply to ]
Jim Priovolos wrote:

> # /usr/local/bin/gcc -v
> Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0.2/specs
> Configured with: ../configure --with-as=/usr/local/bin/as
> --with-ld=/usr/local/bin/ld --enable-libgcj
> Thread model: posix
> gcc version 3.0.2

That's an up-to-date gcc alright - I didn't know it had been upgraded!
Anyway, it looks funny to me that you configured gcc
"--with-as=/usr/local/bin/as" and yet when you run it you get a
complaint about /usr/ccs/bin/as...

Do you have a strong need to have "as" available to gcc? If not, perhaps
try recompiling gcc without "as". If you do need it, try
"--with-as=/usr/ccs/bin/as".

In any case, it looks like your gcc is causing the problem. Maybe try a
vanilla configure and compile on gcc as well?

Rgds,

owen Boyle.
Re: Installing 1.3.22 on Solaris 2.8 [ In reply to ]
>Date: Tue, 27 Nov 2001 17:25:53 +0100
>From: Owen Boyle <obo@bourse.ch>
>X-Accept-Language: en
>MIME-Version: 1.0
>To: users@httpd.apache.org
>Subject: Re: Installing 1.3.22 on Solaris 2.8
>Content-Transfer-Encoding: 7bit
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>

>
>In any case, it looks like your gcc is causing the problem. Maybe try a
>vanilla configure and compile on gcc as well?
>
>Rgds,
>
>owen Boyle.
>

I'm using gcc 2.95 now and it's compiling. But when I untar it it sets the owner
and group to 1088? and it gives me this in the error file when it starts?

Tue Nov 27 16:49:10 2001] [alert] (22)Invalid argument: setgid: unable to set g
roup id to Group 4294967295
[Tue Nov 27 16:49:10 2001] [alert] (22)Invalid argument: setgid: unable to set g
roup id to Group 4294967295
[Tue Nov 27 16:49:10 2001] [alert] (22)Invalid argument: setgid: unable to set g
roup id to Group 4294967295
[Tue Nov 27 16:49:10 2001] [alert] (22)Invalid argument: setgid: unable to set g
roup id to Group 4294967295
[Tue Nov 27 16:49:10 2001] [alert] (22)Invalid argument: setgid: unable to set g
roup id to Group 4294967295
[Tue Nov 27 16:49:10 2001] [notice] Apache/1.3.22 (Unix) configured -- resuming
normal operations
[Tue Nov 27 16:49:10 2001] [notice] Accept mutex: fcntl (Default: fcntl)
[Tue Nov 27 16:49:10 2001] [alert] Child 6992 returned a Fatal error...
Apache is exiting!
Re: Installing 1.3.22 on Solaris 2.8 [ In reply to ]
Jim Priovolos wrote:
>
> I'm using gcc 2.95 now and it's compiling. But when I untar it it sets the owner
> and group to 1088?

This is just the user/group ids from the system on which the tar-file
was built. Don't worry about it (you usually throw away the sources
after compilation and installation). If you do worry about it "#chown -R
user:group <tar-dir>" where user=you and group=your-group will fix it.

> and it gives me this in the error file when it starts?
>
> Tue Nov 27 16:49:10 2001] [alert] (22)Invalid argument: setgid: unable to set g
> roup id to Group 4294967295

This is because the Group directive in the default httpd.conf is set to
"#-1". Change it to a group that exists (e.g. "nobody") and it should
work - BTW you are the 5th user this month to get stung by this...

I usually create a user "apache" for the User directive as well, i.e.

User apache
Group nobody

Rgds,

Owen Boyle.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Installing 1.3.22 on Solaris 2.8 [ In reply to ]
>Mailing-List: contact users-help@httpd.apache.org; run by ezmlm
>list-help: <mailto:users-help@httpd.apache.org>
>list-unsubscribe: <mailto:users-unsubscribe@httpd.apache.org>
>list-post: <mailto:users@httpd.apache.org>
>Delivered-To: mailing list users@httpd.apache.org
>X-Authentication-Warning: bull1.bourse.ch: nobody set sender to <obo@bourse.ch>
using -f
>Date: Wed, 28 Nov 2001 10:10:55 +0100
>From: Owen Boyle <obo@bourse.ch>
>X-Accept-Language: en
>MIME-Version: 1.0
>To: users@httpd.apache.org
>Subject: Re: Installing 1.3.22 on Solaris 2.8
>Content-Transfer-Encoding: 7bit
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>
>Jim Priovolos wrote:
>>
>> I'm using gcc 2.95 now and it's compiling. But when I untar it it sets the
owner
>> and group to 1088?
>
>This is just the user/group ids from the system on which the tar-file
>was built. Don't worry about it (you usually throw away the sources
>after compilation and installation). If you do worry about it "#chown -R
>user:group <tar-dir>" where user=you and group=your-group will fix it.
>
>> and it gives me this in the error file when it starts?
>>
>> Tue Nov 27 16:49:10 2001] [alert] (22)Invalid argument: setgid: unable to set
g
>> roup id to Group 4294967295
>
>This is because the Group directive in the default httpd.conf is set to
>"#-1". Change it to a group that exists (e.g. "nobody") and it should
>work - BTW you are the 5th user this month to get stung by this...
>
>I usually create a user "apache" for the User directive as well, i.e.
>
>User apache
>Group nobody
>
>Rgds,

Thanks for all the help Owen. Thats a great idea too about the user apache. It's
up and running.

-Jim


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org