From owner-freebsd-stable@freebsd.org Fri May 19 16:17:07 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3540DD738E0 for ; Fri, 19 May 2017 16:17:07 +0000 (UTC) (envelope-from petefrench@ingresso.co.uk) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 1CC25136C for ; Fri, 19 May 2017 16:17:07 +0000 (UTC) (envelope-from petefrench@ingresso.co.uk) Received: by mailman.ysv.freebsd.org (Postfix) id 1C12BD738DF; Fri, 19 May 2017 16:17:07 +0000 (UTC) Delivered-To: stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1BB68D738DE for ; Fri, 19 May 2017 16:17:07 +0000 (UTC) (envelope-from petefrench@ingresso.co.uk) Received: from constantine.ingresso.co.uk (unknown [IPv6:2a02:b90:3002:411::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DE231136B for ; Fri, 19 May 2017 16:17:06 +0000 (UTC) (envelope-from petefrench@ingresso.co.uk) Received: from dilbert.ingresso.co.uk ([2a02:b90:3002:411::6]) by constantine.ingresso.co.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89 (FreeBSD)) (envelope-from ) id 1dBkaO-00027r-1Y for stable@freebsd.org; Fri, 19 May 2017 16:17:04 +0000 Received: from petefrench by dilbert.ingresso.co.uk with local (Exim 4.89 (FreeBSD)) (envelope-from ) id 1dBkaN-0005gl-RQ for stable@freebsd.org; Fri, 19 May 2017 17:17:03 +0100 To: stable@freebsd.org Subject: Static linking of libpam and opie Message-Id: From: Pete French Date: Fri, 19 May 2017 17:17:03 +0100 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 May 2017 16:17:07 -0000 Am running into a problem trying to compile a piece of code staticly which ultimately uses opie. I get the following: /usr/local/lib/libsasl2.a(otp.o): In function `opie_server_mech_step': otp.c:(.text+0x345): undefined reference to `opiechallenge' otp.c:(.text+0x414): undefined reference to `opieverify' /usr/local/lib/libsasl2.a(otp.o): In function `opie_server_mech_dispose': otp.c:(.text+0x587): undefined reference to `opieverify' cc: error: linker command failed with exit code 1 (use -v to see invocation) If I link dynamicly all works fine (but this isnt an option for me). The culprit here is the latest memcached port which uses sasl, and that in turn requires opie. I cant compile the libmemcached port without SASL (but thats another issue, one for the ports mailing list I think). The thing is, shouldnt the static version of libpam provide this ? I can see a libpam_opie.so file, but of course I cant staticly link against that. Whats the correct thing to do here ? -pete. PS: note that I have no intention of using SASL / OPIE, I just want to get the code compiling again!