DragonFly users List (threaded) for 2006-10
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:
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>
@@ -38,7 +39,7 @@
int gethostname ();
-# define INITIAL_HOSTNAME_LENGTH 34
+# define INITIAL_HOSTNAME_LENGTH MAXHOSTNAMELEN
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).