You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Bill Cai <wi...@yahoo.com> on 2001/10/25 07:31:55 UTC
Re: sourcepath problem in building tomcat (apxs pb building mod_jk.so)
I think the problem is it didn't like the ";"s in the
value of "sourcepath". It no longer complains after I
changed them to ":"s. I guess the source was for
Windows platform. On Solaris ";" means end of the
command...
However, it still complains about "srcdir" in the
following block:
<target name="tomcat_util" depends="init">
<javac destdir="${tomcat.build}/classes"
debug="${debug}"
optimize="${optimize}"
deprecation="off"
srcdir="src/share">
Actually, what I want is "mod_jk.so". Not sure "ant"
it
will build the whole thing including mod_jk.so? I
went to build/tomcat/apache1.3 to build mod_jk.so
individually by using build-solaris.sh or
build-unix.sh. But both of them failed "apxs" from
my apache installation. I didn't install a binary
version of apache. I built it by using:
configure --prefix=/usr/local/apache \
--enable-module=most --enable-shared=max
But that failed on linking from apxs. i.e., didn't
product an mod_jk.so
Thanks,
Bill
>From: Larry Isaacs
> Subject: RE: sourcepath problem in building tomcat
> Date: Wed, 24 Oct 2001 08:20:32 -0400
>
> I don't use JDK1.2.1, so I don't know much of the
> details about it. However, the help message:
>
>
>[-g][-O][-debug][-depend][-nowarn][-verbose][-classpat>h
> path][-nowrite][-deprecation][-d dir][-J<runtime
> flag>] file.java...
>
> is very 1.1.8-like and doesn't support the
>-sourcepath
> argument. I would guess that Ant is thinking the
JDK >is
> Java2 and assumes the javac supports the -sourcepath
> argument. Maybe this isn't a correct assumption for
> JDK 1.2.1.
>
> I would highly recommend upgrading your JDK. I
think
> there are other problems in store if you continue
>using
> it. If you upgrade, I think your compile problem
>would
> disappear.
>
> Cheers,
> Larry
>
>
> It is jdk 1.2.1:
>
> java version "1.2.1"
> Solaris VM (build Solaris_JDK_1.2.1_04, native
> threads, sunwjit)
>
> Thanks,
>
> Bill
>
> --- Bill Cai <wi...@yahoo.com> wrote:
> > I thought that I was using at least jdk1.2. But I
> > willl check tonight because I have multiple jdks
> > installed.
> >
> > Thanks,
> >
> > Bill
> >
> > > >From: Larry Isaacs
> > > > Subject: RE: sourcepath problem in building
> > > tomcat
> > > > Date: Tue, 23 Oct 2001 12:51:51 -0400
> > > >
> > > > It appears that the javac being executed is
> > coming
> > > from
> > > > JDK 1.1.8. Is JDK1.1.8 what you want to be
> > using,
> > > > or is an old javac being picked up by mistake?
>
> > If
> > > > JDK 1.1.8 is correct, I would like to see the
> > log
> > > > for the "detect:" through "init:" targets.
> > > >
> > > > Larry
> > > >
> > > --- Bill Cai <wi...@yahoo.com> wrote:
> > > > I always got the following error when building
> > > > tomcat
> > > > by using ant. I tried ant 1.1 1.2 1.4. Any
> idea?
> > > >
> > > > tomcat_util:
> > > > [javac] Compiling 91 source files to
> > > >
> > >
> >
>
/usr/local/jakarta/jakarta-tomcat-3.3-dev-src/build/tomcat/classes
> > > > [javac] javac: invalid flag: -sourcepath
> > > > [javac] use: javac
> > > >
> > >
> >
>
[-g][-O][-debug][-depend][-nowarn][-verbose][-classpath
> > > > path][-nowrite][-deprecation][-d
> dir][-J<runtime
> > > > flag>] file.java...
> > > >
> > > > BUILD FAILED
> > > >
> > > >
> > >
> >
>
/usr/local/jakarta/jakarta-tomcat-3.3-dev-src/build.xml:206:
> > > > Compile failed, messages should have been
> > > provided.
> > > >
> > > >
> > > >
> > __________________________________________________
> > > > Do You Yahoo!?
> > > > Make a great connection at Yahoo! Personals.
> > > > http://personals.yahoo.com
> > >
> > >
> > >
> __________________________________________________
> > > Do You Yahoo!?
> > > Make a great connection at Yahoo! Personals.
> > > http://personals.yahoo.com
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Make a great connection at Yahoo! Personals.
> > http://personals.yahoo.com
>
>
> __________________________________________________
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com