Compiling mod_jk2 - Solaris

This is a discussion on Compiling mod_jk2 - Solaris ; Has anyone been able to compile mod_jk2 (Solaris 10 x86)? Its the connector for Apache/Tomcat . I get error messages and have no idea how to fix it. I'm using gcc to compile. Error: make[1]: Entering directory `/home/staging/jakarta-tomcat-connectors-1.2.14.1-src/jk/native/common' /usr/local/apr/build-1/libtool --silent ...

+ Reply to Thread
Results 1 to 12 of 12

Thread: Compiling mod_jk2

  1. Compiling mod_jk2


    Has anyone been able to compile mod_jk2 (Solaris 10 x86)? Its the
    connector for Apache/Tomcat .

    I get error messages and have no idea how to fix it. I'm using gcc to
    compile. Error:


    make[1]: Entering directory
    `/home/staging/jakarta-tomcat-connectors-1.2.14.1-src/jk/native/common'
    /usr/local/apr/build-1/libtool --silent --mode=compile gcc
    -I/usr/local/apache2/include -g -O2 -L/usr/local/lib -R/usr/local/lib
    -
    L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/openwin/lib
    -R/usr/openwin/lib -DHAVE_APR -I/usr/local/apr/include/apr-1 -I/usr/
    local/apr/include/apr-1 -g -O2 -DSOLARIS2=10
    -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I
    /include -I /include
    / -c jk_ajp12_worker.c -o jk_ajp12_worker.lo
    In file included from /usr/include/sys/wait.h:24,
    from /usr/local/apr/include/apr-1/apr.h:131,
    from /usr/local/apr/include/apr-1/apr_lib.h:28,
    from jk_global.h:39,
    from jk_logger.h:26,
    from jk_ajp12_worker.h:26,
    from jk_ajp12_worker.c:25:
    /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:292: error: parse error before '}' token
    /usr/include/sys/siginfo.h:294: error: parse error before '}' token
    /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
    /usr/include/sys/siginfo.h:261: error: previous declaration of
    `__proc'
    /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
    /usr/include/sys/siginfo.h:267: error: previous declaration of
    `__fault'
    /usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
    /usr/include/sys/siginfo.h:273: error: previous declaration of
    `__file'
    /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
    /usr/include/sys/siginfo.h:287: error: previous declaration of
    `__prof'
    /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
    /usr/include/sys/siginfo.h:291: error: previous declaration of
    `__rctl'
    /usr/include/sys/siginfo.h:426: error: parse error before '}' token
    /usr/include/sys/siginfo.h:428: error: parse error before '}' token
    /usr/include/sys/siginfo.h:432: error: parse error before
    "k_siginfo_t"
    /usr/include/sys/siginfo.h:437: error: parse error before '}' token
    In file included from /usr/include/sys/procset.h:24,
    from /usr/include/sys/wait.h:25,
    from /usr/local/apr/include/apr-1/apr.h:131,
    from /usr/local/apr/include/apr-1/apr_lib.h:28,
    from jk_global.h:39,
    from jk_logger.h:26,
    from jk_ajp12_worker.h:26,
    from jk_ajp12_worker.c:25:
    /usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
    In file included from /usr/local/apr/include/apr-1/apr.h:131,
    from /usr/local/apr/include/apr-1/apr_lib.h:28,
    from jk_global.h:39,



  2. Re: Compiling mod_jk2

    Mike wrote:
    > Has anyone been able to compile mod_jk2 (Solaris 10 x86)? Its the
    > connector for Apache/Tomcat .
    >

    Have you tried the Blastwave package?

    --
    Ian Collins.

  3. Re: Compiling mod_jk2

    Mike wrote:
    > Has anyone been able to compile mod_jk2 (Solaris 10 x86)? Its the
    > connector for Apache/Tomcat .


    the compiler error you are getting looks like an incompatible version of gcc,
    or the gcc headers need to be rebuilt.

    Did you know that mod_jk2 has been obsoleted? You should use mod_jk 1.2.* instead

    http://tomcat.apache.org/connectors-doc/


  4. Re: Compiling mod_jk2

    On 7/6/06 5:28, in article 4486fbfe.43661191@news.webperception.com, "Mike"
    wrote:

    >
    > Thanks Oscar and Ian
    >
    > This whole experience has been very frustrating because I had to
    > search the web to find and install a gcc compiler now it does not work
    > for certain apps?
    >
    > If Solaris is going compete with Linux they have to provide the proper
    > tools with the distribution that will permit users to compile and
    > install open software.


    I think they do, as long as the "open software" is portable. (Rant about gcc
    and Linux deleted!)

    > I meant to say JK-1.2.14 source code from the Tomcat site.
    >
    > Sorry I had to vent this but it seems that Solaris is still designed
    > for big corporations and not the small businesses that depend on open
    > software.
    >
    > Oh, by the way Solaris 10 does not come with "make" either!!


    But it does - /usr/ccs/bin/make.

    As Ian suggested you should try the blastwave mod_jk 1.2.15 package,
    especially since you seem a little unfamiliar with Solaris (no offence).

    Cheers,

    Chris


  5. Re: Compiling mod_jk2


    Thanks Oscar and Ian

    This whole experience has been very frustrating because I had to
    search the web to find and install a gcc compiler now it does not work
    for certain apps?

    If Solaris is going compete with Linux they have to provide the proper
    tools with the distribution that will permit users to compile and
    install open software.

    I meant to say JK-1.2.14 source code from the Tomcat site.

    Sorry I had to vent this but it seems that Solaris is still designed
    for big corporations and not the small businesses that depend on open
    software.

    Oh, by the way Solaris 10 does not come with "make" either!!


    On Wed, 07 Jun 2006 10:52:11 -0400, Oscar del Rio
    wrote:

    >Mike wrote:
    >> Has anyone been able to compile mod_jk2 (Solaris 10 x86)? Its the
    >> connector for Apache/Tomcat .

    >
    >the compiler error you are getting looks like an incompatible version of gcc,
    >or the gcc headers need to be rebuilt.
    >
    >Did you know that mod_jk2 has been obsoleted? You should use mod_jk 1.2.* instead
    >
    >http://tomcat.apache.org/connectors-doc/
    >



  6. Re: Compiling mod_jk2

    Mike wrote:
    > This whole experience has been very frustrating because I had to
    > search the web to find and install a gcc compiler now it does not work
    > for certain apps?


    Maybe that was the problem, you didn't have to install a separate gcc,
    it is already included in Solaris 10: /usr/sfw/bin/gcc

    > Oh, by the way Solaris 10 does not come with "make" either!!


    /usr/ccs/bin/make
    /usr/sfw/bin/gmake

  7. Re: Compiling mod_jk2

    On Wed, 07 Jun 2006 14:10:02 -0400, Oscar del Rio
    wrote:

    >Mike wrote:
    >> This whole experience has been very frustrating because I had to
    >> search the web to find and install a gcc compiler now it does not work
    >> for certain apps?

    >
    >Maybe that was the problem, you didn't have to install a separate gcc,
    >it is already included in Solaris 10: /usr/sfw/bin/gcc
    >


    First, I want to thank you all for your time. Now that I have calmed
    down ...

    What led me to seek and install a gcc compiler was that when I tried
    to compile the source the first time I got the message that no
    suitable compiler was found. Now I am putting the gcc compiler and
    make in my PATH it still can't find a compiler. This is the trail:


    # PATH=$PATH:/usr/sfw/bin/gcc:/usr/ccs/bin/make
    # export PATH
    # find / -name apxs
    /usr/local/apache2/bin/apxs
    # cd native
    # ./configure --with-apxs=/usr/local/apache2/bin/apxs
    checking build system type... i386-pc-solaris2.10
    checking host system type... i386-pc-solaris2.10
    checking target system type... i386-pc-solaris2.10
    checking for a BSD-compatible install... scripts/build/unix/install-sh
    -c
    checking whether build environment is sane... yes
    checking for gawk... no
    checking for mawk... no
    checking for nawk... nawk
    checking whether make sets $(MAKE)... no
    checking for gcc... no
    checking for cc... no
    checking for cc... no
    checking for cl... no
    configure: error: no acceptable C compiler found in $PATH
    See `config.log' for more details.





    >> Oh, by the way Solaris 10 does not come with "make" either!!

    >
    >/usr/ccs/bin/make
    >/usr/sfw/bin/gmake



  8. Re: Compiling mod_jk2

    Mike wrote:
    > Thanks Oscar and Ian
    >
    > This whole experience has been very frustrating because I had to
    > search the web to find and install a gcc compiler now it does not work
    > for certain apps?
    >

    Solaris 10 comes with gcc in /usr/sfw/bin/gcc.

    It is also on the companion CD.

    --
    Ian Collins.

  9. Re: Compiling mod_jk2

    Mike wrote:

    > # PATH=$PATH:/usr/sfw/bin/gcc:/usr/ccs/bin/make


    put *directories* in your path, not programs:

    PATH=$PATH:/usr/sfw/bin:/usr/ccs/bin

  10. Re: Compiling mod_jk2



    Sorry, stupid mistake. Corrected the path shortly after posting. Same
    results.


    On Wed, 07 Jun 2006 18:42:42 -0400, Oscar del Rio
    wrote:

    >Mike wrote:
    >
    >> # PATH=$PATH:/usr/sfw/bin/gcc:/usr/ccs/bin/make

    >
    >put *directories* in your path, not programs:
    >
    >PATH=$PATH:/usr/sfw/bin:/usr/ccs/bin



  11. Re: Compiling mod_jk2

    In article <448862bb.135498156@news.webperception.com>,
    Mike wrote:
    >Sorry, stupid mistake. Corrected the path shortly after posting. Same
    >results.


    Works for me.

    $ cd /tmp/jakarta-tomcat-connectors-1.2.15-src/jk/native
    $ env PATH=/usr/bin:/usr/ccs/bin:/opt/SUNWspro/bin ./configure \
    --with-apxs=/opt/apache2/bin/apxs
    $ env PATH=/usr/bin:/usr/ccs/bin:/opt/SUNWspro/bin make

    John
    groenveld@acm.org

  12. Re: Compiling mod_jk2

    Hi Mike, try this

    Incluir los siguientes PATHs en el profile

    LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib:/opt/sfw/lib:/opt/csw/lib
    PATH=${PATH}:/usr/local/bin:/usr/local/sbin:/opt/sfw/bin:/usr/sfw/bin
    MANPATH=${MANPATH}:/usr/local/man:/opt/sfw/man

    Verificar los path al GCC y GMAKE
    ---------------------------------

    GCC: /usr/sfw/bin/gcc
    GMAKE: /usr/sfw/bin/gmake

    Compilar APACHE2
    ----------------
    # ./configure --prefix=/usr/local/servidores/apache2
    --enable-mods-shared=all
    --enable-ssl=shared
    --enable-ssl
    --with-ssl=/usr/sfw

    # gmake
    # gmake install

    Compilar MOD_JK
    ---------------
    ../configure --with-apxs=/usr/local/servidores/apache2/bin/apxs
    --with-java-home=${JAVA_HOME}
    --with-java-platform=2
    -enable-jni
    # gmake
    # gmake install
    # cd

    Crear links para facilitar futuras compilaciones
    ------------------------------------------------

    ln -s /usr/local/servidores/apache2 /usr/local/apache2
    ln -s /usr/local/servidores/apache-tomcat-5.5.15 /usr/local/tomcat

    cp mod_jk.so /usr/local/servidores/apache2/modules/


    The most importat is use GCC and GMAKE, don't use standar make!

    Complete example in:

    http://groups.google.es/group/solari...c21c27/?hl=es#
    but is in spanish!!!

    Saludos,

    Mariano

    Mike ha escrito:

    > Has anyone been able to compile mod_jk2 (Solaris 10 x86)? Its the
    > connector for Apache/Tomcat .
    >
    > I get error messages and have no idea how to fix it. I'm using gcc to
    > compile. Error:
    >
    >
    > make[1]: Entering directory
    > `/home/staging/jakarta-tomcat-connectors-1.2.14.1-src/jk/native/common'
    > /usr/local/apr/build-1/libtool --silent --mode=compile gcc
    > -I/usr/local/apache2/include -g -O2 -L/usr/local/lib -R/usr/local/lib
    > -
    > L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/openwin/lib
    > -R/usr/openwin/lib -DHAVE_APR -I/usr/local/apr/include/apr-1 -I/usr/
    > local/apr/include/apr-1 -g -O2 -DSOLARIS2=10
    > -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I
    > /include -I /include
    > / -c jk_ajp12_worker.c -o jk_ajp12_worker.lo
    > In file included from /usr/include/sys/wait.h:24,
    > from /usr/local/apr/include/apr-1/apr.h:131,
    > from /usr/local/apr/include/apr-1/apr_lib.h:28,
    > from jk_global.h:39,
    > from jk_logger.h:26,
    > from jk_ajp12_worker.h:26,
    > from jk_ajp12_worker.c:25:
    > /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
    > /usr/include/sys/siginfo.h:292: error: parse error before '}' token
    > /usr/include/sys/siginfo.h:294: error: parse error before '}' token
    > /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
    > /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
    > /usr/include/sys/siginfo.h:261: error: previous declaration of
    > `__proc'
    > /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
    > /usr/include/sys/siginfo.h:267: error: previous declaration of
    > `__fault'
    > /usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
    > /usr/include/sys/siginfo.h:273: error: previous declaration of
    > `__file'
    > /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
    > /usr/include/sys/siginfo.h:287: error: previous declaration of
    > `__prof'
    > /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
    > /usr/include/sys/siginfo.h:291: error: previous declaration of
    > `__rctl'
    > /usr/include/sys/siginfo.h:426: error: parse error before '}' token
    > /usr/include/sys/siginfo.h:428: error: parse error before '}' token
    > /usr/include/sys/siginfo.h:432: error: parse error before
    > "k_siginfo_t"
    > /usr/include/sys/siginfo.h:437: error: parse error before '}' token
    > In file included from /usr/include/sys/procset.h:24,
    > from /usr/include/sys/wait.h:25,
    > from /usr/local/apr/include/apr-1/apr.h:131,
    > from /usr/local/apr/include/apr-1/apr_lib.h:28,
    > from jk_global.h:39,
    > from jk_logger.h:26,
    > from jk_ajp12_worker.h:26,
    > from jk_ajp12_worker.c:25:
    > /usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
    > In file included from /usr/local/apr/include/apr-1/apr.h:131,
    > from /usr/local/apr/include/apr-1/apr_lib.h:28,
    > from jk_global.h:39,



+ Reply to Thread