Date: Tue, 07 Feb 2012 08:14:09 +0900 From: Hirohisa Yamaguchi <umq@ueo.co.jp> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/164835: [patch] security/libssh2 does not build against libgcrypt Message-ID: <86ty33r1vi.wl%umq@ueo.co.jp> Resent-Message-ID: <201202062320.q16NK8Vt087763@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 164835 >Category: ports >Synopsis: [patch] security/libssh2 does not build against libgcrypt >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Feb 06 23:20:07 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Hirohisa Yamaguchi >Release: FreeBSD 8.1-RELEASE amd64 >Organization: >Environment: System: FreeBSD calliope.****.org 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: security/libssh2 does not link when configured to use libgcrypt | Making all in example | make all-am | if clang -DHAVE_CONFIG_H -I../include -I../example -O2 -pipe -I/usr/local/include -fno-strict-aliasing -MT direct_tcpip.o -MD -MP -MF ".deps/direct_tcpip.Tpo" -c -o direct_tcpip.o direct_tcpip.c; then mv -f ".deps/direct_tcpip.Tpo" ".deps/direct_tcpip.Po"; else rm -f ".deps/direct_tcpip.Tpo"; exit 1; fi | /bin/sh ../libtool --tag=CC --mode=link clang -O2 -pipe -I/usr/local/include -fno-strict-aliasing -rpath=/usr/local/lib -L/usr/local/lib -o direct_tcpip direct_tcpip.o ../src/libssh2.la | libtool: link: clang -O2 -pipe -I/usr/local/include -fno-strict-aliasing -rpath=/usr/local/lib -o .libs/direct_tcpip direct_tcpip.o -L/usr/local/lib ../src/.libs/libssh2.so /usr/local/lib/libgcrypt.so /usr/local/lib/libgpg-error.so /usr/local/lib/libintl.so /usr/local/lib/libiconv.so -lz -Wl,-rpath -Wl,/usr/local/lib | clang: warning: argument unused during compilation: '-rpath=/usr/local/lib' | ../src/.libs/libssh2.so: undefined reference to `_libssh_error' | clang: error: linker command failed with exit code 1 (use -v to see invocation) | *** Error code 1 | | Stop in /usr/ports/security/libssh2/work/libssh2-1.4.0/example. | *** Error code 1 | >How-To-Repeat: # make -C /usr/ports/security/libssh2 -DBATCH -DWITH_GCRYPT rmconfig build >Fix: the patch taken from: http://trac.libssh2.org/changeset/b3ade9a63e881e69b4c9cfe7b5dbad78dcc4a0e0/libssh2 Index: security/libssh2/files/patch-src_libgcrypt.c =================================================================== RCS file: security/libssh2/files/patch-src_libgcrypt.c diff -N security/libssh2/files/patch-src_libgcrypt.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ security/libssh2/files/patch-src_libgcrypt.c 6 Feb 2012 23:12:06 -0000 @@ -0,0 +1,10 @@ +--- src/libgcrypt.c (revision 209de22299b4b58e582891dfba70f57e1e0492db) ++++ src/libgcrypt.c (revision b3ade9a63e881e69b4c9cfe7b5dbad78dcc4a0e0) +@@ -582,5 +582,5 @@ + const char *passphrase) + { +- return _libssh_error(session, LIBSSH2_ERROR_FILE, ++ return _libssh2_error(session, LIBSSH2_ERROR_FILE, + "Unable to extract public key from private key file: " + "Method unimplemented in libgcrypt backend"); + >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86ty33r1vi.wl%umq>