Well, I just now had the same problem using Solaris 9 x86,
gcc 3.3.1, and LPRng-3.8.21.

Following John Perkins' observation about "-Werror" (in another note
tacked on below), and Mike Bowman's observation about "log" being a
leftover from older versions, I compiled lpf.o by hand omitting
the -Werror option.

gcc -I.. -I. -I../../src/include -I../../src/common -I/usr/local/include -g \
-W -Wall -Wno-unused -O2 -march=pentiumpro -g -W -Wall -Wno-unused \
-DHAVE_CONFIG_H -c -o lpf.o ../../src/common/lpf.c

The rest of the build went through fine.
Seems like time to exorcise the "log" reference.

I discovered this discussion simply by giving Google
"conflicting types for built-in function log lprng", and
since I'm on the lprng mailing list, then found it already
squirreled away in my lprng mail folder :) 

 -- russ



On Thu, 28 Aug 2003 07:05:56 +0800 
"Mike Bowman" <[EMAIL PROTECTED]> wrote:
>The make instructions were indeed followed to the letter.
>
>For the record if anyone reads this from the lprng team, versions of
>relevant packages are:
>gcc v3.3, libgcc v3.3, LPRng v3.8.21 (although older versions also tried
>with same result) and gnu make v3.80
>
>After trawling the code, I could not find the offending log function
>defined in lpf.c actually used anywhere, all logging being done using
>syslog functions (log appears to be used in much older versions).  I
>renamed the 'log' function to 'newlog' as a test and tried again.  It
>now compiles up.
>
>Its puzzling why other people haven't had this problem though.
>The Solaris8 box is a SparcStation5 with standard install and no
>significant additions or mods.
>
>Many thanks to those who replied.
>
>Regards,
>Mike.

On Fri, 29 Aug 2003 11:59:04 -0500 
John Perkins <[EMAIL PROTECTED]> wrote:
>On Wed, 27 Aug 2003 07:48:02 +0800
>"Mike Bowman" <[EMAIL PROTECTED]> wrote:
>
>I've had similar problems in the past.  Note the message is a "warning" 
>from GCC, which looks to be quite new.  
>
>I'd recommend one of the following:
>       - use an older GCC (we use 3.2.1 here, but 3.1 or 3.2 series 
>         compilers ought to work)
>       - remove "-Werror" that will cause the make to fail on any warnings

-----------------------------------------------------------------------------
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