samba-3.5.20 and errors in configure

Thomas Bork tombork at web.de
Sat Apr 6 07:54:01 MDT 2013


Am 07.01.2013 21:34, schrieb ich:

> I'm seeing these errors while configuring samba-3.5.20:
>
> [...]
> checking for prototype struct passwd *getpwent_r(struct passwd *src,
> char *buf, int buflen)... ./configure: line 9979:
> ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__int_buflen_=no:
> command not found
>
> Line 9979:
> `$as_echo "ac_cv_c_prototype_struct passwd *getpwent_r(struct passwd
> *src, char *buf, int buflen)" | $as_tr_sh`=no
>
> [...]
> checking for prototype struct passwd *getpwent_r(struct passwd *src,
> char *buf, size_t buflen)... ./configure: line 10026:
> ac_cv_c_prototype_struct_passwd_pgetpwent_r_struct_passwd_psrc__char_pbuf__size_t_buflen_=no:
> command not found
>
> Line 10026:
> `$as_echo "ac_cv_c_prototype_struct passwd *getpwent_r(struct passwd
> *src, char *buf, size_t buflen)" | $as_tr_sh`=no
>
> [...]
> checking for prototype struct group *getgrent_r(struct group *src, char
> *buf, int buflen)... ./configure: line 10121:
> ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__int_buflen_=no:
> command not found
>
> Line 10121:
> `$as_echo "ac_cv_c_prototype_struct group *getgrent_r(struct group *src,
> char *buf, int buflen)" | $as_tr_sh`=no
>
> [...]
> checking for prototype struct group *getgrent_r(struct group *src, char
> *buf, size_t buflen)... ./configure: line 10169:
> ac_cv_c_prototype_struct_group_pgetgrent_r_struct_group_psrc__char_pbuf__size_t_buflen_=no:
> command not found
>
> Line 10169:
> `$as_echo "ac_cv_c_prototype_struct group *getgrent_r(struct group *src,
> char *buf, size_t buflen)" | $as_tr_sh`=no
>
> [...]
> checking for prototype void *dlopen(const char* filename, unsigned int
> flags)... ./configure: line 10456:
> ac_cv_c_prototype_void_pdlopen_const_charp_filename__unsigned_int_flags_=no:
> command not found
>
> Line 10456:
> `$as_echo "ac_cv_c_prototype_void *dlopen(const char* filename, unsigned
> int flags)" | $as_tr_sh`=no

Nobody answered.
After searching the net a lot I stumbled about this one:

https://lists.samba.org/archive/samba-technical/2013-February/090448.html

Checking the git source of Samba 4.0.4, 3.6.13 and 3.5.21 we have the 
following situation now:

Samba 4.0.4 seems to have the complete fix for this:
----------------------------------------------------
http://gitweb.samba.org/?p=samba.git;a=commitdiff;h=d02b5cd65574a3f0af3fa73439af251e728c87d8
http://gitweb.samba.org/?p=samba.git;a=commitdiff;h=0ef506d4f31d206c300e4f3f326edac2b60bdc15

Samba 3.6.13 seems to have half of the fix for this:
----------------------------------------------------
http://gitweb.samba.org/?p=samba.git;a=commitdiff;h=1daeb4a87f3ae3afeb6fe00c6afce9c7a04e4f9d

Samba 3.5.21 seems to have nothing of the above:
------------------------------------------------
http://gitweb.samba.org/?p=samba.git;a=history;f=lib/replace/libreplace_macros.m4;h=1856eacf66e4fc31f1fd1af1abdb7a626b5ff72f;hb=f6b6d3bf9d43d45560d352b76c12fe0c87a16fa3


With the 2 changes from Samba 4.0.4:
[...]
checking for prototype struct passwd *getpwent_r(struct passwd *src, 
char *buf, int buflen)... no
checking for prototype struct passwd *getpwent_r(struct passwd *src, 
char *buf, size_t buflen)... no
[...]
checking for prototype struct group *getgrent_r(struct group *src, char 
*buf, int buflen)... no
checking for prototype struct group *getgrent_r(struct group *src, char 
*buf, size_t buflen)... no
[...]
checking for prototype void *dlopen(const char* filename, unsigned int 
flags)... no
[...]


What do you think?

-- 
der tom


More information about the samba-technical mailing list