Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 16th July 2008, 02:58
briand0713 briand0713 is offline
Junior Member
Join Date: Jul 2008
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem installing ProFTPd on opensuse v11.0

hello I got an error when attempting to compile ProFTPd v1.3.2

I am currently running openSuSE v11.0 64bit and I followed this guide in installing my distro: http://www.howtoforge.com/perfect-server-opensuse11

Step 12. on this page is what it told me to do to install ProFTPd: http://www.howtoforge.com/perfect-server-opensuse11-p5

cd /tmp/
wget --passive-ftp ftp://ftp.proftpd.org/distrib/source....3.2rc1.tar.gz
tar xvfz proftpd-1.3.2rc1.tar.gz
cd proftpd-1.3.2rc1/
./configure --sysconfdir=/etc
make install
cd ..
rm -fr proftpd-1.3.2rc1*

when I did 'make' I got this:

srcdir=. ./glue.sh mod_core.o mod_xfer.o mod_auth_unix.o mod_auth_file.o mod_auth.o mod_ls.o mod_log.o mod_site.o mod_delay.o mod_facts.o mod_ident.o mod_auth_pam.o mod_cap.o
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -O2 -Wall -c module_glue.c
make[1]: Leaving directory `/tmp/proftpd-1.3.2rc1/modules'
test -z """" -a -z """" || (cd modules/ && make shared)
make[1]: Entering directory `/tmp/proftpd-1.3.2rc1/lib/libcap'
=> making cap_names.c from <linux/capability.h>
gcc -O2 -Wall -L/lib _makenames.c -o _makenames
./_makenames > cap_names.h
gcc -O2 -Wall -c cap_alloc.c -o cap_alloc.o
In file included from cap_alloc.c:12:
libcap.h:57:3: error: #error "Kernel <linux/capability.h> does not match library"
libcap.h:58:3: error: #error "file "libcap.h" --> fix and recompile libcap"
make[1]: *** [cap_alloc.o] Error 1
make[1]: Leaving directory `/tmp/proftpd-1.3.2rc1/lib/libcap'
make: *** [dirs] Error 2
libcap.h:57:3: error: #error "Kernel <linux/capability.h> does not match library"
libcap.h:58:3: error: #error "file "libcap.h" --> fix and recompile libcap"

I was w /etc/init.d/proftpd start
Starting ProFTPD Server: - Fatal: UseIPv6: Use of the UseIPv6 directive requires IPv6 support (--enable-ipv6) on line 14 of '/etc/proftpd.conf'
startproc: exit status of parent of /usr/local/sbin/proftpd: 1
ondering if someone could tell me what to do in order to fix the error so I can get ProFTPd installed.

thanks for your assistance

Last edited by briand0713; 16th July 2008 at 10:01.
Reply With Quote
Sponsored Links
Old 16th July 2008, 18:47
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts

This thread might help: http://www.howtoforge.com/forums/sho...oftpd+opensuse

Regarding the IPv6 error: disable IPv6 in your proftpd.conf.
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Old 16th July 2008, 19:50
briand0713 briand0713 is offline
Junior Member
Join Date: Jul 2008
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts

IPv6 was originally set to 'off' in the conf but Ill check out the page
Reply With Quote
Old 16th July 2008, 22:05
itmanager itmanager is offline
Junior Member
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post


For the ipv6 problem, per this site:
Remove line 14 from /etc/proftpd.conf or add "--enable-ipv6 \" to /usr/local/directadmin/custombuild/configure/proftpd/configure.proftpd file and run "./build proftpd" again.
If you want to save that new "configure.proftpd" file and use it with every proftpd update, do:

mkdir -p /usr/local/directadmin/custombuild/custom/proftpd
cp -Rp /usr/local/directadmin/custombuild/configure/proftpd/configure.proftpd /usr/local/directadmin/custombuild/custom/proftpd/

Good luck!
I personally just commented the line out with a # in front of that line.

Also, just for the sake that Google brought this discussion up first for the:
libcap.h:57:3: error: #error "Kernel <linux/capability.h> does not match library"
error, here is the fix:

yast -i libcap libcap-devel
Easy enough, eh? That fix is per the forum thread that Falko posted above, but it doesn't hurt to add it here either... ??? I hope.

Also, @Falko, should that be added to the guide? I don't remember seeing it when I followed this guide. BTW, you rock! Thanks so much for all your guides and help. I've been using your guides since... The "Perfect SuSE 9"?...
Reply With Quote
The Following User Says Thank You to itmanager For This Useful Post:
valter (17th July 2008)
Old 28th January 2009, 16:01
mirtol mirtol is offline
Junior Member
Join Date: Jan 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default linux/capability.h error

On openSuSE 11.1 with both libcap1 and libcap2 installed this failed as well.

My solution was:

After ./configure

1. Edit Makefile and change DIRS=lib/libcap to DIRS=
2. Edit Make.rules and remove -Llib/libcap from LIBS= (leave -lcap)
3. Edit modules/mod_cap.c and change include for compatibility.h to # include <sys/capability.h>

This uses the kernel header and kernel library rather than the one included in the distribution.
Reply With Quote


Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Installing Quota - Fedora 9 rcurrer HOWTO-Related Questions 2 6th July 2008 18:25
Question Regarding: Installing Lighttpd With PHP5 And MySQL Support On OpenSUSE 10.3 Gokou023 HOWTO-Related Questions 3 12th December 2007 17:06
Debian Proftpd problem after apt-get dist upgrade oeteldonker Installation/Configuration 1 14th June 2007 23:07
Im thinking about throwing proftpd to the trashcan danf.1979 Installation/Configuration 2 23rd December 2005 10:27
Problem installing ISPConfig, then with MySQL... ctroyp Installation/Configuration 7 26th September 2005 17:37

All times are GMT +2. The time now is 18:47.

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