Bug 99957 - libgnugetopt incompatibility
Summary: libgnugetopt incompatibility
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: Stefan Walter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-09 12:30 UTC by Steinar Børmer
Modified: 2006-07-30 12:57 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steinar Børmer 2006-07-09 12:30:14 UTC
devel/libgnugetopt causes problems when compiling print/hplip.



In file included from /usr/local/include/net-snmp/utilities.h:31,
                 from /usr/local/include/net-snmp/net-snmp-includes.h:75,
                 from io/hpiod/system.cpp:30:
/usr/local/include/getopt.h:115: error: declaration of C function `int getopt()' conflicts with
/usr/include/unistd.h:377: error: previous declaration `int getopt(int, char* const*, const char*)' here
*** Error code 1

Stop in /usr/ports/print/hplip/work/hplip-0.9.11.
*** Error code 1

Stop in /usr/ports/print/hplip/work/hplip-0.9.11.
*** Error code 1

Stop in /usr/ports/print/hplip.



This seems to be the same problem as in

http://www.freebsd.org/cgi/query-pr.cgi?pr=54866

and

http://www.freebsd.org/cgi/query-pr.cgi?pr=54037


The oldest of these PRs is now three years old, and the problem persists.

Please note that print/hplip installs fine without devel/libgnugetopt installed.

How-To-Repeat: Install devel/libgnugetopt, then install print/hplip.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-07-09 12:32:58 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Stefan Walter freebsd_committer freebsd_triage 2006-07-30 12:00:51 UTC
State Changed
From-To: feedback->open

Feedback received. 


Comment 3 Stefan Walter freebsd_committer freebsd_triage 2006-07-30 12:00:51 UTC
Responsible Changed
From-To: freebsd-ports-bugs->stefan

Take.
Comment 4 Stefan Walter freebsd_committer freebsd_triage 2006-07-30 12:57:10 UTC
State Changed
From-To: open->closed

Committed, thanks!