Bug 7655 - net/cnet doesn't build under -current (with fix)
Summary: net/cnet doesn't build under -current (with fix)
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: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1998-08-18 03:40 UTC by Don Croyle
Modified: 1998-08-24 03:48 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 Don Croyle 1998-08-18 03:40:00 UTC
Clash between errno as a structure member and the errno macro in
errno.h.  The build dies here:

gcc -Wall -ansi -O  -I/usr/X11R6/include -c address.c
In file included from address.c:1:
cnetheader.h:203: field `__error' declared as a function
*** Error code 1

Stop.

Fix: 

Rename the problem structure members from errno to errorno throughout.
While I was in the neighborhood, I also removed the manpage from the
PLIST.

Apply this patch.  It adds two files: patches/patch-ab and
patches/patch-ac.
How-To-Repeat: Build net/cnet on a system build with recent current sources.
Comment 1 Steve Price freebsd_committer freebsd_triage 1998-08-24 01:49:24 UTC
State Changed
From-To: open->feedback

Perhaps I'm just blind but I don't see any diffs.  Where did you 
put them? 
Comment 2 Steve Price freebsd_committer freebsd_triage 1998-08-24 03:48:33 UTC
State Changed
From-To: feedback->closed

Patches committed, thanks!