From owner-freebsd-x11@freebsd.org Thu Jul 4 13:47:51 2019 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7CB3D15D62D4 for ; Thu, 4 Jul 2019 13:47:51 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id CCA10927E4 for ; Thu, 4 Jul 2019 13:47:50 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: by mailman.ysv.freebsd.org (Postfix) id 8CBF715D62D3; Thu, 4 Jul 2019 13:47:50 +0000 (UTC) Delivered-To: x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 774E515D62D2 for ; Thu, 4 Jul 2019 13:47:50 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from mail.daemonic.se (mail.daemonic.se [176.58.89.161]) (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 018BD927E3 for ; Thu, 4 Jul 2019 13:47:49 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from cid.daemonic.se (localhost [IPv6:::1]) by mail.daemonic.se (Postfix) with ESMTP id 45ffS308v6z3klc; Thu, 4 Jul 2019 13:47:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=daemonic.se; h= content-transfer-encoding:content-language:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:from:from:references:subject:subject:received :received; s=20151023; t=1562248066; bh=+iWOMumKEAb/abMWvaptV1I2 w+vBtlZVYQLyRefUKSY=; b=L7GOVFkiY8sP6DJI2ke6FcxT8IuL1cgg9V0Y19Vn h4vGFacAVT6R6VaaA7vJRQxyNyW2r5hBpOA6LYFkBbLUOR7ITIrKDg2kzxfKid/z 0teeezEQnpdxtkJH0sMVUIyz512rSelDIgKwl30ShUazVlPReP9/vgMe0PD0itnQ CY8= X-Virus-Scanned: amavisd-new at daemonic.se Received: from mail.daemonic.se ([127.0.0.1]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256) by cid.daemonic.se (mailscanner.daemonic.se [127.0.0.1]) (amavisd-new, port 10587) with ESMTPS id 6ZDR69j90YH9; Thu, 4 Jul 2019 13:47:46 +0000 (UTC) Received: from vivi.daemonic.se (vivi.daemonic.se [IPv6:2001:470:dca9:2::4]) by mail.daemonic.se (Postfix) with ESMTPSA id 45ffS22L57z3c7W; Thu, 4 Jul 2019 13:47:46 +0000 (UTC) Subject: Re: libXrandr, -fPIC compiler option is off To: p.cigularov@bally-wulff.de, x11@FreeBSD.org References: <4749a02d06bf4f8186623f59ce8f6c88@bally-wulff.de> From: Niclas Zeising Message-ID: <480ea8c4-4c17-f177-b873-f1ae2e5c9274@daemonic.se> Date: Thu, 4 Jul 2019 15:47:45 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <4749a02d06bf4f8186623f59ce8f6c88@bally-wulff.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 018BD927E3 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.994,0]; TAGGED_FROM(0.00)[freebsd] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jul 2019 13:47:51 -0000 On 2019-07-04 15:27, p.cigularov@bally-wulff.de wrote: > Petar Cigularov schrieb am 04.07.2019 15:27 > Hello, > > I ran into a problem when linking a software against libXrandr on a FreeBSD 12, x64. It turned out that -fPIC option, for generating position independent code is not per default turned on. > After recompile libXrandr with -fPIC everything linked fine. > I'm writing this because, libXrandr is a shared lib and as such it has to be compiled with -fPIC by default on and I think, it will be better if you change the package default settings to be always on. > Hi! libXrandr is using the default flags from autotools/libtool. Looking at the commit history, this hasn't intentinally changed lately. Furthermore, at least as far as I can tell, it is linked with -fPIC, at least when I run it with poudriere. I also had no problem linking against it, and it is used by quite a number of ports in the FreeBSD ports system, and I haven't had any reports about issues linking against libXrandr. Can you please double check your environment and your build of libXrandr, to make sure it is built properly. Regards -- Niclas