Re: Vsftpd not building on LFS/BLFS 6.3 stable system.

2008-10-29 Thread Dan Nicholson
On Wed, Oct 29, 2008 at 7:49 AM, Zach Milton [EMAIL PROTECTED] wrote:

 Trying some of the newer versions of libcap does not help, as it still does
 not compile.

Hmm, that would imply that the vsftpd build is not picking up the
libcap headers for some reason. I wonder why.

 On the other hand, Dan's patch worked like a charm, and vsftpd compiles,
 installs, and starts up correctly.

To be fair, I don't think the code using capset is actually used
unless you have chown_uploads=YES or connect_from_port_20=YES. But
I'm fairly confident that the patch is correct.

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Vsftpd not building on LFS/BLFS 6.3 stable system.

2008-10-28 Thread Zach Milton
When I issue the 'make' command that the BLFS 6.3 stable book specifies for
building vsftpd, vsftpd fails to build.

The system is LFS 6.3 stable w/ BLFS 6.3 stable. All optional dependencies
for the package are installed with the exception of libcap (could not build
libcap due to errors).

Am I doing something wrong, or is this a problem with the package?

At the bottom of this message is pasted the complete build log.

Thank you for all of your support and assistance!

[Begin build
log]-

gcc -c main.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c utility.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c prelogin.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c ftpcmdio.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c postlogin.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c privsock.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c tunables.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c ftpdataio.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c secbuf.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c ls.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c postprivparent.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c logging.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c str.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c netstr.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c sysstr.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c strlist.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c banner.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c filestr.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c parseconf.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c secutil.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c ascii.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c oneprocess.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c twoprocess.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c privops.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c standalone.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c hash.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c tcpwrap.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c ipaddrparse.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c access.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c features.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c readwrite.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c ssl.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c sysutil.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
gcc -c sysdeputil.c -O2 -Wall -W -Wshadow  -idirafter dummyinc
sysdeputil.c:162: error: expected declaration specifiers or '...' before
'capset'
sysdeputil.c:162: error: expected declaration specifiers or '...' before
'header'
sysdeputil.c:162: error: expected declaration specifiers or '...' before
'data'
In file included from sysdeputil.c:170:
/usr/include/sys/sendfile.h: In function '_syscall2':
/usr/include/sys/sendfile.h:35: error: storage class specified for parameter
'sendfile'
sysdeputil.c:186: error: storage class specified for parameter 'environ'
sysdeputil.c:187: error: storage class specified for parameter
's_proctitle_space'
sysdeputil.c:187: error: parameter 's_proctitle_space' is initialized
sysdeputil.c:188: error: storage class specified for parameter
's_proctitle_inited'
sysdeputil.c:188: error: parameter 's_proctitle_inited' is initialized
sysdeputil.c:189: error: storage class specified for parameter
's_p_proctitle'
sysdeputil.c:189: error: parameter 's_p_proctitle' is initialized
sysdeputil.c:201: error: storage class specified for parameter 'do_sendfile'
sysdeputil.c:202: error: storage class specified for parameter
'vsf_sysutil_setproctitle_internal'
sysdeputil.c:203: error: storage class specified for parameter
's_proctitle_prefix_str'
sysdeputil.c:278: error: storage class specified for parameter 's_pamh'
sysdeputil.c:279: error: storage class specified for parameter 's_pword_str'
sysdeputil.c:281: error: storage class specified for parameter
'pam_conv_func'
sysdeputil.c:282: error: storage class specified for parameter
'vsf_auth_shutdown'
sysdeputil.c:288: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '{' token
sysdeputil.c:383: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '{' token
sysdeputil.c:398: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '{' token
sysdeputil.c:436: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '{' token
sysdeputil.c:474: error: storage class specified for parameter 'do_checkcap'
sysdeputil.c:478: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '{' token
sysdeputil.c:497: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '{' token
sysdeputil.c:514: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '{' token
sysdeputil.c:527: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '{' token
sysdeputil.c:604: error: expected 

Re: Vsftpd not building on LFS/BLFS 6.3 stable system.

2008-10-28 Thread Dan Nicholson
On Tue, Oct 28, 2008 at 1:48 AM, Zach Milton [EMAIL PROTECTED] wrote:
 When I issue the 'make' command that the BLFS 6.3 stable book specifies for
 building vsftpd, vsftpd fails to build.

 The system is LFS 6.3 stable w/ BLFS 6.3 stable. All optional dependencies
 for the package are installed with the exception of libcap (could not build
 libcap due to errors).

 Am I doing something wrong, or is this a problem with the package?

Both vsftpd and libcap have a problem where they're using the old way
of making syscalls that aren't supported in newer kernel headers. Try
a newer libcap release:

http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/

The code where vsftpd is failing to build is where it's doing the
capset syscall, which libcap would do if it was installed. I'll also
attach a patch for vsftpd I made a long time ago that I'm not entirely
sure is correct, but I think it is.

--
Dan


vsftpd-2.0.5-syscall-2.patch
Description: application/mbox
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page