Hello,

Here is my solution to building samba 2.2.3a and 2.2.8a  under HP-UX 11i.
The compilers used are gcc-2.95.3 (fixed for HP-Ux 11i) and gcc-3.1.1.

Compilations fail because the C headers have changed and cause previously
successful ANSI compilations to fail.
This causes configure to fail to detect the file /usr/include/shadow.h and
the make to fail at ~/samba-2.2.8a/passdb/pass_check.c.
The HP ANSI C compiler does not flag an error because it compiles in ANSI
mode with HP extensions.

The fix is simply to add the -traditional-cpp switch to the CFLAGS
environment variable before configuring and compiling as shown below:

        setenv CFLAGS "-O2 -traditional-cpp"

Hope this helps.

Regards
Martin Hughes
mailto:[EMAIL PROTECTED]

Thales Defence (Wells) DISCLAIMER: The information in this message is
confidential and may be legally privileged. It is intended solely for the
addressee.  Access to this message by anyone else is unauthorised.  If you
are not the intended recipient, any disclosure, copying, or distribution of
the message, or any action or omission taken by you in reliance on it, is
prohibited and may be unlawful.  Please immediately contact the sender if
you have received this message in error. Thank you.

Reply via email to