Autoconf crypt test for Samba 2.0

green at UMDNJ.EDU green at UMDNJ.EDU
Wed Dec 16 22:29:20 GMT 1998


On Thu, 17 Dec 1998, Jeremy Allison wrote:

> I have had a couple of people come and say that HPUX
> needs a salt string truncated after 2 characters in
> order to do a password crypt correctly, and someone
> else say that FreeBSD 2.7 needs more than 2 characters
> do to a password crypt correctly. Can people running
> HPUX and FreeBSD run the following program (a varient
> of which I'm intending to use as an autoconf test)
> and let me know the results.

With HPUX 10.20, both c_out1 and c_out2 print out identical results.


However...

Compiling with "configure --with-mmap".

Both current cvs updates (2.0 and 2.1), compiling fails at smbd/open.c
thusly:

(2.1 alpha)
Compiling smbd/open.c
cc: "smbd/open.c", line 556: error 1588: "PROT_READ" undefined.
cc: "smbd/open.c", line 555: warning 563: Argument #3 is not the correct type.
cc: "smbd/open.c", line 556: error 1588: "MAP_SHARED" undefined.
cc: "smbd/open.c", line 555: warning 563: Argument #4 is not the correct type.
*** Error exit code 1

(2.0 beta)
Compiling smbd/open.c
cpp: "values.h", line 27: warning 2001: Redefinition of macro MAXINT.
cc: "smbd/open.c", line 556: error 1588: "PROT_READ" undefined.
cc: "smbd/open.c", line 555: warning 563: Argument #3 is not the correct type.
cc: "smbd/open.c", line 556: error 1588: "MAP_SHARED" undefined.
cc: "smbd/open.c", line 555: warning 563: Argument #4 is not the correct type.
*** Error exit code 1

Notes: 
1) every source file in 2.0 beta generates the MAXINT error (but not in
   2.1 alpha)
2) PROT_READ and MAP_SHARED *are* defined (in sys/mman.h)
3) commenting out the block in includes.h where it chooses
   between HAVE_SYSV_IPC or HAVE_SHARED_MMAP  lets samba compile.

c
-- 
Clifford Green               Internet -  green at umdnj.edu
Academic Computing Services     voice -     732-235-5250
UMDNJ-IST                         fax -     732-235-5252
Take kindly the counsel of the years, gracefully surrendering the things
of youth.




More information about the samba-technical mailing list