On Wed, 27 Aug 2003, Mike Bowman wrote: > Date: Wed, 27 Aug 2003 07:48:02 +0800 > From: Mike Bowman <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: RE: LPRng: unable to make lprng on solaris8 > > Longina, > Good spot I hadn't noticed the cc (dur!).
Does the Solaris C compiler even recognize the -W flags? Or is it even installed on the system. If it isn't it doesn't matter if you invoke it using the name "cc" rather than the name "gcc". > However, after removing cc so it can't get picked up it still fails the > same: > > gcc -I.. -I. -I./include -I./common -g -W -Wall -Werror -Wno-unused > -g -W -W > all -Werror -Wno-unused -DHAVE_CONFIG_H -c -o lpf.o ./common/lpf.c > common/lpf.c:191: warning: conflicting types for built-in function `log' > make[1]: *** [lpf.o] Error 1 > make[1]: Leaving directory `/var/spool/pkg/LPRng-3.8.21/src' > make: *** [src] Error 2 > If you get rid of -Werror it will become a warning only. Then you can get going ontil the "log" function is renamed. Whether or not the warning is appropriate is a matter for the gcc team (Free Software Foundation), and you may get it with certain versions of gcc and then only on certain hardware, which have a machine instruction for the log function. In my humble opinion the builtin "log" function should be enabled if and only if <math.h> is included, but I don't know how hard that would be. 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. -----------------------------------------------------------------------------
