Re: ApacheTomcat Connector mod_jk, receiving 0711-244 ERROR when I dp a make.

2007-11-21 Thread Rainer Jung

Hello Richard,

Blumlein,Richard wrote:

Hello Rainer and group.
I tried using gmake instead of make and I got much further.


Good.


In the instdso.sh script it checks to see if AIX. If AIX it removes the 
component.
Not sure if this is ok.
The mv fails since it cannot find mod_jk.so.0 in the apache-1.3 directory to 
rename it
to mod_jk.so


I assume all of the above are from the make install step?


I did find mod_jk.so.0 in the apache-1.3/.libs directory so can I copy it as
mod_jk.so to the Apache Directory myself?


Exactly, more precisely, if there is already an mod_jk.so in the .libs, 
that's actually the final result of the build process, and you can put 
it into every directory you like to install it. To really use it, you 
have to give it's path name in the LoadModule httpd directive.


Does the .so file look OK? Is it really a shared object file (what do 
you get, if you call file .../mod_jk.so)?.



../scripts/build/instdso.sh SH_LIBTOOL='/bin/sh ../libtool' mod_jk.la `pwd`
rm -f /software/source/gnu/apache_tomcat/work/tomcat-connectors-1.2.25-src/nativ
e/apache-1.3/mod_jk.so
/bin/sh ../libtool --mode=install cp mod_jk.la /software/source/gnu/apache_tomca
t/work/tomcat-connectors-1.2.25-src/native/apache-1.3/
cp .libs/mod_jk.a /software/source/gnu/apache_tomcat/work/tomcat-connectors-1.2.
25-src/native/apache-1.3/mod_jk.a
cp .libs/mod_jk.lai /software/source/gnu/apache_tomcat/work/tomcat-connectors-1.
2.25-src/native/apache-1.3/mod_jk.la
libtool: install: warning: remember to run `libtool --finish /opt/freeware/apach
e/libexec'
mv: 0653-401 Cannot rename /software/source/gnu/apache_tomcat/work/tomcat-connec
tors-1.2.25-src/native/apache-1.3/mod_jk.so.0 to /software/source/gnu/apache_tom
cat/work/tomcat-connectors-1.2.25-src/native/apache-1.3/mod_jk.so:
 A file or directory in the path name does not exist.
gmake[1]: Leaving directory `/software/source/gnu/apache_tomcat/work/tomcat-conn
ectors-1.2.25-src/native/apache-1.3'


By the way, I don't have a modules directory in my apache web server
Directory. Apache is install as part of the linux package using rpm in our shop,
so hopefully this is ok. This is what there is. Do I need to create it?


Ah, OK: for httpd 1.3 the directory is libexec, not modules. It has 
exactly the same purpose. As noted above, you can put the file in any 
place you like, as long as the LoadModule contains the path name. 
Convention is a sub directory libexec for httpd 1.3 and modules for 2.x 
below the ServerRoot of httpd.



  pwd
/opt/freeware/apache

ls

bin/  include/  libexec/  man/  sbin/ share/

Thanks for all the help
Rich


It looks like you are now close to httpd+mod_jk startup :)

Regards,

Rainer



From: Blumlein,Richard
Sent: Tuesday, November 20, 2007 10:54 AM
To: 'users@tomcat.apache.org'
Subject: Re: ApacheTomcat Connector mod_jk, receiving 0711-244 ERROR when I dp 
a make.




Hi Rainer,

Yes there were numerous -mode=compile statements before the first -mode=link 
which

failed. It seems there is a hole in the process. I am following various docs 
which

say to run the configure, then the make/make install.

Yes, it seems something is not being passed properly.

Rich



  usr/bin/sh ../libtool --mode=compile xlc -I/opt/freeware/apache/include

 -g -O2 -DAIX=510 -U__STR__ -DAIX_BIND_PROCESSOR -DMOD_SSL=208119 -DUSE_HSREGEX

-DEAPI -DJK_PREFORK -g  -I /usr/local/bin/java/include -I /usr/local/bin/java/in

clude/ -c ./jk_status.c -o ./jk_status.lo

 xlc -I/opt/freeware/apache/include -g -O2 -DAIX=510 -U__STR__ -DAIX_BIND_PROCES

