HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Perfect system Centos 5.3 with ISPConfig 2 fails at mod_ruby (http://www.howtoforge.com/forums/showthread.php?t=35869)

mcaramb 3rd June 2009 04:40

Perfect system Centos 5.3 with ISPConfig 2 fails at mod_ruby
 
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

falko 3rd June 2009 17:56

What are the outputs of
Code:

uname -a
and
Code:

getenforce
?

Mormel 3rd June 2009 19:05

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

mcaramb 3rd June 2009 20:11

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

falko 4th June 2009 18:29

Is your Ruby version the same as in the tutorial?

mcaramb 4th June 2009 18:43

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

falko 5th June 2009 14:44

Maybe a problem with your gcc version.
What's the output of
Code:

which gcc
?

mcaramb 5th June 2009 17:28

which gcc yields:

/usr/bin/gcc

FYI: yum install gcc yields:

Package gcc-4.1.2-44.el5.i386 already installed and latest version

falko 6th June 2009 11:34

What's the output of
Code:

ls -l /usr/bin/gcc*

obrienj619 6th June 2009 17:48

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]#


All times are GMT +2. The time now is 13:46.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.