trouble compiling mod_jk.so on Linux
Title: trouble compiling mod_jk.so on Linux I am having trouble creating the shared object library mod_jk.so on linux. After running the below command I get the following error. $APACHE_HOME/bin/apxs -o mod_jk.so -DLINUX -I../jk -I/usr/local/jdk1.2.2/include/ -I/usr/local/jdk1.2.2/include/linux -c *.c ../jk/*.c Error is: apxs:Break: Command failed with rc=255 Any ideas what I could be doing wrong? I even tried some options that seemed to fix my compile problem on solaris by setting -lposix4 but that did not seem to help. The whole output of the run looks like: gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/home/dev/software/apache_1.3.14/include -I../jk -I/usr/local/jdk1.2.2/include/ -I/usr/local/jdk1.2.2/include/linux -DLINUX -c mod_jk.c *Initialization*:1: warning: `LINUX' redefined *Initialization*:1: warning: this is the location of the previous definition gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/home/dev/software/apache_1.3.14/include -I../jk -I/usr/local/jdk1.2.2/include/ -I/usr/local/jdk1.2.2/include/linux -DLINUX -c ../jk/jk_ajp12_worker.c *Initialization*:1: warning: `LINUX' redefined *Initialization*:1: warning: this is the location of the previous definition gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/home/dev/software/apache_1.3.14/include -I../jk -I/usr/local/jdk1.2.2/include/ -I/usr/local/jdk1.2.2/include/linux -DLINUX -c ../jk/jk_ajp13.c *Initialization*:1: warning: `LINUX' redefined *Initialization*:1: warning: this is the location of the previous definition gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/home/dev/software/apache_1.3.14/include -I../jk -I/usr/local/jdk1.2.2/include/ -I/usr/local/jdk1.2.2/include/linux -DLINUX -c ../jk/jk_ajp13_worker.c *Initialization*:1: warning: `LINUX' redefined *Initialization*:1: warning: this is the location of the previous definition gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/home/dev/software/apache_1.3.14/include -I../jk -I/usr/local/jdk1.2.2/include/ -I/usr/local/jdk1.2.2/include/linux -DLINUX -c ../jk/jk_connect.c *Initialization*:1: warning: `LINUX' redefined *Initialization*:1: warning: this is the location of the previous definition gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/home/dev/software/apache_1.3.14/include -I../jk -I/usr/local/jdk1.2.2/include/ -I/usr/local/jdk1.2.2/include/linux -DLINUX -c ../jk/jk_jni_worker.c *Initialization*:1: warning: `LINUX' redefined *Initialization*:1: warning: this is the location of the previous definition gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/home/dev/software/apache_1.3.14/include -I../jk -I/usr/local/jdk1.2.2/include/ -I/usr/local/jdk1.2.2/include/linux -DLINUX -c ../jk/jk_lb_worker.c *Initialization*:1: warning: `LINUX' redefined *Initialization*:1: warning: this is the location of the previous definition gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/home/dev/software/apache_1.3.14/include -I../jk -I/usr/local/jdk1.2.2/include/ -I/usr/local/jdk1.2.2/include/linux -DLINUX -c ../jk/jk_map.c *Initialization*:1: warning: `LINUX' redefined *Initialization*:1: warning: this is the location of the previous definition gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/home/dev/software/apache_1.3.14/include -I../jk -I/usr/local/jdk1.2.2/include/ -I/usr/local/jdk1.2.2/include/linux -DLINUX -c ../jk/jk_msg_buff.c *Initialization*:1: warning: `LINUX' redefined *Initialization*:1: warning: this is the location of the previous definition gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/home/dev/software/apache_1.3.14/include -I../jk -I/usr/local/jdk1.2.2/include/ -I/usr/local/jdk1.2.2/include/linux -DLINUX -c ../jk/jk_nwmain.c *Initialization*:1: warning: `LINUX' redefined *Initialization*:1: warning: this is the location of the previous definition gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/home/dev/software/apache_1.3.14/include -I../jk -I/usr/local/jdk1.2.2/include/ -I/usr/local/jdk1.2.2/include/linux -DLINUX -c ../jk/jk_pool.c *Initialization*:1: warning: `LINUX' redefined *Initialization*:1: warning: this is the location of the previous definition gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/home/dev/software/apache_1.3.14/include -I../jk -I/usr/local/jdk1.2.2/include/ -I/usr/local/jdk1.2.2/include/linux -DLINUX -c ../jk/jk_sockbuf.c *Initialization*:1: warning: `LINUX' redefined *Initialization*:1: warning: this is the location of the previous definition gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -I/home/dev/software/apache_1.3.14/include -I../jk -I/usr/local/jdk1.2.2/include/ -I/usr/local/jdk1.2.2/include/linux -DLINUX -c ../jk/jk_uri_worker_map.c
RE: Error running ./startup.sh
Title: RE: Error running ./startup.sh I got this error when I was just starting to configure tomcat. Turns out we had an installation of oracle 9i that had started the jserv listener on port 8007. The other problem was that the port tomcat was using for the stand alone web server was also in use. Try to shut down the tomcat server and check that the ports that are configured are not in use. I found tomcat did not always shut down after having this error. Check for processes matching something like below: /usr/java/bin/../bin/sparc/green_threads/java -Dtomcat.home=./.. org.apache.tom Once the ports are configured without any conflicts. startup.sh and shutdown.sh seem to work fine. Lee Blackburn Lead eWizard LastMinuteTravel.com 404.495.2079 (V) 404.495.2111 (F) -Original Message- From: John Bateman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 24, 2000 2:04 PM To: Tomcat-User (E-mail) Subject: Error running ./startup.sh Hi I'm getting an error when I try and run tomcat in stand alone mode. The logs don'e show anything wrong. Error: [root@opus bin]# ./startup.sh Using classpath: .:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/local/ tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webs erver.jar:/usr/local/tomcat/lib/xml.jar:/usr/local/java/lib/tools.jar:.:./:/ lib/classes.zip:/classes:/lib/dt.jar:/lib/tools.jar:/jre/lib/rt.jar:/usr/loc al/lib/jconn2.jar [root@opus bin]# Starting tomcat. Check logs/tomcat.log for error messages FATAL:java.net.BindException: Address already in use java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:386) at java.net.ServerSocket.init(ServerSocket.java:169) at java.net.ServerSocket.init(ServerSocket.java:120) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS ocketFactory.java:97) at org.apache.tomcat.service.SimpleTcpEndpoint.startEndpoint(SimpleTcpEndpoint. java:186) at org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector.java:1 42) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:253) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:157) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163) I have all my environment variables set (and verified!) but I keep getting this error. I'll be happy to post any additional information needed, but I don't want to post everything if it's just going to take up the net's precious bandwidth. Thanks alot. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- John Bateman Cyber World Group Inc.