Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 560046 - net-ftp/vsftpd - sysdeputil.o: In function `vsf_sysdep_check_auth': sysdeputil.c:(.text+0xe8): undefined reference to `crypt'
Summary: net-ftp/vsftpd - sysdeputil.o: In function `vsf_sysdep_check_auth': sysdeputi...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
: 676632 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-09-09 14:26 UTC by Ivan S. Titov
Modified: 2020-03-24 15:09 UTC (History)
10 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (vsftpd-3.0.3,19.86 KB, text/plain)
2015-09-09 18:30 UTC, Ivan S. Titov
Details
emerge --info output (emerge.info,14.00 KB, text/plain)
2015-09-09 18:32 UTC, Ivan S. Titov
Details
emerge-info.txt (emerge-info.txt,7.65 KB, text/plain)
2016-08-07 08:46 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,378.55 KB, text/plain)
2016-08-07 08:46 UTC, Toralf Förster
Details
environment (environment,83.02 KB, text/plain)
2016-08-07 08:46 UTC, Toralf Förster
Details
net-ftp:vsftpd-3.0.3:20160807-082724.log (net-ftp:vsftpd-3.0.3:20160807-082724.log,14.53 KB, text/plain)
2016-08-07 08:46 UTC, Toralf Förster
Details
Build log (net-ftp:vsftpd-3.0.3-r2:20181009-1208.log.xz,1.60 KB, application/x-xz)
2018-10-09 10:20 UTC, reot+gentoo
Details
Output from emerge --info (emerge--info-181009.txt,5.15 KB, text/plain)
2018-10-09 10:20 UTC, reot+gentoo
Details
Proposed patch (net-ftp:vsftpd-3.0.3-r2.patch,318 bytes, patch)
2018-10-09 10:20 UTC, reot+gentoo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan S. Titov 2015-09-09 14:26:00 UTC
net-ftp/vsftpd fails to build on armv6j and armv7a systems complaining on "undefined reference to `crypt'"
Affected version are 3.0.2-r2 to 3.0.2-r4 and 3.0.3.


Reproducible: Always
Comment 1 Ivan S. Titov 2015-09-09 18:30:34 UTC
Created attachment 411450 [details]
build.log
Comment 2 Ivan S. Titov 2015-09-09 18:32:18 UTC
Created attachment 411452 [details]
emerge --info output
Comment 3 Ivan S. Titov 2015-09-09 18:43:23 UTC
It comes from the solution of bug #508192:

# Override LIBS variable. Bug #508192
LIBS=
use caps && LIBS+=" -lcap"
use pam && LIBS+=" -lpam"
use tcpd && LIBS+=" -lwrap"
use ssl && LIBS+=" -lssl -lcrypto"
Comment 4 Martin Filo 2015-12-20 19:37:53 UTC
This work for me on amd64
--- /usr/portage/net-ftp/vsftpd/vsftpd-3.0.3.ebuild     2015-08-29 12:31:02.0000
00000 +0200
+++ vsftpd-3.0.3.ebuild 2015-12-20 20:31:12.518972984 +0100
@@ -67,6 +67,7 @@
        use pam && LIBS+=" -lpam"
        use tcpd && LIBS+=" -lwrap"
        use ssl && LIBS+=" -lssl -lcrypto"
+       LIBS+=" -lcrypt"
        CFLAGS="${CFLAGS}" \
        CC="$(tc-getCC)" \
Comment 5 Ivan S. Titov 2016-01-05 16:12:20 UTC
This works for me on both arm v6 and 7...
Comment 6 Toralf Förster gentoo-dev 2016-08-07 08:45:33 UTC
happened at tinderbox image amd64-13.0-systemd-unstable_20160731-161603 too
Comment 7 Toralf Förster gentoo-dev 2016-08-07 08:46:13 UTC
Created attachment 442706 [details]
emerge-info.txt

same at a tinderbox image
Comment 8 Toralf Förster gentoo-dev 2016-08-07 08:46:18 UTC
Created attachment 442708 [details]
emerge-history.txt
Comment 9 Toralf Förster gentoo-dev 2016-08-07 08:46:21 UTC
Created attachment 442710 [details]
environment
Comment 10 Toralf Förster gentoo-dev 2016-08-07 08:46:24 UTC
Created attachment 442712 [details]
net-ftp:vsftpd-3.0.3:20160807-082724.log
Comment 11 Rolf Eike Beer 2018-06-27 20:54:06 UTC
Same with 3.0.3-r2 on sparc.

USE='-caps pam -ssl -tcpd -xinetd' succeeded for =net-ftp/vsftpd-3.0.3-r2
USE='caps pam -ssl -tcpd -xinetd' succeeded for =net-ftp/vsftpd-3.0.3-r2
USE='caps -pam ssl -tcpd -xinetd' failed for =net-ftp/vsftpd-3.0.3-r2
USE='caps pam -ssl tcpd -xinetd' succeeded for =net-ftp/vsftpd-3.0.3-r2
USE='-caps -pam ssl tcpd -xinetd' failed for =net-ftp/vsftpd-3.0.3-r2
USE='-caps pam ssl tcpd -xinetd' succeeded for =net-ftp/vsftpd-3.0.3-r2
USE='caps pam ssl tcpd -xinetd' succeeded for =net-ftp/vsftpd-3.0.3-r2
USE='-caps -pam -ssl -tcpd xinetd' failed for =net-ftp/vsftpd-3.0.3-r2
USE='-caps -pam ssl -tcpd xinetd' failed for =net-ftp/vsftpd-3.0.3-r2
USE='caps -pam ssl -tcpd xinetd' failed for =net-ftp/vsftpd-3.0.3-r2
USE='-caps pam -ssl tcpd xinetd' succeeded for =net-ftp/vsftpd-3.0.3-r2
USE='caps -pam ssl tcpd xinetd' failed for =net-ftp/vsftpd-3.0.3-r2
Comment 12 reot+gentoo 2018-10-09 10:19:04 UTC
This old bug is apparently still present, at least on amd64 building without caps, pam, and tcpd.  The patch proposed in Comment 3 works for me.  What is the procedure for somebody to commit this?
Comment 13 reot+gentoo 2018-10-09 10:20:03 UTC
Created attachment 550228 [details]
Build log
Comment 14 reot+gentoo 2018-10-09 10:20:25 UTC
Created attachment 550230 [details]
Output from emerge --info
Comment 15 reot+gentoo 2018-10-09 10:20:58 UTC
Created attachment 550232 [details, diff]
Proposed patch
Comment 16 reot+gentoo 2018-10-09 10:23:24 UTC
Was referring to the patch proposed in Comment 4 of course.  Proposed patch attached.
Comment 17 Jeroen Roovers (RETIRED) gentoo-dev 2019-01-28 15:26:35 UTC
*** Bug 676632 has been marked as a duplicate of this bug. ***
Comment 18 Davide Palma 2020-03-24 10:49:31 UTC
Bug is still there, patch in Comment 4 works