2.2.2 on HP-UX 11.00

H.Merijn Brand h.m.brand at hccnet.nl
Mon Oct 15 08:04:11 GMT 2001


1. Compiler warnings:

# configure --prefix=/pro/local/samba --with-privatedir=/pro/local/samba/private --with-lockdir=/pro/local/samba/var/locks --with-configdir=/pro/local/samba/lib --with-acl-support
# make
:
Compiling smbd/server.c
cc: "smbd/server.c", line 251: warning 604: Pointers are not assignment-compatible.
cc: "smbd/server.c", line 251: warning 563: Argument #3 is not the correct type.
:
Compiling smbd/process.c
cc: "smbd/process.c", line 48: warning 562: Redeclaration of "InBuffer" with a different storage class specifier: "InBuffer" will have internal linkage.
:
Compiling lib/util_sock.c
cc: "lib/util_sock.c", line 183: warning 604: Pointers are not assignment-compatible.
cc: "lib/util_sock.c", line 183: warning 563: Argument #6 is not the correct type.
cc: "lib/util_sock.c", line 1179: warning 604: Pointers are not assignment-compatible.
cc: "lib/util_sock.c", line 1179: warning 563: Argument #3 is not the correct type.
cc: "lib/util_sock.c", line 1193: warning 604: Pointers are not assignment-compatible.
cc: "lib/util_sock.c", line 1193: warning 563: Argument #3 is not the correct type.
:
Compiling smbd/oplock.c
cc: "smbd/oplock.c", line 1251: warning 604: Pointers are not assignment-compatible.
cc: "smbd/oplock.c", line 1251: warning 563: Argument #3 is not the correct type.

Rest is clean

lib/util_sock.c#183
	ret = (ssize_t)recvfrom(fd,buf,len,0,(struct sockaddr *)&sock,&socklen);

here's HPUX's man page header for recvfrom, which is rather strange I think,
because socklen is of type socklen_t which is typedeffed to int. Hmmmm.

 recv(2)                                                             recv(2)

 NAME
      recv, recvfrom, recvmsg - receive a message from a socket

 SYNOPSIS
      #include <sys/socket.h>

      int recv(int s, void *buf, int len, int flags);

      int recvfrom(
          int       s,
          void     *buf,
          int       len,
          int       flags,
          void     *from,
          int      *fromlen
      );

      int recvmsg(int s, struct msghdr msg[], int flags);

    _XOPEN_SOURCE_EXTENDED Only (UNIX 98)
      ssize_t recv(int s, void *buf, size_t len, int flags);

      ssize_t recvfrom(
              int              s,
              void            *buf,
              size_t           len,
              int              flags,
              struct sockaddr *from,
              socklen_t       *fromlen
      );

      ssize_t recvmsg(int s, struct msghdr *msg, int flags);

2. Doc question:

Added/Changed parameters
:
use mmap

set to 'on' by default, only set to 'off' on HPUX 11.x or below or other
UNIX systems that don't have coherent mmap/read-write internal caches.
You should not need to set this parameter.


Does this imply that it's set automatically for HP-UX 11.00 and below? Or *do*
I have to set it on my HP-UX boxes explicitly.


-- 
H.Merijn Brand    Amsterdam Perl Mongers (http://www.amsterdam.pm.org/)
using perl-5.6.1, 5.7.2 & 629 on HP-UX 10.20 & 11.00, AIX 4.2, AIX 4.3,
  WinNT 4, Win2K pro & WinCE 2.11.  Smoking perl CORE: smokers at perl.org
http://archives.develooper.com/daily-build@perl.org/   perl-qa at perl.org
send smoke reports to: smokers-reports at perl.org, QA: http://qa.perl.org





More information about the samba mailing list