SOR -DMOD_SSL=208119 -DUSE_HSREGEX -DEAPI -DJK_PREFORK -g -I /usr/local/bin/java

/include -I /usr/local/bin/java/include/ -c ./jk_status.c  -DPIC -o ./.libs/jk_s

tatus.o

Target all is up to date.

Making all in apache-1.3

/usr/bin/sh ../libtool --mode=compile xlc -DUSE_APACHE_MD5 -I ../common

-I /usr/local/bin/java/include -I /usr/local/bin/java/include/ -I/opt/freeware/a

pache/include -O2 -DAIX=510 -U__STR__ -DAIX_BIND_PROCESSOR -DMOD_SSL=208119 -DUS

E_HSREGEX -DEAPI -DJK_PREFORK -g  -I../common -c mod_jk.c -o mod_jk.lo

mkdir .libs

 xlc -DUSE_APACHE_MD5 -I ../common -I /usr/local/bin/java/include -I /usr/local/

bin/java/include/ -I/opt/freeware/apache/include -O2 -DAIX=510 -U__STR__ -DAIX_B

IND_PROCESSOR -DMOD_SSL=208119 -DUSE_HSREGEX -DEAPI -DJK_PREFORK -g -I../common

-c mod_jk.c  -DPIC -o .libs/mod_jk.o

/usr/bin/sh ../libtool --mode=link xlc -o mod_jk.la -module -rpath /opt/

freeware/apache/libexec

generating symbol list for `mod_jk.la'

/usr/bin/nm -B -BCpg   | awk '{ if ((($2 == T) || ($2 == D) || ($2 == B))





/usr/bin/sh ../libtool --mode=link xlc -o mod_jk.la -module -rpath /opt/



freeware/apache/libexec




There should be a lot of object files in the above libtool command.

Before that output, all the files in common should have been compiled

and the object files should appear in the link.




generating symbol list

Re: ApacheTomcat Connector mod_jk, receiving 0711-244 ERROR when I dp a make.

2007-11-20 Thread Blumlein,Richard


Hi Rainer,

Yes there were numerous -mode=compile statements before the first -mode=link 
which

failed. It seems there is a hole in the process. I am following various docs 
which

say to run the configure, then the make/make install.

Yes, it seems something is not being passed properly.

Rich



  usr/bin/sh ../libtool --mode=compile xlc -I/opt/freeware/apache/include

 -g -O2 -DAIX=510 -U__STR__ -DAIX_BIND_PROCESSOR -DMOD_SSL=208119 -DUSE_HSREGEX

-DEAPI -DJK_PREFORK -g  -I /usr/local/bin/java/include -I /usr/local/bin/java/in

clude/ -c ./jk_status.c -o ./jk_status.lo

 xlc -I/opt/freeware/apache/include -g -O2 -DAIX=510 -U__STR__ -DAIX_BIND_PROCES

SOR -DMOD_SSL=208119 -DUSE_HSREGEX -DEAPI -DJK_PREFORK -g -I /usr/local/bin/java

/include -I /usr/local/bin/java/include/ -c ./jk_status.c  -DPIC -o ./.libs/jk_s

tatus.o

Target all is up to date.

Making all in apache-1.3

/usr/bin/sh ../libtool --mode=compile xlc -DUSE_APACHE_MD5 -I ../common

-I /usr/local/bin/java/include -I /usr/local/bin/java/include/ -I/opt/freeware/a

pache/include -O2 -DAIX=510 -U__STR__ -DAIX_BIND_PROCESSOR -DMOD_SSL=208119 -DUS

E_HSREGEX -DEAPI -DJK_PREFORK -g  -I../common -c mod_jk.c -o mod_jk.lo

mkdir .libs

 xlc -DUSE_APACHE_MD5 -I ../common -I /usr/local/bin/java/include -I /usr/local/

bin/java/include/ -I/opt/freeware/apache/include -O2 -DAIX=510 -U__STR__ -DAIX_B

IND_PROCESSOR -DMOD_SSL=208119 -DUSE_HSREGEX -DEAPI -DJK_PREFORK -g -I../common

-c mod_jk.c  -DPIC -o .libs/mod_jk.o

/usr/bin/sh ../libtool --mode=link xlc -o mod_jk.la -module -rpath /opt/

freeware/apache/libexec

generating symbol list for `mod_jk.la'

