You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by James Taylor <ti...@gmail.com> on 2005/12/20 18:32:27 UTC

[users@httpd] mod_jk help

Hi there,
First off Xmas grettings to all.
I'm trying to install mod_jk connector on a solaris system using Apache 2
installed on my account.
Everything seemed to be going fine
-I ran buildconf.sh and configure with these options (I have an env variable
APACHE_HOME set to /home/rmorrin/sw/apache2.0)
>./configure --with-apache=${APACHE_HOME} --with-java-home=${JAVA_HOME}
--with-java-platform=2 -enable-jni
But I get the following error.
Can someone please advise me on how to fix this and what my next step should
be (I think I have to change into apache2.0 dir and copy mod_jk.so to
APACHE_HOME
/modules).
Regards,
James.

make[1]: Leaving directory
`/home/rmorrin/James/Java/DownloadedSoftware/jakarta-
tomcat-connectors-1.2.15-src/jk/native/common'

Making all in jni

make[1]: Entering directory
`/home/rmorrin/James/Java/DownloadedSoftware/jakarta-
tomcat-connectors-1.2.15-src/jk/native/jni'

/bin/sh ../libtool --mode=compile cc -I/home/rmorrin/sw/apache2.0/include
-I/home/rmorrin/sw/apache2.0/srclib/apr/include
-I/home/rmorrin/sw/apache2.0/os/unix
-I/home/rmorrin/sw/apache2.0/srclib/apr-util/include -g -O2 -DHAVE_JNI -I
/home/rmorrin/sw/jdk1.5.0_05/include -I
/home/rmorrin/sw/jdk1.5.0_05/include/solaris -I../common -D_REENTRANT   -c
jk_jnicb.c -o jk_jnicb.lo

libtool: compile: unable to infer tagged configuration

libtool: compile: specify a tag with `--tag'

make[1]: *** [jk_jnicb.lo] Error 1

make[1]: Leaving directory
`/home/rmorrin/James/Java/DownloadedSoftware/jakarta-
tomcat-connectors-1.2.15-src/jk/native/jni'
make: *** [all-recursive] Error 1

Re: [users@httpd] mod_jk help

Posted by James Taylor <ti...@gmail.com>.
Ok,
I set an env var CC to gcc but configure is still breaking. The following is
the command I try to execute

>./configure --with-apache=/home/rmorrin/sw/apache2.0
--with-java-home=/home/rmorrin/sw/jdk1.5.0_05 --with-java-platform=2
-enable-jni

Heres my output



>hecking build system type... sparc-sun-solaris2.8

>hecking host system type... sparc-sun-solaris2.8

>hecking target system type... sparc-sun-solaris2.8

>hecking for a BSD-compatible install... /opt/csw/bin/ginstall -c

>hecking whether build environment is sane... yes

>hecking for gawk... gawk

>hecking whether make sets $(MAKE)... yes

>checking for gcc... gcc=

>checking for C compiler default output file name... configure: error: C
compiler cannot create executables

>See `config.log' for more details.

Here's a section from config.log


## ----------- ##

## Core tests. ##

## ----------- ##



configure:1545: checking build system type

configure:1563: result: sparc-sun-solaris2.8

configure:1571: checking host system type

configure:1585: result: sparc-sun-solaris2.8

configure:1593: checking target system type

configure:1607: result: sparc-sun-solaris2.8

configure:1639: checking for a BSD-compatible install

configure:1694: result: /opt/csw/bin/ginstall -c

configure:1705: checking whether build environment is sane

configure:1748: result: yes

configure:1805: checking for gawk

configure:1821: found /opt/csw/bin/gawk

configure:1831: result: gawk

configure:1841: checking whether make sets $(MAKE)

configure:1861: result: yes

configure:2072: checking for gcc

configure:2098: result: gcc=

configure:2342: checking for C compiler version

configure:2345: gcc= --version </dev/null >&5

./configure: gcc=: command not found

configure:2348: $? = 127

configure:2350: gcc= -v </dev/null >&5

./configure: gcc=: command not found

configure:2353: $? = 127

configure:2355: gcc= -V </dev/null >&5

./configure: gcc=: command not found

configure:2358: $? = 127

configure:2381: checking for C compiler default output file name

configure:2384: gcc=    conftest.c  >&5

./configure: gcc=: command not found

configure:2387: $? = 127

configure: failed program was:

| /* confdefs.h.  */

|

| #define PACKAGE_NAME ""

| #define PACKAGE_TARNAME ""

| #define PACKAGE_VERSION ""

| #define PACKAGE_STRING ""

| #define PACKAGE_BUGREPORT ""

| #define PACKAGE "mod_jk"

| #define VERSION "1.2.14"

| /* end confdefs.h.  */

|

| int

| main ()

| {

|

|   ;

|   return 0;

| }

configure:2426: error: C compiler cannot create executables

See `config.log' for more details.


