Hello everybody,

I had a compile problem with LPRng-3.8.15 on a linux-2.4.19, gcc-3.2 and
glibc-2.2.5 machine.

After configuring LPRng with
# ./configure --prefix=/usr --sysconfdir=/etc \
        --with-userid=lp --with-group-id=daemon

make resulted following error:

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.

Greetings
Joerg


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