/usr/bin/nm -B -BCpg   | awk '{ if ((($2 == T) || ($2 == D) || ($2 == B))





 /usr/bin/sh ../libtool --mode=link xlc -o mod_jk.la -module -rpath /opt/

 freeware/apache/libexec



There should be a lot of object files in the above libtool command.

Before that output, all the files in common should have been compiled

and the object files should appear in the link.



 generating symbol list for `mod_jk.la'



Again, in the next line, the nm command doesn't have any file arguments.

It should have the same object files as arguments, that are missing in

the above libtool line.



These are just formal observations though, I've got not AIX specific

experience.



 /usr/bin/nm -B -BCpg   | awk '{ if ((($2 == T) || ($2 == D) || ($2 == 
 B))

  (substr($3,1,1) != .)) { print $3 } }' | sort -u  .libs/mod_jk.exp

 Usage: nm [-ACfhlprTv] [-B|-P] [-e|-g|-u] [-d|-o|-x|{-t [d|x|o]}]

 [-X{32|64|32_64|d64|any}] [--] File ...

 xlc -Wl,-bM:SRE -o .libs/mod_jk.so.0   -lc -Wl,-bnoentry  
 -Wl,-bE:.libs/mod_jk.e

 xp ${wl}-berok

 ld: 0711-244 ERROR: No csects or exported symbols have been saved.

 make: 1254-004 The error code from the last command is 8.





 Stop.

 make: 1254-004 The error code from the last command is 1



Regards,



Rainer



Re: ApacheTomcat Connector mod_jk, receiving 0711-244 ERROR when I dp a make.

2007-11-20 Thread Rainer Jung

Blumlein,Richard wrote:


Hi Rainer,

Yes there were numerous -mode=compile statements before the first -mode=link 
which

failed. It seems there is a hole in the process. I am following various docs 
which


Those files need to be show up again as arguments in the libtool link 
step, which in turn will put them into the nm.


In my Makefile in the apache-1.3 folder, there is:

mod_jk.la: mod_jk.lo $(APACHE_OBJECTS)
 ${MOD_LINK} -o $@ -module -rpath ${libexecdir} $^

It could be, that your make doesn't understand $^. The make docs say:

=

$^
The names of all the prerequisites, with spaces between them. For 
prerequisites which are archive members, only the member named is used 
(see Archives). A target has only one prerequisite on each other file it 
depends on, no matter how many times each file is listed as a 
prerequisite. So if you list a prerequisite more than once for a target, 
the value of $^ contains just one copy of the name. This list does not 
contain any of the order-only prerequisites; for those see the `$|' 
variable, below.


=

You could try to replace $^ in the Makefile with

mod_jk.lo $(APACHE_OBJECTS)

(two places).

Regards,

Rainer


say to run the configure, then the make/make install.

Yes, it seems something is not being passed properly.

Rich



  usr/bin/sh ../libtool --mode=compile xlc -I/opt/freeware/apache/include

 -g -O2 -DAIX=510 -U__STR__ -DAIX_BIND_PROCESSOR -DMOD_SSL=208119 -DUSE_HSREGEX

-DEAPI -DJK_PREFORK -g  -I /usr/local/bin/java/include -I /usr/local/bin/java/in

clude/ -c ./jk_status.c -o ./jk_status.lo

 xlc -I/opt/freeware/apache/include -g -O2 -DAIX=510 -U__STR__ -DAIX_BIND_PROCES

SOR -DMOD_SSL=208119 -DUSE_HSREGEX -DEAPI -DJK_PREFORK -g -I /usr/local/bin/java

/include -I /usr/local/bin/java/include/ -c ./jk_status.c  -DPIC -o ./.libs/jk_s

tatus.o

Target all is up to date.

Making all in apache-1.3

/usr/bin/sh ../libtool --mode=compile xlc -DUSE_APACHE_MD5 -I ../common

-I /usr/local/bin/java/include -I /usr/local/bin/java/include/ -I/opt/freeware/a

pache/include -O2 -DAIX=510 -U__STR__ -DAIX_BIND_PROCESSOR -DMOD_SSL=208119 -DUS

E_HSREGEX -DEAPI -DJK_PREFORK -g  -I../common -c mod_jk.c -o mod_jk.lo