On 12/21/05, John P. Dodge <do...@cruciate.ca.boeing.com> wrote:
>
> On Wed, 21 Dec 2005, James Taylor wrote:
>
> > Hi there,
> > I'm not at all hot on compiler stuff so could you/someone please
> ellaborate
> > a little on this  for me.
> > I checked <apachedir>/build/config_vars.mk and I see this >CC = gcc, and
> I
> > can not see any env or shell vars that have CC in them.
> > I'm using a solaris 8 platform.
> > Thanks,
> > James.
> >
> >
> > On 12/20/05, John P. Dodge <do...@cruciate.ca.boeing.com> wrote:
> > >
> > > >
> > > > libtool: compile: unable to infer tagged configuration
> > > >
> > > > libtool: compile: specify a tag with `--tag'
> > > >
> > > This error is due to a missmatch between what you have set CC to in
> the
> > > shell when running configure and what the CC var is set to in the
> > > config_vars.mk file references in apxs.
> > >
> > > Either unset CC or look up the compiler (CC) reference in
> > > <apachedir>/build/config_vars.mk.
> > >
> > > Libtool thinks that you are building/linking for a different compiler.
>
> Try setting the CC var in the shell to gcc before you run configure.
>
> CC=gcc
> export CC
>
> ./configure .....
>
> ----------------------------------------
> "Mon aéroglisseur est plein d'anguilles"
> John P. Dodge
> Boeing Shared Services
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] mod_jk help

Posted by "John P. Dodge" <do...@cruciate.ca.boeing.com>.
On Wed, 21 Dec 2005, James Taylor wrote:

> Hi there,
> I'm not at all hot on compiler stuff so could you/someone please ellaborate
> a little on this  for me.
> I checked <apachedir>/build/config_vars.mk and I see this >CC = gcc, and I
> can not see any env or shell vars that have CC in them.
> I'm using a solaris 8 platform.
> Thanks,
> James.
>
>
> On 12/20/05, John P. Dodge <do...@cruciate.ca.boeing.com> wrote:
> >
> > >
> > > libtool: compile: unable to infer tagged configuration
> > >
> > > libtool: compile: specify a tag with `--tag'
> > >
> > This error is due to a missmatch between what you have set CC to in the
> > shell when running configure and what the CC var is set to in the
> > config_vars.mk file references in apxs.
> >
> > Either unset CC or look up the compiler (CC) reference in
> > <apachedir>/build/config_vars.mk.
> >
> > Libtool thinks that you are building/linking for a different compiler.

Try setting the CC var in the shell to gcc before you run configure.

CC=gcc
export CC

./configure .....

----------------------------------------
"Mon aéroglisseur est plein d'anguilles"
John P. Dodge
Boeing Shared Services


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod_jk help

Posted by James Taylor <ti...@gmail.com>.
Hi there,
I'm not at all hot on compiler stuff so could you/someone please ellaborate
a little on this  for me.
I checked <apachedir>/build/config_vars.mk and I see this >CC = gcc, and I
can not see any env or shell vars that have CC in them.
I'm using a solaris 8 platform.
Thanks,
James.


On 12/20/05, John P. Dodge <do...@cruciate.ca.boeing.com> wrote:
>
> On Tue, 20 Dec 2005, James Taylor wrote:
>
> > Hi there,
> > First off Xmas grettings to all.
> > I'm trying to install mod_jk connector on a solaris system using Apache
> 2
> > installed on my account.
> > Everything seemed to be going fine
> > -I ran buildconf.sh and configure with these options (I have an env
> variable
> > APACHE_HOME set to /home/rmorrin/sw/apache2.0)
> > >./configure --with-apache=${APACHE_HOME} --with-java-home=${JAVA_HOME}
> > --with-java-platform=2 -enable-jni
> > But I get the following error.
> >
> > Can someone please advise me on how to fix this and what my next step
> should
> > be (I think I have to change into apache2.0 dir and copy mod_jk.so to
> > APACHE_HOME
> > /modules).
> > Regards,
> > James.
> >
> >
> > libtool: compile: unable to infer tagged configuration
> >
> > libtool: compile: specify a tag with `--tag'
> >
> This error is due to a missmatch between what you have set CC to in the
> shell when running configure and what the CC var is set to in the
> config_vars.mk file references in apxs.
>
> Either unset CC or look up the compiler (CC) reference in
> <apachedir>/build/config_vars.mk.
>
> Libtool thinks that you are building/linking for a different compiler.
>
>
> ----------------------------------------
> "Mon aéroglisseur est plein d'anguilles"
> John P. Dodge
> Boeing Shared Services
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] mod_jk help

Posted by "John P. Dodge" <do...@cruciate.ca.boeing.com>.
On Tue, 20 Dec 2005, James Taylor wrote:

> Hi there,
> First off Xmas grettings to all.
> I'm trying to install mod_jk connector on a solaris system using Apache 2
> installed on my account.
> Everything seemed to be going fine
> -I ran buildconf.sh and configure with these options (I have an env variable
> APACHE_HOME set to /home/rmorrin/sw/apache2.0)
> >./configure --with-apache=${APACHE_HOME} --with-java-home=${JAVA_HOME}
> --with-java-platform=2 -enable-jni
> But I get the following error.
>
> Can someone please advise me on how to fix this and what my next step should
> be (I think I have to change into apache2.0 dir and copy mod_jk.so to
> APACHE_HOME
> /modules).
> Regards,
> James.
>
>
> libtool: compile: unable to infer tagged configuration
>
> libtool: compile: specify a tag with `--tag'
>
This error is due to a missmatch between what you have set CC to in the
shell when running configure and what the CC var is set to in the
config_vars.mk file references in apxs.

Either unset CC or look up the compiler (CC) reference in
<apachedir>/build/config_vars.mk.

Libtool thinks that you are building/linking for a different compiler.


----------------------------------------
"Mon aéroglisseur est plein d'anguilles"
John P. Dodge
Boeing Shared Services


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org