On Tue, 29 Oct 2002 [EMAIL PROTECTED] wrote:
> gcc -I.. -I. -I./include -I./common -I/usr/include -g -W -Wall -Werror > -Wno-unused -g -W -Wall -Werror -Wno-unused -DHAVE_CONFIG_H -c -o > lpc.o ./common/lpc.c > cc1: changing search order for system directory "/usr/include" > cc1: as it has already been specified as a non-system directory > make[1]: *** [lpc.o] Error 1 > make[1]: Leaving directory `/usr/src/LPRng-3.8.15/src' > make: *** [src] Error 2 > > I found something in a gcc-3.x mailing list that including "/usr/include" > often produces this problem. So I removed "-I/usr/include" from all > compiler-flags in "./po/Makefile" and "./src/Makefile". I don't know what > this does, but it worked for me and the binaries seem to be stable. > > Maybe someone with more programming skills than me tries to reproduce this > error and may fix it. The gcc compiler defines a couple of gcc specific include directories which should be searched before /usr/include. Thus specifying -I/usr/include might upset that careful ordering. I Don't understand the reason for putting in -I/usr/include in the Makefiles in the first place. 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. -----------------------------------------------------------------------------