mkdir .libs

 xlc -DUSE_APACHE_MD5 -I ../common -I /usr/local/bin/java/include -I /usr/local/

bin/java/include/ -I/opt/freeware/apache/include -O2 -DAIX=510 -U__STR__ -DAIX_B

IND_PROCESSOR -DMOD_SSL=208119 -DUSE_HSREGEX -DEAPI -DJK_PREFORK -g -I../common

-c mod_jk.c  -DPIC -o .libs/mod_jk.o

/usr/bin/sh ../libtool --mode=link xlc -o mod_jk.la -module -rpath /opt/

freeware/apache/libexec

generating symbol list for `mod_jk.la'

/usr/bin/nm -B -BCpg   | awk '{ if ((($2 == T) || ($2 == D) || ($2 == B))





/usr/bin/sh ../libtool --mode=link xlc -o mod_jk.la -module -rpath /opt/



freeware/apache/libexec




There should be a lot of object files in the above libtool command.

Before that output, all the files in common should have been compiled

and the object files should appear in the link.




generating symbol list for `mod_jk.la'




Again, in the next line, the nm command doesn't have any file arguments.

It should have the same object files as arguments, that are missing in

the above libtool line.



These are just formal observations though, I've got not AIX specific

experience.




/usr/bin/nm -B -BCpg   | awk '{ if ((($2 == T) || ($2 == D) || ($2 == B))



 (substr($3,1,1) != .)) { print $3 } }' | sort -u  .libs/mod_jk.exp



Usage: nm [-ACfhlprTv] [-B|-P] [-e|-g|-u] [-d|-o|-x|{-t [d|x|o]}]



[-X{32|64|32_64|d64|any}] [--] File ...



xlc -Wl,-bM:SRE -o .libs/mod_jk.so.0   -lc -Wl,-bnoentry  -Wl,-bE:.libs/mod_jk.e



xp ${wl}-berok



ld: 0711-244 ERROR: No csects or exported symbols have been saved.



make: 1254-004 The error code from the last command is 8.





Stop.



make: 1254-004 The error code from the last command is 1




Regards,



Rainer



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ApacheTomcat Connector mod_jk, receiving 0711-244 ERROR when I dp a make.

2007-11-20 Thread Blumlein,Richard
Hello Rainer and group.
I tried using gmake instead of make and I got much further.
In the instdso.sh script it checks to see if AIX. If AIX it removes the 
component.
Not sure if this is ok.
The mv fails since it cannot find mod_jk.so.0 in the apache-1.3 directory to 
rename it
to mod_jk.so

I did find mod_jk.so.0 in the apache-1.3/.libs directory so can I copy it as
mod_jk.so to the Apache Directory myself?


../scripts/build/instdso.sh SH_LIBTOOL='/bin/sh ../libtool' mod_jk.la `pwd`
rm -f /software/source/gnu/apache_tomcat/work/tomcat-connectors-1.2.25-src/nativ
e/apache-1.3/mod_jk.so
/bin/sh ../libtool --mode=install cp mod_jk.la /software/source/gnu/apache_tomca
t/work/tomcat-connectors-1.2.25-src/native/apache-1.3/
cp .libs/mod_jk.a /software/source/gnu/apache_tomcat/work/tomcat-connectors-1.2.
25-src/native/apache-1.3/mod_jk.a
cp .libs/mod_jk.lai /software/source/gnu/apache_tomcat/work/tomcat-connectors-1.
2.25-src/native/apache-1.3/mod_jk.la
libtool: install: warning: remember to run `libtool --finish /opt/freeware/apach
e/libexec'
mv: 0653-401 Cannot rename /software/source/gnu/apache_tomcat/work/tomcat-connec
tors-1.2.25-src/native/apache-1.3/mod_jk.so.0 to /software/source/gnu/apache_tom
cat/work/tomcat-connectors-1.2.25-src/native/apache-1.3/mod_jk.so:
 A file or directory in the path name does not exist.
gmake[1]: Leaving directory `/software/source/gnu/apache_tomcat/work/tomcat-conn
ectors-1.2.25-src/native/apache-1.3'


By the way, I don't have a modules directory in my apache web server
Directory. Apache is install as part of the linux package using rpm in our shop,
so hopefully this is ok. This is what there is. Do I need to create it?

  pwd
