commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jean-frederic clere <jfrederic.cl...@fujitsu-siemens.com>
Subject Re: [PATCH] HP-UX 11 port of JSVC (Commons::Daemon)
Date Fri, 03 Jun 2005 11:09:37 GMT
Max Zinal wrote:
> Hello and have a good time of day!
> 
> This patch allows JSVC to compile and run on HP-UX 11
> systems. It has been tested on PA_RISC2.0W architecture,
> but should also work on PA_RISC2.0. Compilation was
> performed with GCC 3.4.3, with JDK 1.4.2 provided by HP.
> 
> There is a major problem with that patch. It links libjvm.sl
> directly to jsvc binary in addition of dlopen()ing it because
> of static TLS entry inside libjvm.sl. These TLS problems are
> native and common to HP-UX, and I don't know how to get rid
> of it.

The LDFLAGS="$LDFLAGS -L/opt/java1.4/jre/lib/PA_RISC2.0W/server -ljvm" probably 
cause the static linking. What happends if you remove it?

> Maybe using HP's ANSI-compatible C compiler could help.
> Please note that this patch is hard-coded to JDK 1.4, which
> always resides in /opt/java1.4.
> 
> In addition, I had to decrease sleep() parameter in the child()
> wait-for-stop cycle. With the default value of 60 seconds there
> were significant delays (up to 60 seconds) in the response to
> SIGINT, SIGHUP and SIGTERM. With the value of 2 seconds the delay
> is always almost zero. I know it's strange, but it works after all.
> 
> Hope this patch could be useful to people using HP-UX.
> 
> -- 
>   Max Zinal
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message