update using CB2.0 , apxs error

decke

Verified User
Joined
Jan 12, 2009
Messages
24
Location
Indonesia
Hi,


Today I try to update from CB1.2 to CB2.0, and found error below:
======================
2013-08-04 16:10:09 (31.4 KB/s) - `/usr/local/directadmin/custombuild/mod_ruid2-0.9.8.tar.bz2' saved [16169/16169]

MD5 Checksum on mod_ruid2-0.9.8.tar.bz2 passed.
Found /usr/local/directadmin/custombuild/mod_ruid2-0.9.8.tar.bz2
Extracting /usr/local/directadmin/custombuild/mod_ruid2-0.9.8.tar.bz2...
Installing mod_ruid2-0.9.8...
/var/www/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -pthread -I/usr/include/apache -I/usr/include/apache -I/usr/include/apache -c -o mod_ruid2.lo mod_ruid2.c && touch mod_ruid2.slo
In file included from /usr/include/sys/capability.h:34,
from mod_ruid2.c:48:
/usr/include/linux/capability.h:70: error: expected specifier-qualifier-list before '__le32'
apxs:Error: Command failed with rc=65536
.
*** There was an error while trying to install mod_ruid2-0.9.8.
[root@mars custombuild]#

==========

# ls -l /usr/sbin/apxs
-rwxr-xr-x 1 root root 22643 Aug 4 10:27 /usr/sbin/apxs

# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin


do you have any clue what should I do guys?


regards,
 
Last edited:
That is caused by mod_ruid2=yes option in the options.conf file. What is the OS you are trying CB 2.0 on? May you post the output of "uname -a"? If that's an RPM based OS, please post the output of:
Code:
rpm -qf /usr/include/sys/capability.h
 
# rpm -qf /usr/include/sys/capability.h
libcap-devel-1.10-26
libcap-devel-1.10-26

#uname -a
Linux mars.xxxx.com 2.6.18-308.16.1.el5 #1 SMP Tue Oct 2 22:01:43 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
 
This issue can by fixed by editing mod_ruid2.c and adding the following code to it:
Code:
#include <linux/types.h>

Above:
Code:
#include <sys/capability.h>
 
Back
Top