Problem
The source code to Samba 2.2.5 fails to compile on OpenServer 5.0.6 using the OpenServer Development system if the supplement RS506A has been installed after the Development system.
The "configure" command for Samba runs through fine but the "make" fails with the following error:
Compiling smbd/server.c "include/includes.h", line 863: error: identifier redeclared: initgroups *** Error code 1 (bu21)
Cause
RS506A introduced a new version of libsocket, and some symbols were moved to a new library called "libresolv" which has caused some compilation issues.
Solution
The BIND Update Supplement OSS640A resolves this problem. Install it after RS506A, remove the config.cache file from the Samba source directory and then re-run the Samba source "configure" and "make" commands.
NOTES: Unless you are making changes to the Samba source, there is no need
to compile from the source for OpenServer 5. Compiled binary VOL
files can be downloaded from the Samba mirror web sites:http://us2.samba.org/samba/ftp/bin-pkgs/SCO/OpenServerAt the time of publication od this article, Samba 2.2.5 is available at the above location. Samba 2.2.6 is planned to be shipped with OpenServer 5.0.7.
Also note that at this time OpenServer 5.x does not support the use of smbsh when configured using the --with-smbwrapper option; smbsh requires use of the LD_PRELOAD facility of SVR4 dynamic link libraries and this is not currently available with OpenServer 5. Trying to compile the code after enabling this option will result in the compile process core dumping.
See also
ta116885,"What is SLS OSS640A, the BIND Update Supplement?" ta114882,"After installing RS506A, my application fails to link with unresolved symbols in libsocket.a"