I copied and pasted that from the original email to show the header
error.
The disable does work, see below for a failed compile where I did
configure with --disable-werror.
gcc -I.. -I. -I./include -I./common -g -W -Wall -Wno-unused -g -O2 -g -W -Wall
-Wno-unused -DHAVE_CONFIG_H -c -o lpc.o ./common/lpc.c
In file included from include/lp.h:22,
from ./common/lpc.c:64:
include/portable.h:815: conflicting types for `setenv'
/usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix51-020209/include/stdlib.h:476:
previous declaration of `setenv'
gmake[1]: *** [lpc.o] Error 1
gmake[1]: Leaving directory `/IDX/home/sysadm/rladams/software/LPRng-3.8.25/src'
gmake: *** [src] Error 2
Like I was pointing out, it seems the discrepancy between the header
files is that setenv uses char* in one file vs const char* in the other.
I'm not familiar enough with C to understand the reprocussions of
modifying portable.h to match the OS's const char*, which is why I'm
asking for advice on the matter.
Russell
On Wed, Feb 18, 2004 at 08:54:14AM -0500, Rick Cochran wrote:
> It seems clear to me that the 'new "--disable-werror" configure option'
> doesn't 'do that' since your error has "-Werror" in the gcc command line.
>
> Russell Adams wrote:
> >There's a new "--disable-werror" configure option that does that, to
> >no avail.
> >
> >Here's the error again and a grep from the headers mentioned in the error.
> >
> >
> >>>gcc -I.. -I. -I./include -I./common -g -W -Wall -Werror -Wno-unused
> >>>-g -O2 -g -W -Wall -Werror -Wno-unused -DHAVE_CONFIG_H -c -o lpc.o
> >>>./common/lpc.c
> >>>In file included from include/lp.h:22,
> >>> from ./common/lpc.c:64:
> >>>include/portable.h:815: conflicting types for `setenv'
> >>>/usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.1.0.0/2.9-aix51-020209/include/stdlib.h:476:
> >>> previous declaration of `setenv'
>
> --
> |Rick Cochran phone: 607-255-7618|
> |Cornell CIT - Systems & Operations - Net-Print FAX: 607-255-8521|
> |730 Rhodes Hall, Ithaca, N.Y. 14853 email: [EMAIL PROTECTED]|
>
>
> -----------------------------------------------------------------------------
> 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.
> -----------------------------------------------------------------------------
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------