Hi, I have ported Samba 2.0.6 to run on Linux/IA-64. I had to make a few modifications to get Samba to configure and compile properly. The mods mostly have to do with missing prototypes which weren't present in system include files (e.g. ptsname()). The biggest pain turned out to be a prototype for crypt() which is defined in <unistd.h> only with -D_XOPEN_SOURCE. Defining this caused other problems so I solved the problem by adding config checks for <crypt.h> and including it explicitly. The complete patch (relative to 2.0.6, works on 2.0.7 as well) is included below. Let me know if you have any questions or if there are any problems with the patch. Thanks, Uros -- Uros Prestor uros@turbolinux.com -------------- next part -------------- diff -ruN samba-2.0.6/source/configure.in samba-2.0.6.ia64/source/configure.in --- samba-2.0.6/source/configure.in Thu Dec 9 08:38:31 1999 +++ samba-2.0.6.ia64/source/configure.in Fri Apr 28 18:39:24 2000 @@ -179,6 +179,7 @@ AC_CHECK_HEADERS(sys/mman.h sys/filio.h sys/priv.h string.h strings.h stdlib.h sys/socket.h) AC_CHECK_HEADERS(sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h) AC_CHECK_HEADERS(sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h) +AC_CHECK_HEADERS(crypt.h) # # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT. # This causes configure to fail to detect it. Check for shadow separately on HPUX. diff -ruN samba-2.0.6/source/include/includes.h samba-2.0.6.ia64/source/include/includes.h --- samba-2.0.6/source/include/includes.h Wed Nov 10 18:36:00 1999 +++ samba-2.0.6.ia64/source/include/includes.h Fri Apr 28 18:51:12 2000 @@ -324,6 +324,10 @@ #define PASSWORD_LENGTH 16 #endif /* HAVE_SYS_SECURITY_H */ +#ifdef HAVE_CRYPT_H +#include <crypt.h> +#endif + #ifdef HAVE_COMPAT_H #include <compat.h> #endif diff -ruN samba-2.0.6/source/smbd/chgpasswd.c samba-2.0.6.ia64/source/smbd/chgpasswd.c --- samba-2.0.6/source/smbd/chgpasswd.c Wed Nov 10 18:36:08 1999 +++ samba-2.0.6.ia64/source/smbd/chgpasswd.c Fri Apr 28 18:45:44 2000 @@ -50,6 +50,7 @@ #include "includes.h" extern int DEBUGLEVEL; +extern char* ptsname(int); #if ALLOW_CHANGE_PASSWORD diff -ruN samba-2.0.6/source/tests/crypttest.c samba-2.0.6.ia64/source/tests/crypttest.c --- samba-2.0.6/source/tests/crypttest.c Fri Feb 5 13:32:15 1999 +++ samba-2.0.6.ia64/source/tests/crypttest.c Fri Apr 28 18:39:47 2000 @@ -8,6 +8,10 @@ #include <string.h> #endif +#ifdef HAVE_CRYPT_H +#include <crypt.h> +#endif + #ifdef HAVE_STRINGS_H #include <strings.h> #endif