DragonFly users List (threaded) for 2006-10
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: LPD help needed
On Wed, 11 Oct 2006, Gergo Szakal wrote:
> > On Wed, 11 Oct 2006, Gergo Szakal wrote:
> >
> > > a2ps: gethostname: Cannot allocate memory
> >
> > That sure is strange.
> >
> > Is your document so large that processing it uses its available memory?
> >
> > Can you try printing a smaller document?
>
> Ehe, that's my printcap. It *is* small enough. ;-)
I overlooked that part.
I found this German webpage that suggests using enscript instead of a2ps
if you get that error.
But it looks like the real problem is a broken a2ps and your
dragonfly.jancso.szote.u-szeged.hu hostname is too long for it.
Maybe your "a2ps" needs to be upgraded.
See this patch from FreeBSD:
http://www.freebsd.org/cgi/query-pr.cgi?pr=26909
FreeBSD's ports/print/a2ps-letter/files/patch-lib-xgethostname.c has:
--- lib/xgethostname.c.orig Tue Nov 20 20:26:31 2001
+++ lib/xgethostname.c Tue Nov 20 20:26:03 2001
@@ -21,6 +21,7 @@
# include <config.h>
#endif
+#include <sys/param.h>
#include <sys/types.h>
#include <errno.h>
@@ -38,7 +39,7 @@
int gethostname ();
#ifndef INITIAL_HOSTNAME_LENGTH
-# define INITIAL_HOSTNAME_LENGTH 34
+# define INITIAL_HOSTNAME_LENGTH MAXHOSTNAMELEN
#endif
char *
Looks like your hostname is one character too long for a2ps :)
If you have the problem with pkgsrc, please send an email to pkgsrc-users
list or submit a NetBSD "pkg" PR (problem report).
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]