Bug 5914 - Build failure: redefinition of struct name_list
Summary: Build failure: redefinition of struct name_list
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.2
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.2.4
Hardware: Other Linux
: P3 normal
Target Milestone: ---
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-21 05:47 UTC by Steven Don
Modified: 2008-11-25 17:55 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 Steven Don 2008-11-21 05:47:27 UTC
At least one version of the standard GNU C Library already contains a definition for struct name_list (on my system, this is in /usr/include/inet/netgroup.h). This file is also indirectly included when building source/utils/smbtree.c.

smbtree.c also tries to define a struct name_list, on line 33 of a vanilla 3.2.4 source tree and thus fails the build.

Renaming the structure type name (I used "smb_name_list") allows the build to proceed.
Comment 1 Jeremy Allison 2008-11-25 17:55:54 UTC
Fixed in all git-trees. Thanks !
Jeremy.