Technical article 119043

Samba fails to compile on OpenServer 5.0.6 with supplement RS506A installed

OpenServer 5.0.6

Written · Last revised

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/OpenServer

At 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"

From the Xinuos technical article database, record 119043. Reproduced with permission. The original is at www.sco.com/ta/119043, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.