Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 05383107FF for ; Thu, 2 Jan 2014 10:55:21 +0000 (UTC) Received: (qmail 88590 invoked by uid 500); 2 Jan 2014 10:55:11 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 88503 invoked by uid 500); 2 Jan 2014 10:55:10 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 88470 invoked by uid 99); 2 Jan 2014 10:55:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jan 2014 10:55:07 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of brett.dellegrazie@gmail.com designates 209.85.223.171 as permitted sender) Received: from [209.85.223.171] (HELO mail-ie0-f171.google.com) (209.85.223.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jan 2014 10:55:03 +0000 Received: by mail-ie0-f171.google.com with SMTP id ar20so14650766iec.30 for ; Thu, 02 Jan 2014 02:54:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=+EJf5Q43TVrjIZoVolEGeJbyDM//UcFzN0jMTp0xNUo=; b=cwhJdaIXWfhB8K59SyDgqXzKqueO1p4RDtXxonNefoD/pAmV42ZloVWJ44MoYIPnRI tqdOrZ+D6CDkrCOxSKlEA5+yfb9Y/JRUMPvc87fSphkSWoJxLD0mtbH9lovBTc/1Ilnc qj2S3FeWJeSPRTENrMcbRn3ZvVBy+5WtrvQyPNsNxAsF8FP+FZZgfdrOB5ZuRQQYI0Hr pITO9mjuqvX/GJP2Q65K59c3Xllsbfitr3ldUVN5wxyOFyzw8tFhS3d+k0xfu2uCpwO/ xOINQBCZPGpubHHosv+VFwkXVj8rqRpaEqoaQhygMQG61tdKbMlrkeO2COFxr2kUr+dH 9rhA== MIME-Version: 1.0 X-Received: by 10.50.227.139 with SMTP id sa11mr20579151igc.27.1388660082789; Thu, 02 Jan 2014 02:54:42 -0800 (PST) Received: by 10.50.87.193 with HTTP; Thu, 2 Jan 2014 02:54:42 -0800 (PST) In-Reply-To: <1388646166.38926.YahooMailNeo@web193504.mail.sg3.yahoo.com> References: <1388484960.46008.YahooMailNeo@web193503.mail.sg3.yahoo.com> <1388487727.25623.YahooMailNeo@web193501.mail.sg3.yahoo.com> <52C2DCE3.40304@ice-sa.com> <1388646166.38926.YahooMailNeo@web193504.mail.sg3.yahoo.com> Date: Thu, 2 Jan 2014 10:54:42 +0000 Message-ID: Subject: Re: JSVC error From: Brett Delle Grazie To: Tomcat Users List Content-Type: multipart/alternative; boundary=f46d042a0f45f2d5e004eefa9e57 X-Virus-Checked: Checked by ClamAV on apache.org --f46d042a0f45f2d5e004eefa9e57 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, On 2 January 2014 07:02, 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=3D"-arch i386 -arch x86_64" > export LDFLAGS=3D"-arch i386 -arch x86_64" > I think you should only use one of these 'arch' commands, not both. Most makefile based systems can only build for one architecture at a time. The architecture of JSVC chosen should match that of your JVM. > Step2: > cd /root/test/commons-daemon-1.0.14-native-src/unix > ./configure > ++++++++++++++++++++++++++++++++++++++++++++++=3D > *** 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 +++++++++++++++++=3D > (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=E9 Warnier > To: Tomcat Users List > 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 ru= n > 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 ? > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > --=20 Kind regards, Brett Delle Grazie --f46d042a0f45f2d5e004eefa9e57--