I gave up on the DSO option, and was able to get things working with
jserv being statically-linked.  At least, I got the sample servlet 
working.  For some reason I am having trouble with my own servlet,
but I am still looking into that.  Thank you all for your help.
    --Paul

Paul Lynch <[EMAIL PROTECTED]> wrote:
> I've done a bit of sleuthing in the Makefile system, and I found where
> the "ar" command is coming from.  The "all" target in the src/c Makefile
> depends on libjserv.la:
> 
> lib_LTLIBRARIES = libjserv.la
> LTLIBRARIES =  $(lib_LTLIBRARIES)
> all: Makefile $(LTLIBRARIES)
> 
> The rule to make "libjserv.la" uses the libtool script in the top-level
jserv
> directory:
> 
> LIBTOOL = $(SHELL) $(top_builddir)/libtool
> LINK = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
> libjserv.la: $(libjserv_la_OBJECTS) $(libjserv_la_DEPENDENCIES)
>       $(LINK) -rpath $(libdir) $(libjserv_la_LDFLAGS) $(libjserv_la_OBJECTS) 
> 
> The libtool script uses the "ar" command. It seems to be coming from the
> line:
>     eval cmds=\"$old_archive_cmds\"
> 
> Does that help anyone see what the problem is?  I can't read shell script
very
> well.  I did check the modification time on libtool, and it was modified,
> probably by the "configure" script.
>   --Paul
> 
> 
> Paul Lynch <[EMAIL PROTECTED]> wrote:
> > 
> > Now that that problem is solved, I am now having another.  The configure
> > script now works okay, but when I try to run "make", I am getting
> > another error.  It seems to make the shared library okay, but then
> > it tries to make the static library and fails.   Here are the last few
> > lines of make output, up to the error:
> > 
> > (cd .libs && ln -s libjserv.so.0.0.0 libjserv.so.0)
> > (cd .libs && ln -s libjserv.so.0.0.0 libjserv.so)
> > ar cru .libs/libjserv.a
> > ranlib .libs/libjserv.a
> > ranlib: .libs/libjserv.a: No such file or directory
> > 
> > The manual page for "ar" indicates that there are supposed to be a
> > list of files after the archive name, so perhaps that is why "ar" fails.
> > Does anyone have any suggestions?  Why is it even trying to make 
> > a statically-linked library, when I am trying to set it up as a shared
> > library?
> >     --Paul
> > 
> > > 
> > > 
> > > Paul Lynch wrote:
> > > 
> > > >   I'm attemping to configure Apache for DSO support, and to set up
JServ
> > > >   as a DSO, and I'm having trouble. I am using the following:
> > > >   Apache: 1.3.4
> > > >   JServ: 1.0 beta 3
> > > >   Operating system: Solaris 2.6
> > > >
> 
> 
> ____________________________________________________________________
> Get free e-mail and a permanent address at http://www.netaddress.com/?N=1
> 
> 
> ----------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html/>
> Problems?:           [EMAIL PROTECTED]


____________________________________________________________________
Get free e-mail and a permanent address at http://www.netaddress.com/?N=1


----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to