I am having trouble compiling rsync 2.5.6 for HPUX 11.00. The system I am using has a number of patches, although I admit not having verified that it is completely up to date. I have found gcc 3.2 and gmake and installed them. - configure seems to work fine. (my use ./configure --prefix=/opt/trial/local --with-rsync-path=/opt/trial/local/bin/rsync) - it finds snprintf and vsnprintf but not C99 vsnprintf <snip> checking for vsnprintf... yes checking for snprintf... yes checking for asprintf... no checking for C99 vsnprintf... no <snip> - make fails <snip - all worked up to:> gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c lib/snprintf.c -o lib/snprintf.o lib/snprintf.c: In function `dopr': lib/snprintf.c:199: warning: signed and unsigned type in conditional expression lib/snprintf.c:219: warning: signed and unsigned type in conditional expression lib/snprintf.c: At top level: lib/snprintf.c:760: error: conflicting types for `snprintf' /usr/local/lib/gcc-lib/hppa1.1-hp-hpux11.00/3.2/include/stdio.h:459: error: previous declaration of `snprintf' *** Error exit code 1 The problem seems to be in lib/snprintf.c : #if defined(HAVE_SNPRINTF) && defined(HAVE_VSNPRINTF) && defined(HAVE_C99_VSNPRINTF) /* only include stdio.h if we are not re-defining snprintf or vsnprintf */ #include <stdio.h> /* make the compiler happy with an empty file */ void dummy_snprintf(void) {} #else <snip> - if I just run: gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -DHAVE_SNPRINTF -DHAVE_VSNPRINTF -DHAVE_C99_VSNPRINTF -Wall -W -I./popt -c lib/snprintf.c -o lib/snprintf.o and then make again, it seems to work. It seems to me I may have some issue with gcc-lib or with missing HPUX patches, but not too sure. Am I on the right track here? Cheers, John Campbell There are 10 types of people in this world. Those that understand binary and those that don't. This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. Ce message est CONFIDENTIEL. Si vous n'en n'?tes pas le destinataire, veuillez le supprimer sans en faire de copies et pr?venir l'exp?diteur par messagerie ?lectronique qu'il n'a pas ?t? achemin? ? la destination voulue. NOTA : Quel que soit le contenu du message, il ne lie CSC ? aucune commande ni ? aucun contrat ? moins que la commande ou le contrat fasse suite ? une entente ?crite ou ? une initiative gouvernementale explicite pr?voyant express?ment l'utilisation de la messagerie ?lectronique ? cette fin.
Jim_Donovan@Playstation.sony.com
2003-Apr-09 08:48 UTC
compile 11.00 parisc1.1 32-bit fails - snprintf
I found that after running configure, it was necessary to modify the config.h file as follows: replace #undef HAVE_C99_VSNPRINTF with #define HAVE_C99_VSNPRINTF 1 You should then be able to compile. Jim Donovan Systems Engineer Sony Computer Entertainment America --------------------------------------------------------------------------------------- Steinbach's Guideline for Systems Programming Never test for an error condition you don't know how to handle.