Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* lpd-0.14-2 fix
@ 1997-03-05 16:39 David Mosberger-Tang
  1997-03-06 19:52 ` Richard Henderson
  1997-03-07  3:25 ` Daniel Gruner
  0 siblings, 2 replies; 5+ messages in thread
From: David Mosberger-Tang @ 1997-03-05 16:39 UTC (permalink / raw)


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

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: lpd-0.14-2 fix
  1997-03-05 16:39 David Mosberger-Tang
@ 1997-03-06 19:52 ` Richard Henderson
  1997-03-07  3:25 ` Daniel Gruner
  1 sibling, 0 replies; 5+ messages in thread
From: Richard Henderson @ 1997-03-06 19:52 UTC (permalink / raw)


> +#if __GNU_LIBRARY__ - 0 >= 6

The currently preferred method is to test for __GLIBC__, which
is defined to be the major version number of the library, ie 2.

r~

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: lpd-0.14-2 fix
  1997-03-05 16:39 David Mosberger-Tang
  1997-03-06 19:52 ` Richard Henderson
@ 1997-03-07  3:25 ` Daniel Gruner
  1 sibling, 0 replies; 5+ messages in thread
From: Daniel Gruner @ 1997-03-07  3:25 UTC (permalink / raw)


At the risk of sounding silly, why is there no difference (other than a
silly little patch to the filter part of lpd.c) with lpr-0.13?
In fact, when one extracts the src.rpm, one gets lpr-0.13.tar.gz !
Not only that, but it doesn't build properly (and I am not only saying
it is not a clean build - it actually bombs).  Here is the place where
it dies:

cc -O2 -Dgetline=get_line -I../common_source -I/usr/include/bsd   -c printjob.c 
-o printjob.o
In file included from ../common_source/lp.h:52,
                 from printjob.c:46:
/usr/include/bsd/signal.h:15: warning: `sv_onstack' redefined
/usr/include/signal.h:198: warning: this is the location of the previous definit
ion
printjob.c: In function `printjob':
printjob.c:143: warning: type mismatch in implicit declaration for built-in func
tion `strlen'
printjob.c: In function `printit':
printjob.c:271: warning: type mismatch in implicit declaration for built-in func
tion `strcpy'
printjob.c: In function `setty':
printjob.c:1275: `TCGETS' undeclared (first use this function)
printjob.c:1275: (Each undeclared identifier is reported only once
printjob.c:1275: for each function it appears in.)
printjob.c:1291: `TCSETS' undeclared (first use this function)
make[1]: *** [printjob.o] Error 1
make[1]: Leaving directory `/usr/src/redhat/SOURCES/lpr/lpd'

There are numerous other errors relating to conversion from integers to
pointers, and the like.

For the record, I am running 4.0 on a PC164, kernel 2.0.27.

Daniel

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

-- 

Dr. Daniel Gruner                        dgruner@tikva.chem.utoronto.ca
Dept. of Chemistry                       phone:  (416)-978-8689
University of Toronto                    fax:    (416)-978-5325

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: lpd-0.14-2 fix
@ 1997-03-07  8:47 Ralph Gillen
  1997-03-07 13:40 ` Daniel Gruner
  0 siblings, 1 reply; 5+ messages in thread
From: Ralph Gillen @ 1997-03-07  8:47 UTC (permalink / raw)


> At the risk of sounding silly, why is there no difference (other than a
> silly little patch to the filter part of lpd.c) with lpr-0.13?
> In fact, when one extracts the src.rpm, one gets lpr-0.13.tar.gz !
> Not only that, but it doesn't build properly (and I am not only saying
> it is not a clean build - it actually bombs).

I was also surprised to find a lpr-0.13.tar.gz with the filter-patch in the src.rpm, but
on my system (EB164, RH4.0, 2.0.29) it was possible to compile everything (with a lot of
warnings, too), and the new lpd does not show the remote printing errors any more.
I guess that it would also work with the lpr-0.13.tar.gz without filter-patch (but I didn't
try) and that David Mosberger-Tang just used the newest version for his patch.
The only difference between our systems seems to be the kernel version, so perhaps you should
try the 2.0.29. If you want, I can also send you the lpd binary.

                                                                     Ralph

---------------------------------------------------
Ralph Gillen
Institut f. Theoretische Chemie
HHU Duesseldorf
<gillen@theochem.uni-duesseldorf.de>
---------------------------------------------------

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: lpd-0.14-2 fix
  1997-03-07  8:47 lpd-0.14-2 fix Ralph Gillen
@ 1997-03-07 13:40 ` Daniel Gruner
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Gruner @ 1997-03-07 13:40 UTC (permalink / raw)


> 
> > At the risk of sounding silly, why is there no difference (other than a
> > silly little patch to the filter part of lpd.c) with lpr-0.13?
> > In fact, when one extracts the src.rpm, one gets lpr-0.13.tar.gz !
> > Not only that, but it doesn't build properly (and I am not only saying
> > it is not a clean build - it actually bombs).
> 
> I was also surprised to find a lpr-0.13.tar.gz with the filter-patch in the src.rpm, but
> on my system (EB164, RH4.0, 2.0.29) it was possible to compile everything (with a lot of
> warnings, too), and the new lpd does not show the remote printing errors any more.
> I guess that it would also work with the lpr-0.13.tar.gz without filter-patch (but I didn't
> try) and that David Mosberger-Tang just used the newest version for his patch.
> The only difference between our systems seems to be the kernel version, so perhaps you should
> try the 2.0.29. If you want, I can also send you the lpd binary.
> 
>                                                                      Ralph
> 
> ---------------------------------------------------
> Ralph Gillen
> Institut f. Theoretische Chemie
> HHU Duesseldorf
> <gillen@theochem.uni-duesseldorf.de>
> ---------------------------------------------------

Thanks for the offer of the lpd binary, I'd like that.  However, I am still
disturbed about not being able to compile it myself.  What "extras" do you
have over 4.0?  The kernel version should have nothing to do with
compilation ability.  Do you have "upgraded" libraries or header files?
Could you send me a list of your installed system (e.g. "rpm -a")?

Thanks,
Daniel

-- 

Dr. Daniel Gruner                        dgruner@tikva.chem.utoronto.ca
Dept. of Chemistry                       phone:  (416)-978-8689
University of Toronto                    fax:    (416)-978-5325

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1997-03-07 13:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-03-07  8:47 lpd-0.14-2 fix Ralph Gillen
1997-03-07 13:40 ` Daniel Gruner
  -- strict thread matches above, loose matches on Subject: below --
1997-03-05 16:39 David Mosberger-Tang
1997-03-06 19:52 ` Richard Henderson
1997-03-07  3:25 ` Daniel Gruner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox