Bug 151960

Summary: archivers/unzip: Fix build when both WITH_UNZIP_UNREDUCE and WITH_ICONV are set.
Product: Ports & Packages Reporter: KOMATSU Shinichiro <koma2>
Component: Individual Port(s)Assignee: Andrey A. Chernov <ache>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description KOMATSU Shinichiro 2010-11-05 10:30:10 UTC
When archivers/unzip is built with both WITH_UNZIP_UNREDUCE and WITH_ICONV are set,
it fails with the following error.

  cc -c -O2 -fno-strict-aliasing -pipe  -I. -Ibzip2 -DUNIX   unix/unix.c
  unix/unix.c:33:19: error: iconv.h: No such file or directory
  unix/unix.c: In function 'charset_to_intern':
  unix/unix.c:1926: error: 'iconv_t' undeclared (first use in this function)
  unix/unix.c:1926: error: (Each undeclared identifier is reported only once
  unix/unix.c:1926: error: for each function it appears in.)
  unix/unix.c:1926: error: expected ';' before 'cd'
  unix/unix.c:1937: error: 'cd' undeclared (first use in this function)  *** Error code 1

To fix this, CFLAGS is passed to make at pre-build stage.

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2010-11-05 10:30:17 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ache

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Andrey A. Chernov freebsd_committer freebsd_triage 2010-11-08 18:35:30 UTC
State Changed
From-To: open->closed

Already fixed