Stuck at making jsvc while installing tomcat
Hi list, just got a similar error like ** Shen LI geminialex007 () gmail ! com http://marc.info/?a=13123443602r=1w=4 **I normally do not have any problem compiling packages etc. My question is therefore: as the doc's are not well understandable - this needs evidently some clarification: for a simple tomcat-installation: is it necessary to have jsvc installed? tnx Jörg - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Stuck at making jsvc while installing tomcat
Hi Jörg, Am Sonntag, den 14.08.2011, 14:48 +0200 schrieb kampmann: Hi list, just got a similar error like ** Shen LI geminialex007 () gmail ! com http://marc.info/?a=13123443602r=1w=4 **I normally do not have any problem compiling packages etc. can't help you there. My question is therefore: as the doc's are not well understandable - this needs evidently some clarification: You might help here, by pointing out, what you didn't understand. There is a lot of docucmentation. for a simple tomcat-installation: is it necessary to have jsvc installed? You only need jsvc, if you want to have tomcat listen directly to any port below 1024 - on unix at least. In that case jsvc will start as root and bind to the port. After that it will drop privileges and let tomcat continue. You don't need jsvc if you are willing to listen to a port higher than 1024, or put another server in front of tomcat - like apache httpd. Regards Felix tnx Jörg - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Stuck at making jsvc while installing tomcat
thnx Felix, this issue wasn't clear (from Tomcat-docs) - in the meantime I solved the problem: JAVA_HOME was set to a wrong value !! I fixed it and got jsvc :) cheers Jörg Felix Schumacher wrote: Hi Jörg, Am Sonntag, den 14.08.2011, 14:48 +0200 schrieb kampmann: Hi list, just got a similar error like ** Shen LI geminialex007 () gmail ! com http://marc.info/?a=13123443602r=1w=4 **I normally do not have any problem compiling packages etc. can't help you there. My question is therefore: as the doc's are not well understandable - this needs evidently some clarification: You might help here, by pointing out, what you didn't understand. There is a lot of docucmentation. for a simple tomcat-installation: is it necessary to have jsvc installed? You only need jsvc, if you want to have tomcat listen directly to any port below 1024 - on unix at least. In that case jsvc will start as root and bind to the port. After that it will drop privileges and let tomcat continue. You don't need jsvc if you are willing to listen to a port higher than 1024, or put another server in front of tomcat - like apache httpd. Regards Felix tnx Jörg - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- === IBK-Consult for Climate Physics and Real-Time IT - D-31228 Peine +49-177-276-3140 www.ibk-consult.de www.xing.com/go/invuid/Joerg_Kampmann www.xing.com/hp/Joerg_Kampmann www.xing.com/net/mathe === - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Stuck at making jsvc while installing tomcat
From: Mladen Turk [mailto:mt...@apache.org] Subject: Re: Stuck at making jsvc while installing tomcat Similar errors continues to the end. I thought it might be some problem with my gcc compiler. Fix your compiler, and yes, please don't ask how, cause you won't get the answer here. --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre And while you're at it, throw away the toy JVM you have and install a real one (e.g., 1.6* from Oracle). gcj is inappropriate for any production use. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Stuck at making jsvc while installing tomcat
*Hi All,* * * *I am new to use tomcat. I got a problem of installing jsvc.* * * *I followed this tutorial to setup the system http://tomcat.apache.org/tomcat-7.0-doc/setup.html. Sample command lines are:* cd $CATALINA_HOME/bin tar xvfz commons-daemon-native.tar.gz cd commons-daemon-1.0.x-native-src/unix ./configure make cp jsvc ../.. cd ../.. *I stuck at make. Below are the outputs of configure and make* ./configure [hieule2@tarekc20 unix]$ ./configure *** Current host *** checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu 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... ranlib checking for strip... strip *** Host support *** checking C flags dependant on host system type... ok *** Java compilation tools *** checking for sablevm... NONE checking for kaffe... NONE checking for javac... /usr/bin/javac /usr/bin/javac checking wether the Java compiler (/usr/bin/javac) works... yes checking for jar... /usr/bin/jar gcc flags added checking for cap_init in -lcap... no *** 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 make (cd native; make all) make[1]: Entering directory `/home/tarek/hieule2/shenli/3_tier_server/apache-tomcat-7.0.19/bin/commons-daemon-1.0.6-native-src/unix/native' gcc -g -O2 -DOS_LINUX -DDSO_DLFCN -DCPU=\i386\ -Wall -Wstrict-prototypes -I/usr/include -I/usr/include/linux -c jsvc-unix.c -o jsvc-unix.o In file included from /usr/include/_G_config.h:44, from /usr/include/libio.h:32, from /usr/include/stdio.h:72, from jsvc.h:21, from jsvc-unix.c:18: /usr/include/gconv.h:72: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gconv.h:88: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gconv.h:97: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/gconv.h:174: error: expected specifier-qualifier-list before ‘size_t’ In file included from /usr/include/stdio.h:72, from jsvc.h:21, from jsvc-unix.c:18: /usr/include/libio.h:329: error: expected specifier-qualifier-list before ‘size_t’ /usr/include/libio.h:361: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/libio.h:370: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/libio.h:486: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘_IO_sgetn’ In file included from jsvc.h:21, from jsvc-unix.c:18: /usr/include/stdio.h:308: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdio.h:315: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdio.h:357: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdio.h:359: error: format string argument not a string type /usr/include/stdio.h:361: error: expected declaration specifiers or ‘...’ before ‘size_t’ /usr/include/stdio.h:610: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread’ /usr/include/stdio.h:616: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite’ /usr/include/stdio.h:638: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fread_unlocked’ /usr/include/stdio.h:640: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fwrite_unlocked’ In file included from jsvc.h:22, from jsvc-unix.c:18: /usr/include/stdlib.h:140: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__ctype_get_mb_cur_max’ In file included from /usr/include/sys/types.h:133, from /usr/include/stdlib.h:438, from jsvc.h:22, from jsvc-unix.c:18: /usr/include/linux/time.h:10: error: expected specifier-qualifier-list before ‘time_t’ /usr/include/linux/time.h:16: error: expected specifier-qualifier-list before ‘time_t’ In file included from /usr/include/sys/select.h:46, from /usr/include/sys/types.h:220, from /usr/include/stdlib.h:438, Similar errors continues to the end. I thought it might be some problem with my gcc compiler. Below is the gcc version information. [hieule2@tarekc20 unix]$ gcc -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared
Re: Stuck at making jsvc while installing tomcat
On 08/03/2011 06:03 AM, Shen LI wrote: *I am new to use tomcat. I got a problem of installing jsvc.* * /usr/include/gconv.h:72: error: expected declaration specifiers or ‘...’ before ‘size_t’ ... probably followed by something like: /usr/include/stdio.h:34:21: error: stddef.h: No such file or directory Similar errors continues to the end. I thought it might be some problem with my gcc compiler. Fix your compiler, and yes, please don't ask how, cause you won't get the answer here. Regards -- ^TM - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org