Bug 76869 - [MAINTAINER] graphics/ocrad: Unbreak for 4.x
Summary: [MAINTAINER] graphics/ocrad: Unbreak for 4.x
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Volker Stolz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-30 20:00 UTC by Ulrich Spoerlein
Modified: 2005-02-01 18:03 UTC (History)
0 users

See Also:


Attachments
ocrad-0.10.patch (1.12 KB, patch)
2005-01-30 20:00 UTC, Ulrich Spoerlein
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Spoerlein 2005-01-30 20:00:34 UTC
Unbreak the build on pointyhat: Including getopt.h clashes with unistd.h

In file included from main.cc:31:
/usr/local/include/getopt.h:115: error: declaration of C function `int getopt()' conflicts with
/usr/include/unistd.h:112: error: previous declaration `int getopt(int, char* const*, const char*)' here

Define HAVE_DECL_GETOPT to make this work. I wonder how any port can use
getopt.h on 4.x without that define.

Generated with FreeBSD Port Tools 0.63
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2005-02-01 14:28:13 UTC
State Changed
From-To: open->feedback

On 4.11: 
g++34  -O2 -pipe -g  -c main.cc 
In file included from main.cc:31: 
/usr/local/include/getopt.h:115: error: declaration of C function `int getopt()' conflicts with 
/usr/include/unistd.h:112: error: previous declaration `int getopt(int, char* const*, const char*)' here 
*** Error code 1 

- Your patch to the Makefile is based on v1.4 while the CVS-version is 
already at 1.5 
- Do you mind if I remove pkg-plist in favour of PORTDOCS and PLIST_FILES 
once we get this sorted out? 


Comment 2 Volker Stolz freebsd_committer freebsd_triage 2005-02-01 14:28:13 UTC
Responsible Changed
From-To: freebsd-ports-bugs->vs

I'll track this.
Comment 3 Volker Stolz freebsd_committer freebsd_triage 2005-02-01 14:33:45 UTC
Whoops, please disregard the error, all my fault, it builds fine. -- vs
Comment 4 Volker Stolz freebsd_committer freebsd_triage 2005-02-01 18:02:17 UTC
State Changed
From-To: feedback->closed

Committed, thanks!