Hughes, Martin
2003-Sep-18 11:05 UTC
[Samba] Successfuly Building Samba 2.2.X under HP-UX 11i with gcc
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 /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 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:martin.hughes@uk.thalesgroup.com 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.