LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-05-2012, 06:55 AM   #1
sharonsreedh
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Rep: Reputation: Disabled
Angry Unable to Compile tomcat-connectors


I was trying to comapile tomcat-connectors but it fails all the time with a bunch of error messages. Please someone help me find a a way to make this possible.
native]# ./buildconf.sh
native]# ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-apache=/usr/local/apache

After configuring whe i try to make it ends up with below erro message.

native]# make
.
.
.

/usr/include/apr.h:358: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'apr_off_t'
In file included from mod_jk.c:32:
/usr/include/apr_file_info.h:198: error: expected specifier-qualifier-list before 'apr_off_t'
In file included from mod_jk.c:33:
/usr/include/apr_file_io.h:654: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/apr_file_io.h:882: error: expected declaration specifiers or '...' before 'apr_off_t'
In file included from /usr/local/apache/include/httpd.h:54,
from mod_jk.c:34:
/usr/include/apr_network_io.h:566: error: expected declaration specifiers or '...' before 'apr_off_t'
In file included from /usr/include/apr_buckets.h:32,
from /usr/local/apache/include/httpd.h:55,
from mod_jk.c:34:
/usr/include/apr_mmap.h:134: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/apr_mmap.h:161: error: expected declaration specifiers or '...' before 'apr_off_t'
In file included from /usr/local/apache/include/httpd.h:55,
from mod_jk.c:34:
/usr/include/apr_buckets.h:242: error: expected specifier-qualifier-list before 'apr_off_t'
/usr/include/apr_buckets.h:726: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/apr_buckets.h:739: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/apr_buckets.h:775: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/apr_buckets.h:925: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/apr_buckets.h:926: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/apr_buckets.h:1268: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/apr_buckets.h:1467: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/apr_buckets.h:1481: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/apr_buckets.h:1537: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/include/apr_buckets.h:1553: error: expected declaration specifiers or '...' before 'apr_off_t'
In file included from mod_jk.c:34:
/usr/local/apache/include/httpd.h:854: error: expected specifier-qualifier-list before 'apr_off_t'
In file included from /usr/local/apache/include/http_request.h:51,
from mod_jk.c:36:
/usr/local/apache/include/util_filter.h:140: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/local/apache/include/util_filter.h:300: error: expected declaration specifiers or '...' before 'apr_off_t'
In file included from mod_jk.c:37:
/usr/local/apache/include/http_core.h:235: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ap_get_limit_req_body'
/usr/local/apache/include/http_core.h:549: error: expected specifier-qualifier-list before 'apr_off_t'
/usr/local/apache/include/http_core.h:685: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/local/apache/include/http_core.h:772: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/local/apache/include/http_core.h:775: error: expected declaration specifiers or '...' before 'apr_off_t'
/usr/local/apache/include/http_core.h:778: error: 'apr_off_t' declared as function returning a function
/usr/local/apache/include/http_core.h:778: warning: parameter names (without types) in function declaration
In file included from /usr/local/apache/include/ap_mpm.h:31,
from mod_jk.c:42:
/usr/local/apache/include/scoreboard.h:104: error: field 'conn_bytes' declared as a function
/usr/local/apache/include/scoreboard.h:106: error: field 'bytes_served' declared as a function
/usr/local/apache/include/scoreboard.h:108: error: field 'my_bytes_served' declared as a function
mod_jk.c: In function 'ws_start_response':
mod_jk.c:335: error: 'request_rec' has no member named 'err_headers_out'
mod_jk.c:392: error: 'request_rec' has no member named 'headers_out'
mod_jk.c:395: error: 'request_rec' has no member named 'headers_out'
mod_jk.c:398: error: 'request_rec' has no member named 'headers_out'
mod_jk.c:409: error: 'request_rec' has no member named 'headers_out'
mod_jk.c: In function 'ws_add_log_items':
mod_jk.c:584: error: 'request_rec' has no member named 'notes'
mod_jk.c: In function 'get_content_length':
mod_jk.c:710: error: 'request_rec' has no member named 'clength'
mod_jk.c:711: error: 'request_rec' has no member named 'clength'
mod_jk.c:714: error: 'request_rec' has no member named 'headers_in'
mod_jk.c: In function 'get_env_string':
mod_jk.c:731: error: 'request_rec' has no member named 'subprocess_env'
mod_jk.c: In function 'get_env_int':
mod_jk.c:740: error: 'request_rec' has no member named 'subprocess_env'
mod_jk.c: In function 'init_ws_service':
mod_jk.c:770: error: 'request_rec' has no member named 'ap_auth_type'
mod_jk.c:772: error: 'request_rec' has no member named 'user'
mod_jk.c:777: error: 'request_rec' has no member named 'per_dir_config'
mod_jk.c:805: error: 'request_rec' has no member named 'request_config'
mod_jk.c:829: error: 'request_rec' has no member named 'subprocess_env'
mod_jk.c:836: error: 'request_rec' has no member named 'subprocess_env'
mod_jk.c:852: error: 'request_rec' has no member named 'subprocess_env'
mod_jk.c:872: error: 'request_rec' has no member named 'subprocess_env'
mod_jk.c:897: error: 'request_rec' has no member named 'read_chunked'
mod_jk.c:903: error: 'request_rec' has no member named 'args'
mod_jk.c:925: error: 'request_rec' has no member named 'unparsed_uri'
mod_jk.c:936: error: 'request_rec' has no member named 'uri'
mod_jk.c:940: error: 'request_rec' has no member named 'uri'
mod_jk.c:942: error: 'request_rec' has no member named 'uri'
mod_jk.c:946: error: 'request_rec' has no member named 'uri'
mod_jk.c:958: error: 'request_rec' has no member named 'subprocess_env'
mod_jk.c:963: error: 'request_rec' has no member named 'subprocess_env'
mod_jk.c:967: error: 'request_rec' has no member named 'subprocess_env'
mod_jk.c:994: error: 'request_rec' has no member named 'subprocess_env'
mod_jk.c:997: error: 'request_rec' has no member named 'subprocess_env'
mod_jk.c:1002: error: 'request_rec' has no member named 'subprocess_env'
mod_jk.c:1027: error: 'request_rec' has no member named 'subprocess_env'
mod_jk.c:1045: error: 'request_rec' has no member named 'headers_in'
mod_jk.c:1045: error: 'request_rec' has no member named 'headers_in'
mod_jk.c:1049: error: 'request_rec' has no member named 'headers_in'
mod_jk.c: In function 'request_log_transaction':
mod_jk.c:1578: error: 'request_rec' has no member named 'request_config'
mod_jk.c: In function 'log_worker_name':
mod_jk.c:1632: error: 'request_rec' has no member named 'notes'
mod_jk.c: In function 'log_worker_route':
mod_jk.c:1637: error: 'request_rec' has no member named 'notes'
mod_jk.c: In function 'log_request_duration':
mod_jk.c:1643: error: 'request_rec' has no member named 'notes'
mod_jk.c: In function 'log_request_line':
mod_jk.c:1653: error: 'request_rec' has no member named 'parsed_uri'
mod_jk.c:1656: error: 'request_rec' has no member named 'parsed_uri'
mod_jk.c: In function 'log_request_uri':
mod_jk.c:1689: error: 'request_rec' has no member named 'uri'
mod_jk.c: In function 'log_request_query':
mod_jk.c:1702: error: 'request_rec' has no member named 'args'
mod_jk.c:1702: error: 'request_rec' has no member named 'args'
mod_jk.c: In function 'clf_log_bytes_sent':
mod_jk.c:1712: error: 'request_rec' has no member named 'sent_bodyct'
mod_jk.c:1716: error: 'request_rec' has no member named 'bytes_sent'
mod_jk.c: In function 'log_bytes_sent':
mod_jk.c:1722: error: 'request_rec' has no member named 'sent_bodyct'
mod_jk.c:1726: error: 'request_rec' has no member named 'bytes_sent'
mod_jk.c: In function 'jk_handler':
mod_jk.c:2529: error: 'request_rec' has no member named 'handler'
mod_jk.c:2530: error: 'request_rec' has no member named 'handler'
mod_jk.c:2536: error: 'request_rec' has no member named 'subprocess_env'
mod_jk.c:2540: error: 'request_rec' has no member named 'uri'
mod_jk.c:2552: error: 'request_rec' has no member named 'notes'
mod_jk.c:2559: error: 'request_rec' has no member named 'subprocess_env'
mod_jk.c:2568: error: 'request_rec' has no member named 'uri'
mod_jk.c:2575: error: 'request_rec' has no member named 'request_config'
mod_jk.c:2589: error: 'request_rec' has no member named 'uri'
mod_jk.c:2597: error: 'request_rec' has no member named 'uri'
mod_jk.c:2601: error: 'request_rec' has no member named 'uri'
mod_jk.c:2603: error: 'request_rec' has no member named 'request_config'
mod_jk.c:2613: error: 'request_rec' has no member named 'uri'
mod_jk.c:2617: error: 'request_rec' has no member named 'notes'
mod_jk.c:2623: error: 'request_rec' has no member named 'handler'
mod_jk.c:2625: error: 'request_rec' has no member named 'request_config'
mod_jk.c:2682: error: 'request_rec' has no member named 'notes'
mod_jk.c:2745: error: 'request_rec' has no member named 'notes'
mod_jk.c:2747: error: 'request_rec' has no member named 'notes'
mod_jk.c:2764: error: 'request_rec' has no member named 'sent_bodyct'
mod_jk.c: In function 'jk_translate':
mod_jk.c:3539: error: 'request_rec' has no member named 'request_config'
mod_jk.c:3549: error: 'request_rec' has no member named 'handler'
mod_jk.c:3549: error: 'request_rec' has no member named 'handler'
mod_jk.c:3559: error: 'request_rec' has no member named 'subprocess_env'
mod_jk.c:3563: error: 'request_rec' has no member named 'uri'
mod_jk.c:3571: error: 'request_rec' has no member named 'handler'
mod_jk.c:3573: error: 'request_rec' has no member named 'handler'
mod_jk.c:3580: error: 'request_rec' has no member named 'uri'
mod_jk.c:3599: error: 'request_rec' has no member named 'uri'
mod_jk.c:3608: error: 'request_rec' has no member named 'uri'
mod_jk.c:3613: error: 'request_rec' has no member named 'uri'
mod_jk.c:3616: error: 'request_rec' has no member named 'request_config'
mod_jk.c:3620: error: 'request_rec' has no member named 'handler'
mod_jk.c:3621: error: 'request_rec' has no member named 'notes'
mod_jk.c:3626: error: 'request_rec' has no member named 'handler'
mod_jk.c:3627: error: 'request_rec' has no member named 'notes'
mod_jk.c:3633: error: 'request_rec' has no member named 'uri'
mod_jk.c:3671: error: 'request_rec' has no member named 'uri'
mod_jk.c:3701: error: 'request_rec' has no member named 'filename'
mod_jk.c:3714: error: 'request_rec' has no member named 'uri'
mod_jk.c:3725: error: 'request_rec' has no member named 'uri'
mod_jk.c: In function 'jk_map_to_storage':
mod_jk.c:3737: error: 'request_rec' has no member named 'request_config'
mod_jk.c:3742: error: 'request_rec' has no member named 'request_config'
mod_jk.c:3745: error: 'request_rec' has no member named 'notes'
mod_jk.c:3753: error: 'request_rec' has no member named 'handler'
mod_jk.c:3753: error: 'request_rec' has no member named 'handler'
mod_jk.c:3763: error: 'request_rec' has no member named 'subprocess_env'
mod_jk.c:3767: error: 'request_rec' has no member named 'uri'
mod_jk.c:3776: error: 'request_rec' has no member named 'uri'
mod_jk.c:3781: error: 'request_rec' has no member named 'uri'
mod_jk.c:3784: error: 'request_rec' has no member named 'request_config'
mod_jk.c:3788: error: 'request_rec' has no member named 'handler'
mod_jk.c:3789: error: 'request_rec' has no member named 'notes'
mod_jk.c:3793: error: 'request_rec' has no member named 'notes'
mod_jk.c:3800: error: 'request_rec' has no member named 'uri'
mod_jk.c:3804: error: 'request_rec' has no member named 'uri'
mod_jk.c:3805: error: 'request_rec' has no member named 'uri'
mod_jk.c:3810: error: 'request_rec' has no member named 'uri'
mod_jk.c:3814: error: 'request_rec' has no member named 'filename'
mod_jk.c:3815: error: 'request_rec' has no member named 'filename'
mod_jk.c:3825: error: 'request_rec' has no member named 'notes'
mod_jk.c:3828: error: 'request_rec' has no member named 'filename'
mod_jk.c:3828: error: 'request_rec' has no member named 'uri'
mod_jk.c:3831: error: 'request_rec' has no member named 'filename'
mod_jk.c:3832: error: 'request_rec' has no member named 'filename'
mod_jk.c:3833: error: 'request_rec' has no member named 'filename'
mod_jk.c:3841: error: 'request_rec' has no member named 'filename'
mod_jk.c:3842: error: 'request_rec' has no member named 'filename'
mod_jk.c:3842: error: 'request_rec' has no member named 'filename'
mod_jk.c:3850: error: 'request_rec' has no member named 'finfo'
mod_jk.c:3850: error: 'request_rec' has no member named 'filename'
make[1]: *** [mod_jk.lo] Error 1
make[1]: Leaving directory `/usr/local/tomcat-connectors-1.2.37-src/native/apache-2.0'
make: *** [all-recursive] Error 1

Thanks and Regards
Sharon Sreedh
 
Old 06-05-2012, 08:04 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,520

Rep: Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502
Quote:
/usr/include/apr.h:358: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'apr_off_t'
In file included from mod_jk.c:32:
<-snip->
You're mixing headers from the apr installed by your distro package manager (in /usr/include), with the apache (that is installed from source) headers.
You better clean your sources and re-run ./configure specifying the apache apr headers:
Code:
make distclean
CPPFLAGS=-I/usr/local/apache/include ./configure --with-apxs=/usr/local/apache/bin/apxs
Regards
 
1 members found this post helpful.
Old 06-05-2012, 08:20 AM   #3
sharonsreedh
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by bathory View Post
You're mixing headers from the apr installed by your distro package manager (in /usr/include), with the apache (that is installed from source) headers.
You better clean your sources and re-run ./configure specifying the apache apr headers:
Code:
make distclean
CPPFLAGS=-I/usr/local/apache/include ./configure --with-apxs=/usr/local/apache/bin/apxs
Regards
Thanks a Million
It resolved the issue... I could compile tomcat-connectors successfully...
Thanks again..
Sharonsreedh
 
  


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
Why I unable to use tomcat on linux(ubuntu-11.04) Abrar Ahmad Khan Linux - Software 1 06-22-2011 08:42 AM
Tomcat - Apache Connectors on FC1....... chillyroll Linux - Software 1 10-30-2006 08:15 AM
Need help in setting up connectors between Apache and Tomcat on Fedora chillyroll Linux - Software 0 10-27-2006 07:49 AM
Unable to shut down tomcat MakingOfAGeek Linux - Newbie 1 10-26-2003 08:48 AM
Tomcat 4.1.24 compile problems CodeWarrior Linux - Software 0 07-17-2003 11:19 PM


All times are GMT -5. The time now is 07:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration