Hi Christian, 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 10.20 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 your configure script, commenting out the "if test..." and "fi" lines, removing config.cache, rerunning configure and then doing a make again:
#define HPUX 1 EOF SHLIBEXT="sl" # Use special PIC flags for the native HP-UX compiler. # if test $ac_cv_prog_cc_Ae = yes; then BLDSHARED="true" SHLD="/usr/bin/ld" LDSHFLAGS="-B symbolic -b -z +h \$@" PICFLAG="+z" # fi DYNEXP="-Wl,-E" cat >> confdefs.h <<\EOF Hope this helps, Don -----Original Message----- From: Ehrke, Christian [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 5:50 AM To: '[EMAIL PROTECTED]' Subject: [Samba] Problems compiling Samba 2.2.3a on HP-UX 11.00 Hello, I have problems to complile the actual sources of Samba 2.2.3a on a HP-UX 11.00 system. 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' /opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.0.4/include/stdio.h:493: 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 11.00 machine. On HP-UX 10.20 the compilation runs successful. Who can help? Mit freundlichem Gruß / Kind regards Christian Ehrke, Abt./Dept. ZOS Organisation/Informationsystems ALLWEILER AG A Member of the COLFAX PUMP GROUP Postfach 1140 . 78301 Radolfzell Allweilerstraße 1 . 78315 Radolfzell Germany Tel. +49 (0)7732 86-509 Fax +49 ((0)7732 86-552, 86-99509 E-mail: [EMAIL PROTECTED] http://www.allweiler.com <<error.txt>> -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba