On Wed, 26 Feb 2003, Ryan Novosielski wrote:

> Date: Wed, 26 Feb 2003 23:41:08 -0500 (EST)
> From: Ryan Novosielski <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: Danial Howard <[EMAIL PROTECTED]>
> Cc: LPRng Mailing List <[EMAIL PROTECTED]>
> Subject: Re: LPRng: build LPRng with gcc on HP-UX 11i
>
> I always use the HP-UX ANSI-C compilers for my HP-UX machines, and it
> works like a star. If you have access to the ANSI-C compilers
> (/opt/ansic/bin/cc), give them a whack.
>

The error is a warning, and if the programmer knwos what he is doing
it may not be a problem.



> > gcc -I.. -I. -I./include -I./common -D_HPUX_SOURCE=1 -g -W -Wall
> > -Werror -Wno-unused -D_HPUX_SOURCE=1 -g -W -Wall -Werror -Wno-unused
> > -DHAVE_CONFIG_H -c ./common/accounting.c  -fPIC -DPIC -o
> > .libs/accounting.lo

Specifying -Werror means that warnings will be treated as fatal, which they
might not be, but that still needs to be looked into.

> > common/accounting.c: In function `Do_accounting':
> > common/accounting.c:80: warning: signed and unsigned type in
> > conditional expression
> > common/accounting.c:124: warning: signed and unsigned type in
> > conditional expression

Comparing signed with unsigned int values may not do what you expect,
therefore the warning.  If the signed value is never negative there
should be no problem, but you need to look at line 80 and 124 in
the accounting.c file if that is realy the case.  Otherwise you
cast the unsigned variable into a signed value so the comparison
will be between two signed values.



> > make[1]: *** [accounting.lo] Error 1
> > make[1]: Leaving directory `/home/howadani/build/LPRng-3.8.15/src'
> > make: *** [src] Error 2
> >


Villy


-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to