-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Mark,
On 1/2/14, 11:34 AM, Mark Eggers wrote: > On 1/1/2014 11:02 PM, vicky wrote: >> >> I've build the JSVC on same machine over which I m running my >> tomcat instance >> >> I have compiled the JSVC in the following manner but still i'm >> getting the Segmentation fault exception while executing the >> startup script, please suggest how to fix this:- >> >> Step1: export CFLAGS="-arch i386 -arch x86_64" export >> LDFLAGS="-arch i386 -arch x86_64" Step2: cd >> /root/test/commons-daemon-1.0.14-native-src/unix ./configure >> ++++++++++++++++++++++++++++++++++++++++++++++= *** Current host >> *** checking build system type... x86_64-unknown-linux-gnu >> checking host system type... x86_64-unknown-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 JDK os include directory... >> linux 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" >> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> Step3: make +++++++++++++++++++++command output >> +++++++++++++++++= (cd native; make all) make[1]: Entering >> directory >> `/root/test/commons-daemon-1.0.14-native-src/unix/native' gcc >> -m64 jsvc-unix.o libservice.a -ldl -lpthread -o ../jsvc make[1]: >> Leaving directory >> `/root/test/commons-daemon-1.0.14-native-src/unix/native' >> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> >> >> Vicky From: André Warnier <a...@ice-sa.com> To: Tomcat Users List >> <users@tomcat.apache.org> Sent: Tuesday, 31 December 2013 8:34 >> PM Subject: Re: JSVC error >> >> >> vicky wrote: >>> Even after defining the $CATALINA_PID & $JAVA_HOME variable , >>> i'm still the getting segmentation error(detailed error >>> mentioned below) >>> >> >> In my experience, a "segmentation fault" often occurs when the >> *binary* that you are trying to run, is not made for the platform >> on which you are trying to run it. For example, you try to use >> under Solaris a binary made for Linux; or trying to run a 64-bit >> binary on a 32-bit platform. Stuff of that kind. So, are you >> sure that the "jsvc" that you're using matches your platform ? >> What about "file (path_to)/jsvc" ? what does it say ? > > Vicky, > > Your CFLAGS and LDFLAGS settings appear that you're trying to > compile a "fat" binary on MacOS. Is this true? > > If so, I don't think MacOS supports a 32 bit JRE any more. Apple's JVMs came in 32-bit flavors, and they got rid of it with Mavericks (thanks, Apple). Older OS Xs may still have the Apple JVM available and reasonably up-to-date. No current version of Oracle or OpenJDK is available for Mac OS X. > I'm not certain, since I don't have a Macintosh, but some people at > $work do. They indicate that they can no longer run applets in > Chrome (32 bit) but require Firefox or Safari (64 bit). Correct. Google won't release a 64-bit version of Chrome on Mac so lots of stuff simply does not work (including Java plug-ins). (Thanks, Google.) - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJSxaPUAAoJEBzwKT+lPKRYd6kQAKhwax7ok35XGFZZ/jIgjoie +xDUfgRnxGOJery88aPsnmwPpAcFKRK5YSYJTHdLdOF4lIXo3gWOxiCCSyC26crj k4XMvPzmZ/qw2mX1rwz5I/yVhG9WjpWoYziVu97ZsxE9yAdqOlm2yokL+r68lHWG 0adeBiy4KCUfDr7uNbkukcCUadW7NtP/l02vNet2JOVk1iALgAmSDfWbBPwuEXNv hBKrvWWKQDt+FzoU1h+hirdEpp3XNSiXNlRiOYU4GWgfHwWVjrj6GkSt/1i8rhkR N1UuzLZeNzKLzsRZCtvNEYwETs8GGnl1dMI61KBEkoDR3/mT8sfEFNd4GyjWp3v+ hw0w3bX9TQbYOFM8cX5KpKMsWtOCHc1N1BfHu/wEipRF+bhJ6+SbvbtISyyxFinY +mEMlIK2ZVYLNpdQlmZRBubFy5M6uSMGqOoWIfC7S9pr9kSG4Uw9+PVR4oxFocwj Uiop2lwzzUYj6FHSdWpgmMVujR64d8cYZgZiIYwmKoxLSx7MwVHPk9zktwOYMtpv sLTODrhmB7vb+ADZwmgDnn3Ei+mDZMyYu86Rxo5IDrJnB3XKCMO+LZSWBIIitG9O Mz8/rUaBtWIU6jUxTSlnoqEUY6X9vP6SC7WVk/B+md2KMEZM4F0y5EDdXRokAm3x HcRcLXQ2lM+23gwXt+Pq =9YX5 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org