Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68709 - cfengine uses incorrect typedef for setnetgrent()
Summary: cfengine uses incorrect typedef for setnetgrent()
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Kurt Lieber (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-24 08:53 UTC by solar (RETIRED)
Modified: 2004-10-30 08:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
cfengine-2.1.10-setnetgrent.patch (cfengine-2.1.10-setnetgrent.patch,1.01 KB, patch)
2004-10-24 08:55 UTC, solar (RETIRED)
Details | Diff
cfengine-2.1.10-r1.ebuild.diff (cfengine-2.1.10-r1.ebuild.diff,1.09 KB, patch)
2004-10-24 09:00 UTC, solar (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description solar (RETIRED) gentoo-dev 2004-10-24 08:53:32 UTC
As seen in the cfengine code http://www.cfengine.org/src-mirror/prototypes.h the
deceleration for setnetgrent() uses type void while /usr/include/netdb.h itself 
defines setnetgrent() as type int.
This results in the cfengine build to failing when HAVE_GETNETGRENT is not defined.

I'm using sys-libs/db-4.2.52_p2  with "-doc -java -tcltk"
This problem showed up for me while building cfengine on a uClibc system.

This problem seems to be an old one 
http://lists.gnu.org/archive/html/help-cfengine/2004-05/msg00011.html
Comment 1 solar (RETIRED) gentoo-dev 2004-10-24 08:55:33 UTC
Created attachment 42503 [details, diff]
cfengine-2.1.10-setnetgrent.patch

Patch that fixes deceleration of setnetgrent
Comment 2 solar (RETIRED) gentoo-dev 2004-10-24 09:00:11 UTC
Created attachment 42504 [details, diff]
cfengine-2.1.10-r1.ebuild.diff

ebuild changes. Also adds gnuconfig_update (needed for atleast uClibc)
Comment 3 Kurt Lieber (RETIRED) gentoo-dev 2004-10-24 11:45:21 UTC
reported and fixed in upstream, so it will be included as part of 2.1.11.

A patched 2.1.10 will be in portage shortly.
Comment 4 Kurt Lieber (RETIRED) gentoo-dev 2004-10-30 08:17:15 UTC
fixed in .10-r1