Date: Sat, 6 Jul 2013 17:34:13 GMT From: John Levine <hostmaster@iecc.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/180350: sigil build problems when libzip installed Message-ID: <201307061734.r66HYDeW057878@oldred.freebsd.org> Resent-Message-ID: <201307061740.r66He0P6040983@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <zip.h> 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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307061734.r66HYDeW057878>