[Samba] Problems compiling Samba 2.2.3a on HP-UX 11.00
don_mccall at hp.com
Thu Apr 18 10:28:01 GMT 2002
The problem is that the configure script checks to see if you are using
the HPUX Ansi c compiler, and if you ARE, then modifies some of the
loader parameters that are passed to the HP-UX loader; one of these ensures
that if there are duplicate modules around, the 'nearest' one (in this case
the SAMBA one) gets loaded. Since you are using the gcc complier, this flag
does not get passed to the loader - gcc STILL uses the HPUX loader. On
there wasn't an sprintf implementation, so this issue didn't come up.
You can fix your compilation issue by looking for the following section in
script, commenting out the "if test..." and "fi" lines, removing
config.cache, rerunning configure and then doing a make again:
#define HPUX 1
# Use special PIC flags for the native HP-UX
# if test $ac_cv_prog_cc_Ae = yes; then
LDSHFLAGS="-B symbolic -b -z +h \$@"
cat >> confdefs.h <<\EOF
Hope this helps,
From: Ehrke, Christian [mailto:C.Ehrke at allweiler.de]
Sent: Thursday, April 18, 2002 5:50 AM
To: 'samba at lists.samba.org'
Subject: [Samba] Problems compiling Samba 2.2.3a on HP-UX 11.00
I have problems to complile the actual sources of Samba 2.2.3a on a HP-UX
The compiler I used was gcc 3.0.1 AND gcc 3.0.4
In both cases the same error occures, see also attached text file.
lib/snprintf.c:775: conflicting types for `snprintf'
previous declaration of `snprintf'
The Samba configure script ends successful before invoking the make command.
The same error also occures while trying to compile Samba 2.2.2 on the HP-UX
On HP-UX 10.20 the compilation runs successful.
Who can help?
Mit freundlichem Gruß / Kind regards
Christian Ehrke, Abt./Dept. ZOS
A Member of the
COLFAX PUMP GROUP
Postfach 1140 . 78301 Radolfzell
Allweilerstraße 1 . 78315 Radolfzell
Tel. +49 (0)7732 86-509
Fax +49 ((0)7732 86-552, 86-99509
E-mail: C.Ehrke at allweiler.de
More information about the samba