From owner-freebsd-ports@FreeBSD.ORG Wed Jun 25 18:50:30 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 46894818 for ; Wed, 25 Jun 2014 18:50:30 +0000 (UTC) Received: from mail-pb0-x22c.google.com (mail-pb0-x22c.google.com [IPv6:2607:f8b0:400e:c01::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1FCDE285E for ; Wed, 25 Jun 2014 18:50:30 +0000 (UTC) Received: by mail-pb0-f44.google.com with SMTP id md12so2063960pbc.31 for ; Wed, 25 Jun 2014 11:50:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=xJ2DXvmWrs/rFDPysd3MtC5BxAMN4cFTUoBFmqXQaBk=; b=IUYCNckl0LGS83X1i6TGGcAIFnBCYp9SMnmLiFrZerlNoBRfXqQo6gEXI3UHQ3jpH3 RBrXpPj/qOmyxtcrJWbg0h0vKAT92ERKg3E98TX9Ah+SCpRtwSlP1mOsg64d1yqo9b4o YnSc50BJfyv0kF3pN4y4pyfapjhbZ7TGEe4NvHh4slF4npdBCHZcQhvGwYRIZa7wv9mi yOhKJ7eft6JOO4VPTvn3ok15TRACm7O4mzfB13CqXL15YxK7NpK59WzISLgKRXtCA1GD GrMu/awwBBqYEQcuERIWhWewQ71DTC7m8x6NTbiHDQhDvOlsEZLxLeJJPsDfZoUYuALp ZnZQ== MIME-Version: 1.0 X-Received: by 10.66.242.171 with SMTP id wr11mr13939018pac.111.1403722229709; Wed, 25 Jun 2014 11:50:29 -0700 (PDT) Sender: kob6558@gmail.com Received: by 10.66.134.4 with HTTP; Wed, 25 Jun 2014 11:50:29 -0700 (PDT) Date: Wed, 25 Jun 2014 11:50:29 -0700 X-Google-Sender-Auth: 0VHQsVcBKJDQge7dQ0CR_UvHf9Y Message-ID: Subject: rpath issues with a port From: Kevin Oberman To: FreeBSD Ports ML Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jun 2014 18:50:30 -0000 editors/emacs currently fails on most 10.0 systems because it links to libgomp.so. The problem is that the base system contains a stub library for this in /usr/lib with the real library being installed as a port of he gcc ports in /usr/local/lib. the problem I see is that configuring fails when the a test for gtk tries to link to that library, but fails to find several symbols that, of course, are not in the stub, but just the real library. The test in configure includes "-rpath=/usr/lib:/usr/local/lib and, since libgomp.so is present on he first path, that one is used and the configure fails. The error occurs when attempting to pull in a couple of libraries from Imagemagick which builds just fine while linking directly to libgomp.so, while emacs fails when attempting to link to the Imagemagick libraries that are linked to it. I have very little experience with autotools. I have spend time looking at configure.in and configure.ac, but have failed to figure out how the rpath option is generates or how to reverse the order of the path for libgomp. Can anyone give my a clue as to how this works? Since there are a number of stub libs in the system, I assume that this is not a problem unique to this port. N.B. Ihave succeeded in updating emacs on my system by moving the base version of libgomp aside during the build, so I am looking for how to deal with the generic problem, not this specific instance. A bug (191193) is open with additional details on the emacs failure. Thanks, -- R. Kevin Oberman, Network Engineer, Retired E-mail: rkoberman@gmail.com