/opt/freeware/apache
 ls
bin/  include/  libexec/  man/  sbin/ share/


Thanks for all the help
Rich


From: Blumlein,Richard
Sent: Tuesday, November 20, 2007 10:54 AM
To: 'users@tomcat.apache.org'
Subject: Re: ApacheTomcat Connector mod_jk, receiving 0711-244 ERROR when I dp 
a make.




Hi Rainer,

Yes there were numerous -mode=compile statements before the first -mode=link 
which

failed. It seems there is a hole in the process. I am following various docs 
which

say to run the configure, then the make/make install.

Yes, it seems something is not being passed properly.

Rich



  usr/bin/sh ../libtool --mode=compile xlc -I/opt/freeware/apache/include

 -g -O2 -DAIX=510 -U__STR__ -DAIX_BIND_PROCESSOR -DMOD_SSL=208119 -DUSE_HSREGEX

-DEAPI -DJK_PREFORK -g  -I /usr/local/bin/java/include -I /usr/local/bin/java/in

clude/ -c ./jk_status.c -o ./jk_status.lo

 xlc -I/opt/freeware/apache/include -g -O2 -DAIX=510 -U__STR__ -DAIX_BIND_PROCES

SOR -DMOD_SSL=208119 -DUSE_HSREGEX -DEAPI -DJK_PREFORK -g -I /usr/local/bin/java

/include -I /usr/local/bin/java/include/ -c ./jk_status.c  -DPIC -o ./.libs/jk_s

tatus.o

Target all is up to date.

Making all in apache-1.3

/usr/bin/sh ../libtool --mode=compile xlc -DUSE_APACHE_MD5 -I ../common

-I /usr/local/bin/java/include -I /usr/local/bin/java/include/ -I/opt/freeware/a

pache/include -O2 -DAIX=510 -U__STR__ -DAIX_BIND_PROCESSOR -DMOD_SSL=208119 -DUS

E_HSREGEX -DEAPI -DJK_PREFORK -g  -I../common -c mod_jk.c -o mod_jk.lo

mkdir .libs

 xlc -DUSE_APACHE_MD5 -I ../common -I /usr/local/bin/java/include -I /usr/local/

bin/java/include/ -I/opt/freeware/apache/include -O2 -DAIX=510 -U__STR__ -DAIX_B

IND_PROCESSOR -DMOD_SSL=208119 -DUSE_HSREGEX -DEAPI -DJK_PREFORK -g -I../common

-c mod_jk.c  -DPIC -o .libs/mod_jk.o

/usr/bin/sh ../libtool --mode=link xlc -o mod_jk.la -module -rpath /opt/

freeware/apache/libexec

generating symbol list for `mod_jk.la'

/usr/bin/nm -B -BCpg   | awk '{ if ((($2 == T) || ($2 == D) || ($2 == B))





 /usr/bin/sh ../libtool --mode=link xlc -o mod_jk.la -module -rpath /opt/

 freeware/apache/libexec



There should be a lot of object files in the above libtool command.

Before that output, all the files in common should have been compiled

and the object files should appear in the link.



 generating symbol list for `mod_jk.la'



Again, in the next line, the nm command doesn't have any file arguments.

It should have the same object files as arguments, that are missing in

the above libtool line.



These are just formal observations though, I've got not AIX specific

experience.



 /usr/bin/nm -B -BCpg   | awk '{ if ((($2 == T) || ($2 == D) || ($2 == 
 B))

  (substr($3,1,1) != .)) { print $3 } }' | sort -u  .libs/mod_jk.exp

 Usage: nm [-ACfhlprTv] [-B|-P] [-e|-g|-u] [-d|-o|-x|{-t [d|x|o]}]

 [-X{32|64|32_64|d64|any}] [--] File ...

 xlc -Wl,-bM:SRE -o .libs/mod_jk.so.0   -lc -Wl,-bnoentry  
 -Wl,-bE:.libs/mod_jk.e

 xp ${wl}-berok

 ld: 0711-244 ERROR: No csects or exported symbols have been saved.

 make: 1254-004 The error code from the last command is 8.





 Stop.

 make: 1254-004 The error code from the last command is 1



Regards,



Rainer