SCO compilation of 1.9.16p10 and higher

Stefaan A Eeckels Stefaan.Eeckels at ecc.lu
Wed Jul 16 15:58:29 GMT 1997


Hello list,

We discovered that it was impossible to compile Samba 
1.9.16p10 on SCO Openserver 3.2.2 (native compiler).

Here's a small patch that fixes this problem:

----cut here----
*** includes.h.orig     Sun Feb 23 04:26:40 1997
--- includes.h  Mon Jun 30 16:18:27 1997
***************
*** 668,692 ****
  #include <prot.h>
  #define crypt bigcrypt
  #endif
- #ifndef EVEREST
-  #define ftruncate(f,l) syscall(0x0a28,f,l)
- #endif 
  #define SIGNAL_CAST (void (*)(int))
  #define USE_WAITPID
  #define USE_GETCWD
  #define USE_SETSID
  #ifdef SCO3_2_2
! #define NO_EID
  #else
  #ifndef EVEREST
  #define USE_IFREQ
  #endif
  #endif
  #define STATFS4
  #define NO_FSYNC
- #ifndef EVEREST
- #define NO_INITGROUPS
- #endif
  #define HAVE_PATHCONF
  #define NO_GETRLIMIT
  #endif
--- 668,689 ----
  #include <prot.h>
  #define crypt bigcrypt
  #endif
  #define SIGNAL_CAST (void (*)(int))
  #define USE_WAITPID
  #define USE_GETCWD
  #define USE_SETSID
  #ifdef SCO3_2_2
! #define setuid(u) setreuid(u,-1)
! #define seteuid(u) setreuid(-1,u)
  #else
  #ifndef EVEREST
+ #define NO_INITGROUPS
  #define USE_IFREQ
+ #define ftruncate(f,l) syscall(0x0a28,f,l)
  #endif
  #endif
  #define STATFS4
  #define NO_FSYNC
  #define HAVE_PATHCONF
  #define NO_GETRLIMIT
  #endif
*** Makefile.orig       Sun Feb 23 04:26:39 1997
--- Makefile    Fri Jun 27 14:25:10 1997
***************
*** 60,66 ****
  # NOTE: The account "nobody" may not be a good one as
  # on many unixes it may not be able to print. Thus you
  # might have to create a separate guest account that can print.
! GUESTACCOUNT = nobody
  
  # where you are going to have the smbrun binary. This defaults to the 
  # install directory. This binary is needed for correct printing
--- 60,66 ----
  # NOTE: The account "nobody" may not be a good one as
  # on many unixes it may not be able to print. Thus you
  # might have to create a separate guest account that can print.
! GUESTACCOUNT = nouser
  
  # where you are going to have the smbrun binary. This defaults to the 
  # install directory. This binary is needed for correct printing
***************
*** 381,386 ****
--- 381,390 ----
  #Note: The SCO entries require the libcrypt library. You can get it via
  #anonymous ftp from ftp.sco.com:/SLS/lng225b.* or ftp.uu.net:/vendors/sco
  #
+ # PJR's attempt
+ FLAGSM = -O3 -DSCO -DSCO3_2_2 -DSHADOW_PWD -DNETGROUP -DUSE_MMAP
-DFAST_SHARE_MODES=1 -DUTMPX
+ LIBSM = -lsec -lsocket -lintl
+ #
  # Use this for SCO with shadow passwords. Tested on "Open enterprise 3.0"
  # SCO changes from Heinz Mauelshagen (mauelsha at ez.da.telekom.de)
  # FLAGSM = -DSCO -DSHADOW_PWD -DNETGROUP
----cut here----

Hope this helps

Paul Rippin & Stefaan Eeckels

___________________________________________________________________
Stefaan A Eeckels                         (Stefaan.Eeckels at ecc.lu)
  "The nice thing about standards is that there are so many of
   them to choose from."                 -- Andrew S Tanenbaum
___________________________________________________________________


More information about the samba mailing list