compile 11.00 parisc1.1 32-bit fails - snprintf

John R Campbell jcampb35 at csc.com
Tue Apr 8 06:16:35 EST 2003



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.




More information about the rsync mailing list