> From [EMAIL PROTECTED] Wed Jan 23 03:11:39 2002
> Date: Wed, 23 Jan 2002 12:11:27 +0100
> From: Reiner Linnenkohl <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED],
>    Reiner Linnenkohl <[EMAIL PROTECTED]>
> Subject: Problem with LPRng-3.8.4 and 3.8.5
>
> Hello Patrick,
>
> since Version LPRng-3.8.4 i get a problem meanwhile i
> try to compile the package:
>
> -------------------------------------------------------------
> $ ./configure --prefix=/usr/local --sysconfdir=/usr/local/etc --with-printcap-
>    path=/etc/printcap
> ...
> $ make
> ...
> gcc -I.. -I./include -I./common -I/usr/local/include -O2 -pipe -Wall -Werror
> -DHAVE_CONFIG_H -DCHOWN=\"/usr/bin/chown\" -DCHGRP=\"/usr/bin/chgrp\"
> -DPRINTCAP_PATH=\"/etc/printcap\" -DLPD_PRINTCAP_PATH=\"/usr/local/etc/lpd_printcap\"
> -DLPD_PERMS_PATH=\"/usr/local/etc/lpd.perms\" 
>-DLPD_CONF_PATH=\"/usr/local/etc/lpd.conf\"
> -DREQUIRE_CONFIGFILES=\"1\" -DFILTER_PATH=\"/bin:/usr/bin:/usr/local/bin\"
> -DLD_LIBRARY_PATH=\"/lib:/usr/lib:/usr/local/lib\" -DLOCKFILE=\"/var/run/lpd\"
> -DCLEAR=\"/usr/bin/clear\" -DUSERID=\"daemon\" -DGROUPID=\"daemon\"
> -DLOCALEDIR=\"/usr/local/share/locale\" -DDONE_JOBS=\"1\" -DDONE_JOBS_MAX_AGE=\"0\"
> -DUNIXSOCKET=\"0\" -DUNIXSOCKETPATH=\"/var/run/lprng\" -c ./common/lpd_dispatch.c  
>-fPIC
> -DPIC -o .libs/lpd_dispatch.lo
> common/lpd_dispatch.c: In function `Service_connection':
> common/lpd_dispatch.c:180: `AF_LOCAL' undeclared (first use in this function)
> common/lpd_dispatch.c:180: (Each undeclared identifier is reported only once
> common/lpd_dispatch.c:180: for each function it appears in.)
> make[1]: *** [lpd_dispatch.lo] Error 1
> -------------------------------------------------------

Apply the following patch:

diff -rc ifhp-transmeta-3.5.2/src/ifhp.c ifhp-3.5.2/src/ifhp.c
*** ifhp-transmeta-3.5.2/src/ifhp.c     Mon Jan  7 17:36:13 2002
--- ifhp-3.5.2/src/ifhp.c       Sat Dec 22 11:06:16 2001
***************
*** 4161,4176 ****
        char buffer[1];
  
        nonblock = Get_nonblock_io( fd );
- 
-       /* set up the accounting FD for output */
-       if( fstat(fd,&statb) == -1 ){
-               Errorcode = JABORT;
-               FATAL( _("ifhp: fd is not open"),fd);
-       }
-       if( S_ISREG( statb.st_mode ) ){
-               readable = 0;
-               return( readable );
-       }
        if( !nonblock ){
                Set_nonblock_io( fd );
        }
--- 4161,4166 ----


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