From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jul 6 17:40:00 2013 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]) by hub.freebsd.org (Postfix) with ESMTP id AF92CA09 for ; Sat, 6 Jul 2013 17:40:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 7DE1C1E0D for ; Sat, 6 Jul 2013 17:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r66He02h040984 for ; Sat, 6 Jul 2013 17:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r66He0P6040983; Sat, 6 Jul 2013 17:40:00 GMT (envelope-from gnats) Resent-Date: Sat, 6 Jul 2013 17:40:00 GMT Resent-Message-Id: <201307061740.r66He0P6040983@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, John Levine Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B9B6E9AF for ; Sat, 6 Jul 2013 17:34:13 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id AD55F1DEA for ; Sat, 6 Jul 2013 17:34:13 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r66HYDQ0057882 for ; Sat, 6 Jul 2013 17:34:13 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r66HYDeW057878; Sat, 6 Jul 2013 17:34:13 GMT (envelope-from nobody) Message-Id: <201307061734.r66HYDeW057878@oldred.freebsd.org> Date: Sat, 6 Jul 2013 17:34:13 GMT From: John Levine To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/180350: sigil build problems when libzip installed X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Jul 2013 17:40:00 -0000 >Number: 180350 >Category: ports >Synopsis: sigil build problems when libzip installed >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jul 06 17:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: John Levine >Release: 9.1-RELEASE >Organization: Taughannnock Networks >Environment: FreeBSD joyce.lan 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Mon Apr 29 18:27:25 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: When building sigil on my system, Sigil/Exporters/ExportEPUB.cpp fails to build with some errors about undefined types. It includes and the libzip port installs /usr/local/include/zip.h which shadows minizip/zip.h in the sigil package. I kludged around it by renaming /usr/local/include/zip.h out of the way while I was building it, and the build works. >How-To-Repeat: install libzip, then try to build sigilhttp://www.freebsd.org/send-pr.html >Fix: My suggestion is to rename minizip/zip.h to minizip/mzip.h, and patch the two places it's included in minizip/zip.c and Sigil/Exporters/ExportEPUB.cpp to include mzip.h rather than zip.h. I suppose you could try and patch the cmake files to put the local include directories ahead of the system ones, but that seems much messier. >Release-Note: >Audit-Trail: >Unformatted: