ppr-list-digest volume 3, number 39, message 1

Note: please don't spam any of the e-mail addresses which you see here. Follow this link if you want some addresses to misuse.


From: Benjamin Jellema <jellema@emunix.emich.edu>
Date: Thu, 22 Mar 2001 13:43:00 -0500
Subject: Re: PPR: Compliling on RedHat 7.0

	After I sent out the message, I realized I was being tremendously
vague.  I actually do have these rpms installed:
compat-glibc-6.2-2.1.3.2
glibc-2.2-12
glibc-common-2.2-12
libstdc++-devel-2.96-54
gcc-2.96-54

	My compile errors happen in:
snprintf.c: In function `dopr':
snprintf.c:294: `short int' is promoted to `int' when passed through `...'
snprintf.c:294: (so you should pass `int' not `short int' to `va_arg')
snprintf.c:306: `short unsigned int' is promoted to `int' when passed through `...'
snprintf.c:318: `short unsigned int' is promoted to `int' when passed through `...'
snprintf.c:332: `short unsigned int' is promoted to `int' when passed through `...'
make[1]: *** [snprintf.o] Error 1
make[1]: Leaving directory `/home/root/ppr-1.42/libgu'
make: *** [all] Error 1

	I have looked briefly at the code and changed the definition from 
'short unsigned int' to just plain 'int' in the function calls.  This seems 
okay because it was another option in the case statement ( Original='-->'
Modified='*->').  It compiled happily.  I am just now trying to see if it 
works.

	This is part of a case statement in the snprintf.c file (originating
at line 293):
        if (cflags == DP_C_SHORT)
- -->        value = va_arg (args, short int);
        else if (cflags == DP_C_LONG)
          value = va_arg (args, long int);
        else if (cflags == DP_C_LLONG)
          value = va_arg (args, LLONG);
        else
*->        value = va_arg (args, int);

Thank you,
Benjamin

On Wed, Mar 21, 2001 at 03:27:05PM -0500, David Chappell wrote:
> Benjamin Jellema wrote:
> 
> > 	Hey, 
> > I currently have a fresh install of RedHat 7.0 and a copy of ppr-1.42.
> > I am trying to compile ppr from scratch and it keeps blowing up.  I was 
> > wondering if there is a known incompatability with the gcc libs or if
> > anyone knew the default minimum programs or packages that need to be 
> > installed to successfully compile.
> > 
> > Thanks,
> > Benjamin
> 
> There are no know incompatibilities.  The requirements are stated in 
> INSTALL.txt, but they are easily met by any Linux system I have ever seen.
> 
> I assume you have glibc-devel, kernel-headers, and gdbm-devel installed 
> as well as binutils and gcc?  If not you won't be able to compile 
> anything.  Don't laugh, it is possible to install Redhat without these 
> basic packages.

- -- 
###########################################################################
# Benjamin W. Jellema	       Technical Advisor       Goddard Ex-Patriot #
# jellema@emunix.emich.edu     W8SWN      --Moarns let, de hiele dei let. #
###########################################################################