Don't know if this is a recent development or what, but I've followed the instructions for the "Centos 5.3 and ISPConfig 2" to the letter, but when i get to installing the mod_ruby part, I get errors during the make. I'm using the ./configure.rb with apr headers (as per the instructions), but I've noticed someone else in these forums who had issues with his config, so he used apxs instructions instead. I thought el5 had to use apr as apxs didn't work well with Centos 5.3. If I'm wrong, please someone tell me the difference and if it matters. I'd like to try the other option if possible. My ./configure with apr runs fine. It's just when I do the make I get errors. In particular these: apachelib.c: In function .ap_chdir_file.: apachelib.c: 149: take care: the returnvalue of .chdir ., declared with .warn_unused_result. attribut, is ignored apachelib.c: 154: take care: the returnvalue of .chdir ., declared with .warn_unused_result. attribut, is ignored apachelib.c: In function .rb_init_apache. : apachelib.c: 374: error: .OPT_INCNOEXEC. undeclared (first use in this function) apachelib.c: 374: error: (Each undeclared identifire is reported only once apachelib.c: 374: error: for each function it appears in.) make: *** [apachelib.o] error 1 Maybe there was an unexpected revision to httpd or httpd-devel recently? There's another fellow with the same problem in the Centos 5 forums who posted just yesterday. Maybe something just recently changed. Any help would be greatly appreciated. Thanks -Mike
Hey, I get the exact same result, this is my output to your question. [root@eugames mod_ruby-1.3.0]# getenforce Permissive [root@eugames mod_ruby-1.3.0]# uname -a Linux eugames.local 2.6.18-128.el5 #1 SMP Wed Jan 21 10:44:23 EST 2009 i686 i68 i386 GNU/Linux
I'm getting the following: uname -a Linux server.designwizardry.com 2.6.18-128.1.10.el5 #1 SMP Thu May 10:39:21 EDT 2009 i686 i386 GNU/Linux getenforce Disabled -Mike
The guide didn't say which specific version to install, I think it assumed the latest: it just said to install the following prerequisits: yum install httpd-devel ruby ruby-devel Checking my versions though, they are: httpd-devel-2.2.3-22.el5.centos.1.i386 ruby-1.8.5-5.el5_2.6.i386 ruby-devel-1.8.5-5.el5_2.6.i386 -Mike
which gcc yields: /usr/bin/gcc FYI: yum install gcc yields: Package gcc-4.1.2-44.el5.i386 already installed and latest version
mod_ruby 1.3.0 fails on CentOS 5.3 during perfect server build I am also having the same issue below is my commandline information: -rwxr-xr-x 2 root root 196644 Jan 21 05:53 /usr/bin/gcc -rwxr-xr-x 1 root root 2018 Jan 6 2007 /usr/bin/gccmakedep Please note that the error message is as follows while running the make program. I have tried with root and with my super account. I also built another server just to make sure I did not do anything wrong and had the exact same issue. I am running this server in VMWare ESX3.5. [super@hostpanel01 mod_ruby-1.3.0]# ./configure.rb --with-apr-includes=/usr/include/apr-1 checking for a BSD compatible install... /usr/bin/install -c checking whether we are using gcc... yes checking Ruby version... 1.8.5 checking for static Apache module support... no checking for dynamic Apache module support... yes creating Makefile creating libruby.module creating doc/Makefile [super@hostpanel01 mod_ruby-1.3.0]# make gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wall -fno-strict-aliasing -fPIC -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fno-strict-aliasing -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux/i386-linux -I/usr/include/httpd -I/usr/include/apr-1 -c mod_ruby.c gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wall -fno-strict-aliasing -fPIC -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fno-strict-aliasing -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux/i386-linux -I/usr/include/httpd -I/usr/include/apr-1 -c ruby_config.c gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wall -fno-strict-aliasing -fPIC -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fno-strict-aliasing -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux/i386-linux -I/usr/include/httpd -I/usr/include/apr-1 -c apachelib.c apachelib.c: In function âap_chdir_fileâ: apachelib.c:149: warning: ignoring return value of âchdirâ, declared with attribute warn_unused_result apachelib.c:154: warning: ignoring return value of âchdirâ, declared with attribute warn_unused_result apachelib.c: In function ârb_init_apacheâ: apachelib.c:374: error: âOPT_INCNOEXECâ undeclared (first use in this function) apachelib.c:374: error: (Each undeclared identifier is reported only once apachelib.c:374: error: for each function it appears in.) make: *** [apachelib.o] Error 1 [super@hostpanel01 mod_ruby-1.3.0]#
I did a successful perfect server install on 6/2/2009. I think some component was updated like someone mentioned. I have both builds in a virtual enviornment. If anyone needs me to get information I can.
I have tried this mod detailed in this site and succeed. http://www.centos.org/modules/newbb/viewtopic.php?topic_id=20562&forum=41 It is regarding the "OPT_INCNOEXEC" that is not defined in latest httpd-devel version at CentOS 5.3.... Copy pasting the instruction. Do not insert red whatever put in red. Hope that helps.
same issue - does anyone have a clue ? i don't . . . 1. [root@centa mod_ruby-1.3.0]# ./configure.rb --with-apr-includes=/usr/include/apr-1 checking for a BSD compatible install... /usr/bin/install -c checking whether we are using gcc... yes checking Ruby version... 1.8.5 checking for static Apache module support... no checking for dynamic Apache module support... yes creating Makefile creating libruby.module creating doc/Makefile [root@centa mod_ruby-1.3.0]# 2. [root@centa mod_ruby-1.3.0]# make gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wall -fno-strict-aliasing -fPIC -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fno-strict-aliasing -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I. -I/usr/lib/ruby/1.8/i386-linux -I/usr/lib/ruby/1.8/i386-linux/i386-linux -I/usr/include/httpd -I/usr/include/apr-1 -c apachelib.c apachelib.c: In function âap_chdir_fileâ: apachelib.c:149: warning: ignoring return value of âchdirâ, declared with attribute warn_unused_result apachelib.c:154: warning: ignoring return value of âchdirâ, declared with attribute warn_unused_result apachelib.c: In function ârb_init_apacheâ: apachelib.c:374: error: âOPT_INCNOEXECâ undeclared (first use in this function) apachelib.c:374: error: (Each undeclared identifier is reported only once apachelib.c:374: error: for each function it appears in.) make: *** [apachelib.o] Error 1 [root@centa mod_ruby-1.3.0]#
Same here... -rwxr-xr-x 2 root root 196644 Jan 21 05:53 /usr/bin/gcc -rwxr-xr-x 1 root root 2018 Jan 6 2007 /usr/bin/gccmakedep -Mike