From owner-freebsd-stable@freebsd.org Mon Feb 29 09:06:08 2016 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 AB524AB8302 for ; Mon, 29 Feb 2016 09:06:08 +0000 (UTC) (envelope-from dewaynegeraghty@gmail.com) Received: from mail-lf0-x235.google.com (mail-lf0-x235.google.com [IPv6:2a00:1450:4010:c07::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 35C71D46 for ; Mon, 29 Feb 2016 09:06:08 +0000 (UTC) (envelope-from dewaynegeraghty@gmail.com) Received: by mail-lf0-x235.google.com with SMTP id j186so12539220lfg.2 for ; Mon, 29 Feb 2016 01:06:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=LVVfVUhOd0TyEroRv9KHj76n/4sWo7aPwqcb0YKO9kA=; b=SAzeQZQxYbR5f48buV1YYTLxiwLM33fa5J6CRecDUQ5e/+iemLQZJw4AQgLcF/8r60 QcUXu0ABQJfr1RA09tdr63jgP825flKRCQIf+y0/PceRDqzXxkMDMtED01th3/hJgSy9 4FE4qc3JILdKq/JPtx4fW7Ojj7HPbb7rMfEyXfu7h7HKPGdRjawLlaDI9qBmqc/54Txu awg5volYb99d6G9Hcte2z2cGfTu5Oyda/teSzzpJADk+OOe4EkMwbO129nYHZ28RXDs6 dNLBtljSN7t8ay0I9zkF/F0zvOiqjqJxkCTfc2lYuK8JE/H66m8/IyhFd4QuIoSYZ5vK AOhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=LVVfVUhOd0TyEroRv9KHj76n/4sWo7aPwqcb0YKO9kA=; b=YBvVQrtk1PtRuvL+E3cxoGq0CwbhzGubj7ZcTdZh6APxXK8v/XCCM2NbZOGYsvbonC 4Cw4TMU1bqRgxk/8v0dO4WsmL0mP6JvOzC5O7eWKWc5NG8p+Hij16G0JqseRcka92S8V XDVJJTdXOYNZk5s7qyGfux7rW2GZ/AVlyYBTsalSulGb3UYnkm+CbLnVPC006Y5hfRI4 72WieOuTxY+JUP+P8SOeQdQF0EI65qp156PTMzXRHfjivQtMsBxp7vwXSz5z6mcY9AR8 DY85+8HSzSUUWC7wOzlr/LM/PZSukGL7uP5UfdQVC+q8KecqVk9uLPOq+VIQNbXVcsKt YK7A== X-Gm-Message-State: AD7BkJL6nUwJQiKOSjUMwuOzkFG9+MFPwW8h05PQNQivDkW0F0nUJvyLzP3OgOSi+aS+6glhNc7DeU8NttC/jg== X-Received: by 10.25.21.29 with SMTP id l29mr4069075lfi.123.1456736765951; Mon, 29 Feb 2016 01:06:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.142.83 with HTTP; Mon, 29 Feb 2016 01:05:36 -0800 (PST) From: Dewayne Geraghty Date: Mon, 29 Feb 2016 20:05:36 +1100 Message-ID: Subject: Problem with /usr/lib/libcrypt.a when building perl/python with libressl To: freebsd-stable stable Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Feb 2016 09:06:08 -0000 I'm trying to rebuild my local ports tree using libressl. Unfortunately the linker is advising that I should build /usr/lib/libcrypt.a with -fPIC. As its a security-related module, I would appreciate advise as to whether this will/may cause a security issue? The message, during the link phase, that both python27 and perl 5.20 is sending is: /usr/bin/ld: /usr/lib/libcrypt.a(crypt.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/lib/libcrypt.a: could not read symbols: Bad value cc: error: linker command failed with exit code 1 (use -v to see invocation) I understand the value of fPIC for shareable libraries but I'm a little confused as to why libcrypt.a requires -fPIC; which BTW does enable both python, perl and others to build cleanly. Regards, Dewayne