LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-27-2004, 10:28 AM   #1
bullshit
Member
 
Registered: Oct 2003
Posts: 44

Rep: Reputation: 15
Help on compiling mod_jk2


Hi everyone:

For couple of days I've been trying to compile mod_jk2 .so for Apache to port jsp request to TOMCAT, After a succefull ./configure [options] I'm gettinng the next errors:
cc1: error: unrecognized option -fstack-protector
cc1: error: unrecognized option -fstack-protector
make[1] [../../../build/jk2/apache2/jk_channel_apr_socket.lo] Error 1

I've been doing some Google, and no answers whatsoever adressing this issue.

Apache2.0.48 and Tomcat 5, both working otherwise.

Any help apreciated.

Cheers
 
Old 09-27-2004, 01:35 PM   #2
dcostakos
Member
 
Registered: Aug 2004
Posts: 44

Rep: Reputation: 15
Stack overflow protection is probably not included with GCC in your distribution. I would suggest editing the Makefile for Apache2.

I have gotten this to work on RedHat ES 3, RedHat AS 2.1 and SuSE 9.1 by modifying certain sections of the Make file which the connector configure script does not generate correctly.

So, I would run your configure, then I'd modify the file server/apache2/Makefile and remove any "-fstack-protector" options.

NB: I also had to append the output of "${APACHE_HOME}/bin/apu-config --link-ld --libs" to the end of the APR_LIBS variable in the above Makefile to get my build to work.

Hope this helps.
 
Old 09-28-2004, 03:17 PM   #3
bullshit
Member
 
Registered: Oct 2003
Posts: 44

Original Poster
Rep: Reputation: 15
Thanks a lot dcostakos, I just got to see your reply now and fired up my box to aply the changes you advised.

I forgot to mention that my liux box is ruuniing Mandrake 10.0 Official so it's not so clear where the apache home dir resides. Ia ssume it is located at /etc/httpd/2.0, correct me if I'm wrong. Mandrake is great tool to learn but when you go deeper itīs when problems start to emerge.

I wish myself luck

Thanks a lot again.

Last edited by bullshit; 09-28-2004 at 03:22 PM.
 
Old 09-28-2004, 04:26 PM   #4
bullshit
Member
 
Registered: Oct 2003
Posts: 44

Original Poster
Rep: Reputation: 15
You got it!

Damn, you got it , just like you told me to. I didn't have to do anything to the $APR_LIBS.
It's easy when you know how!
Thanks dcostakos for the masterpiece

Cheers everyone.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
where can I get the mod_jk2 rpm for mandrake10 chinaundead Mandriva 1 04-08-2004 11:11 PM
mod_jk2, I just can't do this. techrolla Linux - Networking 4 01-07-2004 07:29 AM
mod_jk2 help building techrolla Linux - Networking 18 12-08-2003 12:05 AM
mod_jk2 Apache error ardochoke Linux - Networking 5 08-31-2003 04:52 PM
MOD_JK2 with TOMCAT4.1.24-Apache2 awedaylong Linux - Networking 2 07-29-2003 11:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration