You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by fredk2 <fr...@gmail.com> on 2006/08/05 02:02:52 UTC

Problem compiling mod_jk 1.2.18 with Apache 1.3.27

Hi:

I can succesfully compile mod_jk 1.2.18 against Apache 2.2.2 (configure
--with-apxs and make), but when I compile against 1.3.27 and try to start
apache I get the following error:

Solaris 8:

Syntax error on line 8 of /test/site/conf/apache-tomcat_jk.conf:
Cannot load /test/apache_modules/mod_jk.so into server:
 ld.so.1: /test/apache/bin/httpd: fatal: relocation error:
 file /test/apache_modules/mod_jk.so:
 symbol ap_popenf_ex: referenced symbol not found

Linux RHEL3:

Syntax error on line 12 of /test/site/conf/apache-tomcat_jk.conf:
Cannot load /test/apache_modules/mod_jk.so into server:
/test/apache_modules/mod_jk.so: undefined symbol: ap_popenf_ex

There were no configure/make/compilation errors or failures.

As I am fairly novice to compilation, would someone have an idea or a way to
get more clues? Is this a configuration/compilation issue - missing some CC
or LFLAGS or is there an issue with the older apache 1.3.x and older gcc ?
I am using the same gcc version as used for the original apache compilation
(hoping to avoid such object linking errors :(

All replies will be very much appreciated... Thanks
Fred
-- 
View this message in context: http://www.nabble.com/Problem-compiling-mod_jk-1.2.18-with-Apache-1.3.27-tf2054160.html#a5659683
Sent from the Tomcat - User forum at Nabble.com.


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


Re: Problem compiling mod_jk 1.2.18 with Apache 1.3.27

Posted by fredk2 <fr...@gmail.com>.
Hi Rainer,

Wonderful, many many thanks - your patch worked beautifully.  I have no more
errors with 1.3.27 on Solaris 8 nor Linux.

(my apologies for the delay - I wasted time experimenting with the patch
command on Solaris and Linux :-(

I am opening another email thread about some strange behaviors in the
logging.

thanks again,
Fred
-- 
View this message in context: http://www.nabble.com/Problem-compiling-mod_jk-1.2.18-with-Apache-1.3.27-tf2054160.html#a5695848
Sent from the Tomcat - User forum at Nabble.com.


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


Re: Problem compiling mod_jk 1.2.18 with Apache 1.3.27

Posted by Rainer Jung <ra...@kippdata.de>.
Could you please try the following patch to native/apache-1.3/mod_jk.c, 
that should also work with older apache versions:

===================================================================
--- mod_jk.c    (revision 423615)
+++ mod_jk.c    (working copy)
@@ -2039,8 +2039,13 @@
      }
      else if (*conf->log_file != '\0') {
          char *log_file = ap_server_root_relative(p, conf->log_file);
+#if AP_MODULE_MAGIC_AT_LEAST(19990320,14)
          if ((conf->log_fd = ap_popenf_ex(p, log_file, xfer_flags, 
xfer_mode, 1))
               < 0) {
+#else
+        if ((conf->log_fd = ap_popenf(p, log_file, xfer_flags, xfer_mode))
+             < 0) {
+#endif
              ap_log_error(APLOG_MARK, APLOG_ERR, s,
                           "mod_jk: could not open JkLog " "file %s", 
log_file);
              exit(1);

Your feedback is highly appreciated.

Regards,

Rainer

fredk2 wrote:
> Hi:
> 
> I can succesfully compile mod_jk 1.2.18 against Apache 2.2.2 (configure
> --with-apxs and make), but when I compile against 1.3.27 and try to start
> apache I get the following error:
> 
> Solaris 8:
> 
> Syntax error on line 8 of /test/site/conf/apache-tomcat_jk.conf:
> Cannot load /test/apache_modules/mod_jk.so into server:
>  ld.so.1: /test/apache/bin/httpd: fatal: relocation error:
>  file /test/apache_modules/mod_jk.so:
>  symbol ap_popenf_ex: referenced symbol not found
> 
> Linux RHEL3:
> 
> Syntax error on line 12 of /test/site/conf/apache-tomcat_jk.conf:
> Cannot load /test/apache_modules/mod_jk.so into server:
> /test/apache_modules/mod_jk.so: undefined symbol: ap_popenf_ex
> 
> There were no configure/make/compilation errors or failures.
> 
> As I am fairly novice to compilation, would someone have an idea or a way to
> get more clues? Is this a configuration/compilation issue - missing some CC
> or LFLAGS or is there an issue with the older apache 1.3.x and older gcc ?
> I am using the same gcc version as used for the original apache compilation
> (hoping to avoid such object linking errors :(
> 
> All replies will be very much appreciated... Thanks
> Fred

-- 
kippdata informationstechnologie GmbH
Bornheimer Str. 33a
53111 Bonn

Tel.: 0228/98549-0
Fax:  0228/98549-50
www.kippdata.de
=======================
kippdata informationstechnologie GmbH
Bornheimer Str. 33a
D-53111 Bonn

Tel.: +49/0228/98549-0
Fax:  +49/0228/98549-50
www.kippdata.de

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


Re: Problem compiling mod_jk 1.2.18 with Apache 1.3.27

Posted by Rainer Jung <ra...@kippdata.de>.
Thanks for this information!

We introduced piped logs to mod_jk in 1.2.18. Unfortunately I used an 
API call into Apache, that has only been introduced with 1.3.28 (3 years 
ago). Your version 1.3.27 was the last one that doesn't have ap_popenf_ex().

I'll check, if I can work around that problem for the next mod_jk 
release. Is there any special reason you need to use a version of apache 
nearly 4 years old? Is it being bundled with the platform?

Regards,

Rainer

fredk2 wrote:
> Hi:
> 
> I can succesfully compile mod_jk 1.2.18 against Apache 2.2.2 (configure
> --with-apxs and make), but when I compile against 1.3.27 and try to start
> apache I get the following error:
> 
> Solaris 8:
> 
> Syntax error on line 8 of /test/site/conf/apache-tomcat_jk.conf:
> Cannot load /test/apache_modules/mod_jk.so into server:
>  ld.so.1: /test/apache/bin/httpd: fatal: relocation error:
>  file /test/apache_modules/mod_jk.so:
>  symbol ap_popenf_ex: referenced symbol not found
> 
> Linux RHEL3:
> 
> Syntax error on line 12 of /test/site/conf/apache-tomcat_jk.conf:
> Cannot load /test/apache_modules/mod_jk.so into server:
> /test/apache_modules/mod_jk.so: undefined symbol: ap_popenf_ex
> 
> There were no configure/make/compilation errors or failures.
> 
> As I am fairly novice to compilation, would someone have an idea or a way to
> get more clues? Is this a configuration/compilation issue - missing some CC
> or LFLAGS or is there an issue with the older apache 1.3.x and older gcc ?
> I am using the same gcc version as used for the original apache compilation
> (hoping to avoid such object linking errors :(
> 
> All replies will be very much appreciated... Thanks
> Fred


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