From owner-freebsd-ports-bugs@FreeBSD.ORG Mon May 5 19:50:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.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 C2831816 for ; Mon, 5 May 2014 19:50:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (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 981375F98 for ; Mon, 5 May 2014 19:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s45Jo0xL067001 for ; Mon, 5 May 2014 19:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s45Jo0sT067000; Mon, 5 May 2014 19:50:00 GMT (envelope-from gnats) Resent-Date: Mon, 5 May 2014 19:50:00 GMT Resent-Message-Id: <201405051950.s45Jo0sT067000@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Christoph Moench-Tegeder Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 811D85D0 for ; Mon, 5 May 2014 19:44:40 +0000 (UTC) Received: from smtp.burggraben.net (base.exwg.net [IPv6:2a01:4f8:140:50a2::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "ns.exwg.net", Issuer "Christoph Moench-Tegeder" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 144325F64 for ; Mon, 5 May 2014 19:44:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.burggraben.net (Postfix) with ESMTP id B28BC6003CD for ; Mon, 5 May 2014 21:44:37 +0200 (CEST) Received: from smtp.burggraben.net ([127.0.0.1]) by localhost (ns.burggraben.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WLKBMyolEzr0 for ; Mon, 5 May 2014 21:44:33 +0200 (CEST) Received: from elch.exwg.net (elch.exwg.net [IPv6:2001:470:7b43:1:6a05:caff:fe01:aae9]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "elch.exwg.net", Issuer "Christoph Moench-Tegeder" (verified OK)) by smtp.burggraben.net (Postfix) with ESMTPS for ; Mon, 5 May 2014 21:44:33 +0200 (CEST) Received: by elch.exwg.net (Postfix, from userid 1000) id C914330196; Mon, 5 May 2014 21:44:32 +0200 (CEST) Message-Id: <20140505194432.C914330196@elch.exwg.net> Date: Mon, 5 May 2014 21:44:32 +0200 (CEST) From: Christoph Moench-Tegeder Reply-To: Christoph Moench-Tegeder To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/189381: astro/cfitsio : needs its own zlib X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 May 2014 19:50:00 -0000 >Number: 189381 >Category: ports >Synopsis: astro/cfitsio : needs its own zlib >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 05 19:50:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Christoph Moench-Tegeder >Release: FreeBSD 10.0-RELEASE-p2 amd64 >Organization: >Environment: System: FreeBSD elch.exwg.net 10.0-RELEASE-p2 FreeBSD 10.0-RELEASE-p2 #4 r265158: Wed Apr 30 22:41:03 CEST 2014 cmt@elch.exwg.net:/usr/obj/usr/src/sys/ELCH amd64 cfitsio-3.360 astro/cfitsio ufraw-0.19.2_4 graphics/ufraw >Description: When building ufraw (and others) with cfitsio support (optional via OPTIONS) againts cfitsio-3.360, linking fails with : c++ -O2 -pipe -march=core2 -fno-strict-aliasing -L/usr/local/lib -pthread -lz -o nikon-curve nikon_curve-nikon_curve.o -L/usr/local/lib -lexiv2 -lgthread-2.0 -pthread -L/usr/local/lib -lglib-2.0 -lintl -L/usr/local/lib -llcms -L/usr/local/lib/ -llensfun -L/usr/local/lib -lglib-2.0 -lintl -L/usr/local/lib -ltiff -L/usr/local/lib -lpng15 -L/usr/local/lib -lcfitsio -ljasper -ljpeg -lbz2 -lz -lm -lintl (omitted) : /usr/local/lib/libcfitsio.so: undefined reference to `compress2file_from_mem' : /usr/local/lib/libcfitsio.so: undefined reference to `compress2mem_from_mem' : /usr/local/lib/libcfitsio.so: undefined reference to `uncompress2file' : /usr/local/lib/libcfitsio.so: undefined reference to `uncompress2mem_from_mem' : /usr/local/lib/libcfitsio.so: undefined reference to `uncompress2mem' : /usr/local/lib/libcfitsio.so: undefined reference to `zuncompress2mem' : c++: error: linker command failed with exit code 1 (use -v to see invocation) I've seen a very similar error with graphics/gdal (when cfitsio-enabled), but failed to safe the error message befor fixing citsio). These functions are defined in cfitsio's private copy of zlib, but not in our (at least 10.0-RELEASE) zlib (see cfitsio/zlib/zuncompress.c - the system zlib does not have zuncompress.c and does not know about uncompress2mem() and the like). cfitsio's private zlib is disabled by editing cfitsio/Makefile.in in post-patch. >How-To-Repeat: >Fix: Do not lobotimize cfitsio (and bump PORTREVISION, to get a rebuild): Patch for astro/cfitsio: Index: Makefile =================================================================== --- Makefile (revision 353037) +++ Makefile (working copy) @@ -3,6 +3,7 @@ PORTNAME= cfitsio PORTVERSION= 3.360 +PORTREVISION= 1 CATEGORIES= astro MASTER_SITES= http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/ \ http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/oldvers/ \ @@ -36,9 +37,6 @@ SHLIB_MAJOR_VER=2 SHLIB_MINOR_VER=${PORTVERSION:S/0$//} -post-patch: - @${REINPLACE_CMD} -e 's|$${ZLIB_SOURCES[:=a-z\.]*}||' ${WRKSRC}/Makefile.in - do-install: cd ${WRKSRC}/ && ${INSTALL_DATA} drvrsmem.h fitsio.h fitsio2.h longnam.h ${STAGEDIR}${PREFIX}/include/ cd ${WRKSRC}/ && ${INSTALL_LIB} libcfitsio.a libcfitsio.so.${SHLIB_MAJOR_VER}.${SHLIB_MINOR_VER} ${STAGEDIR}${PREFIX}/lib/ Regards, Christoph >Release-Note: >Audit-Trail: >Unformatted: