LinuxQuestions.org
Visit Jeremy's Blog.
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 11-26-2014, 10:03 AM   #1
pavanchauhan
Member
 
Registered: Nov 2013
Posts: 36

Rep: Reputation: Disabled
Unhappy suphp make command error


I'm using php 5.5.14 version
and apache 2.2 and apr version 1.5.1
CENTOS 6.5 64_BIT

[root@corp20 suphp-0.7.1]# ./configure --prefix=/usr/local/ --sysconfdir=/etc --with-apr=/usr/local/apr/bin/apr-1-config --with-apxs=/usr/local/apache/bin/apxs --with-apache-usr=apache --with-setid-mode=owner

config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/apache/Makefile
config.status: creating src/apache2/Makefile
config.status: creating src/config.h
config.status: executing depfiles commands


THIS COMMAND IS SUCCESSFULLY RUN

THEN AFTER

I RUN THIS COMMAND
[root@corp20 suphp-0.7.1]# make

mod_suphp.c:1112: error: ‘request_rec’ has no member named ‘output_filters’
mod_suphp.c:1112: error: too many arguments to function ‘ap_pass_brigade’
mod_suphp.c: In function ‘suphp_register_hooks’:
mod_suphp.c:1126: error: ‘APR_HOOK_MIDDLE’ undeclared (first use in this function)
make[3]: *** [mod_suphp.lo] Error 1
make[3]: Leaving directory `/usr/local/src/suphp-0.7.1/src/apache2'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/suphp-0.7.1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/suphp-0.7.1/src'
make: *** [all-recursive] Error 1


I GOT THIS ERROR, I TRIED TO SEARCH SOLUTION ON THE GOOGLE BUT NOT GET SUCCESS.
I HAD ALSO TRIED TO APACHE 2.4 VERSION AND ALSO APR VERSION BUT PROBLEM SAME.
ANYBODY COULD HELP ME, I'M EXPECTING VERY GRATEFUL ANSWER
 
Old 11-27-2014, 03:49 AM   #2
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 317

Rep: Reputation: 73
Hi,

Did you also install the apr header files? Normally they should be in the developers packages.


Also, I was wondering why you are compiling an old version of suphp (this one is 4 years old), while there is a newer version available (1 year old) with an important security update.

Cheers,
 
Old 11-27-2014, 05:15 AM   #3
pavanchauhan
Member
 
Registered: Nov 2013
Posts: 36

Original Poster
Rep: Reputation: Disabled
Thanks For Your Quick Reply..

Could you please tell me, what is the latest version of suphp. If you are talking about suphp-0.7.2 then i also tried this, but i'm getting same error.

I had installed apr.

what is apr header files? And How i can installed for which command. I had also re-install of our server. But Problem same

I'M EXPECTING VERY GRATEFUL ANSWER
 
Old 11-27-2014, 08:19 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,737

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
Quote:
I had installed apr
.
what is apr header files ?
Install all "apr" : # yum install apr-devel apr-util-devel
 
Old 11-27-2014, 09:33 PM   #5
pavanchauhan
Member
 
Registered: Nov 2013
Posts: 36

Original Poster
Rep: Reputation: Disabled
Unhappy already installed yum install apr-devel apr-util-devel

Sir,

I would like to inform you that i have already installed "yum install apr-devel apr-util-devel" in my server. But problem is same and error is same.

[root@corp20 suphp-0.7.1]# make

mod_suphp.c:1112: error: ‘request_rec’ has no member named ‘output_filters’
mod_suphp.c:1112: error: too many arguments to function ‘ap_pass_brigade’
mod_suphp.c: In function ‘suphp_register_hooks’:
mod_suphp.c:1126: error: ‘APR_HOOK_MIDDLE’ undeclared (first use in this function)
make[3]: *** [mod_suphp.lo] Error 1
make[3]: Leaving directory `/usr/local/src/suphp-0.7.1/src/apache2'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/suphp-0.7.1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/suphp-0.7.1/src'
make: *** [all-recursive] Error 1


I'M EXPECTING VERY GRATEFUL Solution
 
Old 12-02-2014, 09:55 AM   #6
pavanchauhan
Member
 
Registered: Nov 2013
Posts: 36

Original Poster
Rep: Reputation: Disabled
I Have solved this issue from my end.
just copy the apr and apr-utils files in apache include folder like this

cp /usr/local/apr/include/apr-1/*.h /usr/local/apache/include/
cp /usr/local/apr-util/include/apr-1/*.h /usr/local/apache/include/
 
  


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
make: CC: Command not found make: *** [main.o] Error 127 on opensuse 11.3 Leo89 Linux - Newbie 6 11-30-2012 06:13 PM
getting make: *** [all] Error 2 during make command for libmad-0.15.1b DJockey Linux - Software 3 07-29-2009 06:32 PM
Error when config Apache 2.x PHP 5.x with SuPHP longvnit Linux - Server 9 05-20-2009 03:23 PM
My error in mkisofs command to make a command line iso mg92865 Linux - Newbie 1 06-20-2008 12:43 PM
make: cc: command not found make: *** [gzip.o]error 127 zyjk Linux - Newbie 5 02-08-2002 10:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:23 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