[Date Prev][Date Next] [Chronological] [Thread] [Top]

backend-shell compile error (ITS#1985)



Full_Name: Alan Sparks
Version: 2.1.3-Release
OS: Solaris 7
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (208.169.18.3)


Compiling with GCC 2.95.2 on Solaris 7, --=enable-shell specified, compile
crashes with following diagnostics:

gcc -O2 -I/usr/local/BerkeleyDB/4.x/include -I/usr/local/include
-I/usr/local/ssl/include -I../../../include -I../../../include -I.. -I./..
-I/usr/local/BerkeleyDB/4.x/include -I/usr/local/include
-I/usr/local/ssl/include -c fork.c  -fPIC -DPIC -o .libs/fork.lo
fork.c: In function `make_surrogate_parent':
fork.c:132: structure has no member named `msg_flags'
fork.c: In function `forkandexec':
fork.c:277: structure has no member named `msg_flags'
make[3]: *** [fork.lo] Error 1
make[3]: Leaving directory
`/home/depot/build/openldap-2.1.3/servers/slapd/back-shell'

Solaris defines this structure as:
struct msghdr {
        void            *msg_name;              /* optional address */
        socklen_t       msg_namelen;            /* size of address */
        struct iovec    *msg_iov;               /* scatter/gather array */
        int             msg_iovlen;             /* # elements in msg_iov */

#if defined(_XPG4_2) || defined(_KERNEL)
        void            *msg_control;           /* ancillary data */
        socklen_t       msg_controllen;         /* ancillary data buffer len */
        int             msg_flags;              /* flags on received message */
#else
        caddr_t         msg_accrights;  /* access rights sent/received */
        int             msg_accrightslen;
#endif  /* defined(_XPG4_2) || defined(_KERNEL) */
};