Hi,

On 2 January 2014 07:02, vicky <vicky007aggar...@yahoo.co.in> 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"
>

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
> ++++++++++++++++++++++++++++++++++++++++++++++=
> *** 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 ?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>



-- 
Kind regards,

Brett Delle Grazie

Reply via email to