From owner-freebsd-ports@FreeBSD.ORG Sat Dec 27 17:31:03 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EA247CE6 for ; Sat, 27 Dec 2014 17:31:03 +0000 (UTC) Received: from mail-ig0-x233.google.com (mail-ig0-x233.google.com [IPv6:2607:f8b0:4001:c05::233]) (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 AE61C644EB for ; Sat, 27 Dec 2014 17:31:03 +0000 (UTC) Received: by mail-ig0-f179.google.com with SMTP id r2so9840045igi.6 for ; Sat, 27 Dec 2014 09:31:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=+Aam4iLWIaRUtSB0/3bIWws7/VvcCmQ61Lb/Roe9R9c=; b=ZYsYvGTmP3aW/UTG5O58+FURoIgMEZR0oD+f7TjSsDuBxbnpZpO0hz3V5Amo51+Kip aAKU1i8q6pUP8KzBK4vEMqn9hrzO1Wr8368uKbYfo2Xy+8KQVc3YrVqxEjROqzBa8l7H 5FnBjvqDjMm7UzXHIxQSqC0JW8y4bqbT15BmSZDRITbmqR1wNCo5RFHNCU21OI6unLyN vt6eHpGm8aSR4+cFOF5SLtcM4ddGVfP8c+k+2SGbulm8VBLseeGwdaOEhuOt/qqtMEjG plpPDdN8V7xQRl4mp0ly7HkLhgGvVmr8GnVzmbDNA/oS41hzjU8WnagygFvMdzoygy2n 4yAQ== MIME-Version: 1.0 X-Received: by 10.107.6.196 with SMTP id f65mr43084621ioi.54.1419701463148; Sat, 27 Dec 2014 09:31:03 -0800 (PST) Sender: kob6558@gmail.com Received: by 10.107.52.19 with HTTP; Sat, 27 Dec 2014 09:31:03 -0800 (PST) In-Reply-To: <20141227140028.514cd3f1@kirk.drpetervoigt.private> References: <20141227140028.514cd3f1@kirk.drpetervoigt.private> Date: Sat, 27 Dec 2014 09:31:03 -0800 X-Google-Sender-Auth: lLS7LNAh27yqGH_DCRm6jyA72vk Message-ID: Subject: Re: Emacs 24.4_4,3 does not build - png error? From: Kevin Oberman To: "Dr. Peter Voigt" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: FreeBSD Ports ML X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Dec 2014 17:31:04 -0000 On Sat, Dec 27, 2014 at 5:00 AM, Dr. Peter Voigt wrote: > I am on 10.1-RELEASE (amd64) and cannot uprade my current Emacs version: > > # pkg version |grep -i "^emacs" > emacs24-24.4_3,3 < > > Build attempt: > # portmaster --no-confirm --no-term-title -D -G emacs24 > ... > checking for grantpt... yes > checking for getpt... no > checking for posix_openpt... yes > checking for library containing tputs... no > configure: error: The required function `tputs' was not found in any > library. The following libraries were tried (in order): > libtinfo, libncurses, libterminfo, libtermcap, libcurses > Please try installing whichever of these libraries is most appropriate > for your system, together with its header files. > For example, a libncurses-dev(el) or similar package. > ===> Script "configure" failed unexpectedly. > Please report the problem to ashish@FreeBSD.org [maintainer] and attach > the "/usr/ports/editors/emacs/work/emacs-24.4/config.log" including the > output of the failure of your make command. Also, it might be a good > idea to provide an overview of all packages installed on your system > (e.g. a /usr/local/sbin/pkg-static info -g -Ea). > *** Error code 1 > > Stop. > make: stopped in /usr/ports/editors/emacs > > ===>>> make build failed for editors/emacs > ===>>> Aborting update > > > ===>>> You can restart from the point of failure with this command line: > portmaster editors/emacs > > And the corresponding > /usr/ports/editors/emacs/work/emacs-24.4/config.log messages: > ... > /usr/bin/ld: warning: libpng15.so.15, needed by > /usr/local/lib/librsvg-2.so, not found (try using -rpath or -rpath-link) > configure:15496: $? = 0 > configure:15496: ./conftest > Shared object "libpng15.so.15" not found, required by "librsvg-2.so.2" > configure:15496: $? = 1 > configure: program exited with status 1 > configure: failed program was: > | /* confdefs.h */ > | #define PACKAGE_NAME "emacs" > | #define PACKAGE_TARNAME "emacs" > | #define PACKAGE_VERSION "24.4" > | #define PACKAGE_STRING "emacs 24.4" > | #define PACKAGE_BUGREPORT "" > ... > > And my libpng libraries: > # dir /usr/local/lib/libpng.* > lrwxr-xr-x 1 root wheel 10 Dec 26 21:24 /usr/local/lib/libpng.a -> > libpng16.a > lrwxr-xr-x 1 root wheel 11 Dec 26 21:24 /usr/local/lib/libpng.so -> > libpng16.so > > with: > # pkg version |grep -i "^png" > png-1.6.16 = > > I conclude Emacs is does not search for libpng.so but searches for > whatever reason for libpng15.so.15. This is in contrast to > http://www.freshports.org/editors/emacs/. > > I strongly suppose this is a bug related to latest png update. Can anybody > please confirm or correct me before I am going to create a PR. > I hit this same issue. You will need to re-install librsvg2. It has a linkage to the old libpng: Shared object "libpng15.so.15" not found, required by "librsvg-2.so.2" # locate "librsvg-2.so.2" /usr/local/lib/librsvg-2.so.2 /usr/local/lib/librsvg-2.so.2.40.4 # pkg which /usr/local/lib/librsvg-2.so.2 /usr/local/lib/librsvg-2.so.2 was installed by package librsvg2-2.40.4 I found several ports that had links to the libpng15.so using "pkg_libchk -o". That tool is part of sysutils/bsdadminscripts. I have found it to be very rigorous and trust it a bit more than "pkg check -B". I did drop bapt a note listing the ports I found linked to libpng15.so, but I may have missed librsvg2 as I hit that one very early in the process. -- Kevin Oberman, Network Engineer, Retired