You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by G Kitagawa <ki...@gmail.com> on 2013/02/08 20:26:56 UTC
Tomcat 6.0.36: configure/make of jsvc on Solaris 10
Hi -
I'm new to Tomcat and Apache.
Hardware: Dual Proc, UltraSPARC-IIIi, 8GB memory, Sun-Blade-2500
Operating System: Solaris 10 10/09
Java: JRE 1.5.0.0_20-b2
Downloaded/Installed: Apache 2.0.63, Tomcat 6.0.36, Jetspeed 2.2.2,
Maven 2.2.1, gcc 3.3.2
Apache 2.0.63 runs fine (despite a very basic web page), I can get the
Tomcat page
that states I've set up Tomcat successfully, but I was unable to
create the jsvc daemon.
I've put the <software_name>/bin and <software_lib> in my path and library path.
Also, I've declared the following:
CATALINA_HOME=/opt/apache-tomcat-6.0.36
JAVA_HOME=/usr/java
CATALINA_TMPDIR=/opt/apache-tomcat-6.0.36/temp
Following the example from the Tomcat set up page, the configure
script appears to me
(please remember I'm new to Tomcat) to run well. When I do the make (using
/usr/ccs/bin/make), I'm getting errors from jsvc-unix.c, which
reference multiple lines
in siginfo.h (18 lines), signal.h and wait.h. Subsequently, this
fails to build jsvc.
These three files are from /usr/include/sys, and I don't believe that
the syntax is
incorrect (one of the errors is "parse error before "k_siginfo_t",
from siginfo.h,
signal.h and wait.h).
What am I missing in my configuration? What other information can I
supply to you
for additional assistance?
--
Solaris Rules - WinBLOWS
"I never wanted to be anything but an engineer" -- Capt. Montgomery Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 6.0.36: configure/make of jsvc on Solaris 10
Posted by G Kitagawa <ki...@gmail.com>.
On Fri, Feb 8, 2013 at 10:45 AM, Christopher Schultz
<ch...@christopherschultz.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> G,
>
> On 2/8/13 2:26 PM, G Kitagawa wrote:
>> Operating System: Solaris 10 10/09
>>
>> Following the example from the Tomcat set up page, the configure
>> script appears to me (please remember I'm new to Tomcat) to run
>> well. When I do the make (using /usr/ccs/bin/make), I'm getting
>> errors from jsvc-unix.c, which reference multiple lines in
>> siginfo.h (18 lines), signal.h and wait.h.
>
> Can you post a transcript, starting with ./configure?
>
> I've never tried to use a different 'make', but does jsvc require GNU
> make by any chance? I've seen some packages over the years that
> require GNU make (though not necessarily GCC).
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iEYEAREIAAYFAlEVY9kACgkQ9CaO5/Lv0PCSSACghV/wyNV1ShTgaYoZvvAAYUOk
> n8IAn3dRFATWaVpEif+KKRcZdCGV7xEH
> =vTR5
> -----END PGP SIGNATURE-----
As requested:
webserver# pwd
/opt/apache-tomcat-6.0.36/bin/commons-daemon-1.0.10-native-src/unix
webserver# ./configure --with-java=/usr/java
*** Current host ***
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking cached host system type... ok
*** C-Language compilation tools ***
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ranlib... :
checking for strip... :
*** Host support ***
checking C flags dependant on host system type... ok
*** Java compilation tools ***
checking JAVA_HOME... /usr/java
checking for JDK os include directory... solaris
gcc flags added
*** Writing output files ***
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Makedefs
config.status: creating native/Makefile
*** All done ***
Now you can issue "make"
webserver#
webserver# /usr/ccs/bin/make
(cd native; /usr/ccs/bin/make all)
gcc -g -O2 -DOS_SOLARIS -DDSO_DLFCN -DCPU=\"sparc\" -Wall
-Wstrict-prototypes -I/usr/java/include -I/usr/java/include/solaris -c
jsvc-unix.c -o jsvc-unix.o
In file included from /usr/include/sys/signal.h:34,
from /usr/include/signal.h:26,
from jsvc-unix.c:20:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/signal.h:26,
from jsvc-unix.c:20:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from jsvc-unix.c:20:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
In file included from jsvc-unix.c:24:
/usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
*** Error code 1
make: Fatal error: Command failed for target `jsvc-unix.o'
Current working directory
/opt/apache-tomcat-6.0.36/bin/commons-daemon-1.0.10-native-src/unix/native
*** Error code 1
make: Fatal error: Command failed for target `native/all'
webserver#
--
Solaris Rules - WinBLOWS
"I never wanted to be anything but an engineer" -- Capt. Montgomery Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 6.0.36: configure/make of jsvc on Solaris 10
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
G,
On 2/8/13 2:26 PM, G Kitagawa wrote:
> Operating System: Solaris 10 10/09
>
> Following the example from the Tomcat set up page, the configure
> script appears to me (please remember I'm new to Tomcat) to run
> well. When I do the make (using /usr/ccs/bin/make), I'm getting
> errors from jsvc-unix.c, which reference multiple lines in
> siginfo.h (18 lines), signal.h and wait.h.
Can you post a transcript, starting with ./configure?
I've never tried to use a different 'make', but does jsvc require GNU
make by any chance? I've seen some packages over the years that
require GNU make (though not necessarily GCC).
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEAREIAAYFAlEVY9kACgkQ9CaO5/Lv0PCSSACghV/wyNV1ShTgaYoZvvAAYUOk
n8IAn3dRFATWaVpEif+KKRcZdCGV7xEH
=vTR5
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 6.0.36: configure/make of jsvc on Solaris 10
Posted by G Kitagawa <ki...@gmail.com>.
On Fri, Feb 8, 2013 at 9:42 AM, Konstantin Kolinko
<kn...@gmail.com> wrote:
> 2013/2/8 G Kitagawa <ki...@gmail.com>:
>> Hi -
>>
>> I'm new to Tomcat and Apache.
>>
>> Hardware: Dual Proc, UltraSPARC-IIIi, 8GB memory, Sun-Blade-2500
>> Operating System: Solaris 10 10/09
>> Java: JRE 1.5.0.0_20-b2
>> Downloaded/Installed: Apache 2.0.63, Tomcat 6.0.36, Jetspeed 2.2.2,
>> Maven 2.2.1, gcc 3.3.2
>>
>> Apache 2.0.63 runs fine (despite a very basic web page), I can get the
>> Tomcat page
>> that states I've set up Tomcat successfully, but I was unable to
>> create the jsvc daemon.
>>
>> I've put the <software_name>/bin and <software_lib> in my path and library path.
>> Also, I've declared the following:
>> CATALINA_HOME=/opt/apache-tomcat-6.0.36
>> JAVA_HOME=/usr/java
>> CATALINA_TMPDIR=/opt/apache-tomcat-6.0.36/temp
>>
>> Following the example from the Tomcat set up page, the configure
>> script appears to me
>> (please remember I'm new to Tomcat) to run well. When I do the make (using
>> /usr/ccs/bin/make), I'm getting errors from jsvc-unix.c, which
>> reference multiple lines
>> in siginfo.h (18 lines), signal.h and wait.h. Subsequently, this
>> fails to build jsvc.
>> These three files are from /usr/include/sys, and I don't believe that
>> the syntax is
>> incorrect (one of the errors is "parse error before "k_siginfo_t",
>> from siginfo.h,
>> signal.h and wait.h).
>>
>> What am I missing in my configuration? What other information can I
>> supply to you
>> for additional assistance?
>>
>
> 1. jsvc is not part of Tomcat, but is used as is from the Apache
> Commons Daemon project.
>
> Their docs are more authoritative than Tomcat ones and there is a
> later release available for download (1.0.12 vs. 1.0.10 in your
> 6.0.36).
> http://commons.apache.org/daemon/
>
> 2. Once you are successful in building jsvc and will go on to configuring it,
> take "bin/daemon.sh" from a recent version of Tomcat 7.
> That will save you some time.
>
> 3. I think "/usr/java" is a wrong choice for JAVA_HOME. Do you have
> "$JAVA_HOME/bin/java" there?
>
> 4. Java 1.5 has known issues with some code pages (As mentioned in
> Tomcat release notes).
>
> Best regards,
> Konstantin Kolinko
1) Thanks for pointing me to the Apache Commons Daemon. I'll read
it and try.
2) I'll download Tomcat 7.0
3) /usr/java is a symbolic link to /usr/jdk/instances/jdk1.5.0. Should I
not have $JAVA_HOME set to /usr/java?
4) Thanks for this - I'll try and update the version.
--
Solaris Rules - WinBLOWS
"I never wanted to be anything but an engineer" -- Capt. Montgomery Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 6.0.36: configure/make of jsvc on Solaris 10
Posted by Konstantin Kolinko <kn...@gmail.com>.
2013/2/8 G Kitagawa <ki...@gmail.com>:
> Hi -
>
> I'm new to Tomcat and Apache.
>
> Hardware: Dual Proc, UltraSPARC-IIIi, 8GB memory, Sun-Blade-2500
> Operating System: Solaris 10 10/09
> Java: JRE 1.5.0.0_20-b2
> Downloaded/Installed: Apache 2.0.63, Tomcat 6.0.36, Jetspeed 2.2.2,
> Maven 2.2.1, gcc 3.3.2
>
> Apache 2.0.63 runs fine (despite a very basic web page), I can get the
> Tomcat page
> that states I've set up Tomcat successfully, but I was unable to
> create the jsvc daemon.
>
> I've put the <software_name>/bin and <software_lib> in my path and library path.
> Also, I've declared the following:
> CATALINA_HOME=/opt/apache-tomcat-6.0.36
> JAVA_HOME=/usr/java
> CATALINA_TMPDIR=/opt/apache-tomcat-6.0.36/temp
>
> Following the example from the Tomcat set up page, the configure
> script appears to me
> (please remember I'm new to Tomcat) to run well. When I do the make (using
> /usr/ccs/bin/make), I'm getting errors from jsvc-unix.c, which
> reference multiple lines
> in siginfo.h (18 lines), signal.h and wait.h. Subsequently, this
> fails to build jsvc.
> These three files are from /usr/include/sys, and I don't believe that
> the syntax is
> incorrect (one of the errors is "parse error before "k_siginfo_t",
> from siginfo.h,
> signal.h and wait.h).
>
> What am I missing in my configuration? What other information can I
> supply to you
> for additional assistance?
>
1. jsvc is not part of Tomcat, but is used as is from the Apache
Commons Daemon project.
Their docs are more authoritative than Tomcat ones and there is a
later release available for download (1.0.12 vs. 1.0.10 in your
6.0.36).
http://commons.apache.org/daemon/
2. Once you are successful in building jsvc and will go on to configuring it,
take "bin/daemon.sh" from a recent version of Tomcat 7.
That will save you some time.
3. I think "/usr/java" is a wrong choice for JAVA_HOME. Do you have
"$JAVA_HOME/bin/java" there?
4. Java 1.5 has known issues with some code pages (As mentioned in
Tomcat release notes).
Best regards,
Konstantin Kolinko
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org