ports/180350: sigil build problems when libzip installed

John Levine hostmaster at iecc.com
Sat Jul 6 17:40:00 UTC 2013


>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 at 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:


More information about the freebsd-ports-bugs mailing list