We are moving from client to server based print accounting for our 
student labs.  I'm trying to compile LPRng on Mac OS X as a 
replacement for the standard lpr based system Apple are offering. 
The advantages of bi-directional printer communication and non-suid 
operation make compelling arguments to prefer LPRng.  We could run it 
on a separate Linux box, but we already have a server running 
Macintosh Manager and I'd like to integrate it with that.  I was 
encouraged by the reference to Rhapsody in the LPRng HOWTO.  And, 
according to Apple, "Mac OS X Server is built on UNIX technologies, 
implementing most of the POSIX APIs, which makes it easy to port UNIX 
applications, particularly those from a BSD heritage."  How hard can 
this be?  Read on.

I've downloaded LPRng-3.7.4 and installed the Mac OS X development 
tools, which seem to be GNU based:
http://www.devworld.apple.com/techpubs/macosx/DeveloperTools/devtools.html

Sorry, but to keep things simple I've left gdbm out of the picture 
for now (in any case I had trouble compiling that too).

************************

mymac:~] someuser% make -v
GNU Make version 3.79, by Richard Stallman and Roland McGrath.
Built for powerpc-apple-darwin1.0
<...>

[mymac:~/LPRng-3.7.4] someuser% ./configure --sysconfdir=/etc 
--mandir=/usr/share/man --disable-gdbm  --host=powerpc-apple-darwin1.0
creating cache ./config.cache
checking host system type... Invalid configuration 
`powerpc-apple-darwin1.0': system `darwin1.0' not recognized
<...>
checking for gcc... (cached) cc
checking whether the C compiler (cc -g -O2 ) works... yes
checking whether the C compiler (cc -g -O2 ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether cc accepts -g... (cached) yes
<...>
checking for setpgid... yes
checking for setproctitle... no
checking for setresuid... no
checking for setreuid... yes
<...>
creating src/psbanner
creating po/Makefile.in
creating intl/Makefile
creating config.h

[mymac:~/LPRng-3.7.4] someuser% make
if [ "UTILS" != po -o "no" != "no" ] ; then \
         cd UTILS; make localedir=/usr/local/share/locale \
                 DESTDIR= all ; \
fi
make[1]: Nothing to be done for `all'.
<...>
cc1obj: warnings being treated as errors
./common/proctitle.c: In function `setproctitle':
./common/proctitle.c:300: warning: unused variable `p'
make[1]: *** [proctitle.o] Error 1
make: *** [src] Error 2

************************

Doesn't appear to be a very successful outcome.  Mac OS X uses the 
Mach kernel, but I get similar results using --host=powerpc-apple-mach

I'm having a hard time interpreting config.log which can be found here:
http://www.arts.uwa.edu.au/comp/foo/config.gz

Do I need more than a few extra flags to get out of trouble? 
Anything crucial I should have in my path?  Perhaps I should meddle 
with src/include/portable.h but I'm not sure how.

JT.

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