From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199707072108.RAA10599@ulexite.nist.gov> Date: Mon, 7 Jul 1997 17:08:08 -0400 From: Michael J. Donahue Subject: Re: Printer problem "Andrea Dell'Amico" writes >I have another problem instead: I cannot remotely print on a printer >attached to the parallel port of an UDB. These are the error messages: > >Jul 7 21:36:22 ceva kernel: lpd: memory violation at pc=12000c698 >rp=1555570a0b4 (bad address = 00000000) >Jul 7 21:37:23 ceva kernel: lpd: memory violation at pc=12000c698 >rp=1555570a0b4 (bad address = 00000000) > >This with a stock 2.0.30 rpm kernel source. I recompiled the kernel adding >printer and zip support. I'm able to print from the local machine without >problems. This looks like the problem David Mosberger-Tang put up a patch for back in March. I've included it below. One note: Make *REAL* sure you set '-Dgetline=get_line' as specified, or else this patch doesn't work!!! -mike ######################################################################## David Mosberger-Tang (davidm@azstarnet.com) Wed, 5 Mar 1997 09:39:40 -0700 Here is a micro-patch for the lpd SRPM in the updates directory at Red Hat (lpr-0.14-2.src.rpm). In addition to applying this patch, you should make sure to compile with -Dgetline=get_line (e.g., make RPM_OPT_FLAGS="-O2 -Dgetline=get_line). After applying this patch, accessing lpd from remote systems should work properly. --david --- lpr/lpd/lpd.c Wed Sep 4 13:31:49 1996 +++ lpr-good/lpd/lpd.c Tue Mar 4 19:48:58 1997 @@ -450,8 +450,8 @@ hostf = fopen(_PATH_HOSTSEQUIV, "r"); again: if (hostf) { -#ifdef __alpha__ - if (!__ivaliduser(hostf, fromb, DUMMY, DUMMY, baselen)) { +#if __GNU_LIBRARY__ - 0 >= 6 + if (!__ivaliduser(hostf, f->sin_addr.s_addr, DUMMY, DUMMY)) { (void) fclose(hostf); return; } ######################################################################## -- Michael J. Donahue National Institute of Standards and Technology Mathematical & Computational Sciences Division Bldg 820, Rm 365 Gaithersburg, MD 20899 email: michael.donahue@nist.gov voice: (301) 975-5424 fax: (301) 990-4127 web: http://math.nist.gov/mcsd/Staff/MDonahue/ -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com