Summary: | net-ftp/lftp-4.9.2-r1: USE=socks5 causes configure error | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | OKUMURA N. Shin-ya <oku.ns> |
Component: | Current packages | Assignee: | Conrad Kostecki <conikost> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | oku.ns, uleysky |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
emerge --info config.log fix configuration with dante |
Description
OKUMURA N. Shin-ya
2024-12-08 02:38:55 UTC
Created attachment 913541 [details]
build.log
Created attachment 913542 [details]
emerge --info
thanks for the report; could you please attach: /var/tmp/portage/net-ftp/lftp-4.9.2-r1/work/lftp-4.9.2/config.log Created attachment 913543 [details]
config.log
Created attachment 914336 [details, diff]
fix configuration with dante
The first part of the problem is the code in configure.ac:
if test x$with_socks = xyes; then
AC_DEFINE(SOCKS4, 1, [define if you are building with SOCKS support])
AC_CHECK_LIB(socks, main, [SOCKSLIBS=-lsocks],
[AC_MSG_ERROR([cannot find -lsocks library])])
fi
if test x$with_socks5 = xyes; then
AC_DEFINE(SOCKS5, 1, [define if you are building with SOCKSv5 support])
AC_CHECK_LIB(socks5, main, [SOCKSLIBS=-lsocks5],
[AC_MSG_ERROR([cannot find -lsocks5 library])])
fi
if test x$with_socksdante = xyes; then
AC_DEFINE(SOCKS_DANTE, 1, [define if you are building with SOCKS-Dante support])
AC_CHECK_LIB(socks, main, [SOCKSLIBS=-lsocks],
[AC_MSG_ERROR([cannot find -lsocks library])])
fi
AC_CHECK_LIB tries to find the main() function in the socks library, which results in a recursion error.
The second part of the problem is that on my system dante did not install the libsocks.so symlink, only libsocks.so.0, so the linker cannot find libsocks.
The proposed patch solves both problems.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46f0106ecdc04ce7201bb08952c0469bba5da9bc commit 46f0106ecdc04ce7201bb08952c0469bba5da9bc Author: Conrad Kostecki <conikost@gentoo.org> AuthorDate: 2024-12-29 18:19:49 +0000 Commit: Conrad Kostecki <conikost@gentoo.org> CommitDate: 2024-12-29 18:22:40 +0000 net-ftp/lftp: fix build with socket Closes: https://bugs.gentoo.org/946078 Signed-off-by: Conrad Kostecki <conikost@gentoo.org> net-ftp/lftp/files/lftp-4.9.2-socks.patch | 26 ++++++++++++++++++++++++++ net-ftp/lftp/lftp-4.9.2-r1.ebuild | 1 + 2 files changed, 27 insertions(+) |