Hi Patrick,
I think you once said this was the appropriate place to post bug reports.
LPRng 3.8.6 has some compile issues I think you should know about.
I have tried for linux (redhat 6.2/gcc version egcs-2.91.66), solaris 2.6
(both gcc version 3.0.3 and "Sun WorkShop 6 update 2 C 5.3 2001/05/15")
and alpha (Digital UNIX V4.0G/Digital UNIX Compiler Driver 3.11)
First off, "Compiling For Multiple Architectures" doesn't work, you
can easily verify this on your linux box yourself, I guess:
$ tar zxf LPRng-3.8.6.tar.gz
$ cd LPRng-3.8.6
$ mkdir linux ; cd linux
$ ../configure
(...)
$ make all
It seems to build the binaries ok, but fails on
../../src/../UTILS/make_lpd_conf: ../../src/../UTILS/make_lpd_conf: No such file or
directory
cpp: output pipe has been closed
make[1]: *** [lpd.conf] Error 1
But still, when I fall back to compiling one arch at a time, it only
compiles on linux. On sun/gcc, it goes :
In file included from include/lp.h:22,
from common/lpc.c:64:
include/portable.h:265: parse error before "geteuid"
include/portable.h:265: warning: data definition has no type or storage class
In file included from include/lp.h:22,
from common/lpc.c:64:
include/portable.h:806: conflicting types for `openlog'
/usr/include/syslog.h:23: previous declaration of `openlog'
make[1]: *** [lpc.o] Error 1
On alpha:
make[1]: Entering directory `/usit/mikkel/priss_src/PRISS3/LPRng-3.8.6/src'
/usr/bin/cc -I.. -I./include -I./common -std -std -DHAVE_CONFIG_H [blah-blah-blah]
-c -o lpc.o ./common/lpc.c
cc: Warning: /usr/include/sys/types.h, line 127: In this declaration, the same type
specifier occurs more than once. (duptypespec)
typedef unsigned long size_t;
--------^
cc: Warning: /usr/include/sys/types.h, line 127: In this declaration, there is no
declarator. (nodcl)
typedef unsigned long size_t;
--------^
cc: Warning: /usr/include/sys/types.h, line 281: In this declaration, there is no
declarator. (nodcl)
typedef long off_t; /* file offset */
--------^
cc: Error: /usr/include/sys/types.h, line 295: In this declaration, "typedef" cannot
be combined with "int". (typeconflict)
make[1]: *** [lpc.o] Error 1
(Yes, damned stupid error messages, and the line numbers makes no sense!
But I don't think the error is in /usr/include/sys/types.h, it works fine
on 3.8.1, as noted below).
I have trimmed the output/error msg somewhat, so to not make this
post completely unreadable. Please let me know if you need
a more complete output.
Additionally, as somebody has noted on this list, the src/Makfile gets
created with CFLAGS:= $(CFLAGS) -DGETENV=\"1\" -Wall -Werror
which is probably not what you want for a production compile, and
also only works with gcc. I have removed this line for the above
compiles.
All this in contrast to version 3.8.1, which compiles without hassle
on all 3 platforms (sun/gcc, didn't try workshop). Except, the sun
compile barfs on "implicit declaration of function `sleep'" in a few
files, but that can be workarounded by removing -Werror in src/Makefile
(-Werror is nice for development, but I suggest you drop it in a release)
Finally, alpha cc -std1 complained about a few //-style comments, which I
believe is not quite ansi....
3.8.1 was reported to work with Mac's, so I guess I'll stick to that
for the time being.
Thanks for your patience, and best regards,
--
Hans Peter (Unix/printing sysadm, University of Oslo).
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------