pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/35868: [PATCH] Fix net/vsftpd build on Linux



>Number:         35868
>Category:       pkg
>Synopsis:       [PATCH] Fix net/vsftpd build on Linux
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 28 14:20:00 +0000 2007
>Originator:     Lubomir Kundrak
>Release:        
>Organization:
>Environment:
>Description:
In Linux, the functions mentioned below live in libcap.

sysdeputil.o: In function `do_checkcap':
/usr/pkgsrc/net/vsftpd/work/vsftpd-2.0.4/sysdeputil.c:542: undefined reference 
to `cap_get_proc'
/usr/pkgsrc/net/vsftpd/work/vsftpd-2.0.4/sysdeputil.c:543: undefined reference 
to `cap_free'
sysdeputil.o: In function `vsf_sysdep_adopt_capabilities':
/usr/pkgsrc/net/vsftpd/work/vsftpd-2.0.4/sysdeputil.c:556: undefined reference 
to `cap_init'
/usr/pkgsrc/net/vsftpd/work/vsftpd-2.0.4/sysdeputil.c:560: undefined reference 
to `cap_set_flag'
/usr/pkgsrc/net/vsftpd/work/vsftpd-2.0.4/sysdeputil.c:561: undefined reference 
to `cap_set_flag'
/usr/pkgsrc/net/vsftpd/work/vsftpd-2.0.4/sysdeputil.c:566: undefined reference 
to `cap_set_flag'
/usr/pkgsrc/net/vsftpd/work/vsftpd-2.0.4/sysdeputil.c:567: undefined reference 
to `cap_set_flag'
/usr/pkgsrc/net/vsftpd/work/vsftpd-2.0.4/sysdeputil.c:569: undefined reference 
to `cap_set_proc'
/usr/pkgsrc/net/vsftpd/work/vsftpd-2.0.4/sysdeputil.c:574: undefined reference 
to `cap_free'
collect2: ld returned 1 exit status
>How-To-Repeat:
Attempt to build net/vsftpd in Linux
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/vsftpd/Makefile,v
retrieving revision 1.26
diff -u -p -r1.26 Makefile
--- Makefile    7 Jan 2007 09:14:07 -0000       1.26
+++ Makefile    28 Feb 2007 09:33:36 -0000
@@ -41,6 +41,7 @@ MAKE_ENV+=            LIBS=${LIBS:M*:Q}
 .include "../../mk/bsd.prefs.mk"

 LIBS.SunOS=    -lsocket -lnsl -lrt -lsendfile
+LIBS.Linux=    -lcap

 .include "options.mk"





Home | Main Index | Thread Index | Old Index