From owner-freebsd-stable@FreeBSD.ORG Mon May 31 10:50:41 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6710916A4CE for ; Mon, 31 May 2004 10:50:41 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41AF443D1F for ; Mon, 31 May 2004 10:50:40 -0700 (PDT) (envelope-from andreas@klemm.apsfilter.org) Received: from srv1.cosmo-project.de (localhost [IPv6:::1]) i4VHoKDv063390 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 31 May 2004 19:50:22 +0200 (CEST) (envelope-from andreas@klemm.apsfilter.org) Received: (from uucp@localhost)i4VHoJWt063385; Mon, 31 May 2004 19:50:19 +0200 (CEST) (envelope-from andreas@klemm.apsfilter.org) Received: from titan.klemm.apsfilter.org (localhost.klemm.apsfilter.org [127.0.0.1])i4VHkMIs060146; Mon, 31 May 2004 19:46:22 +0200 (CEST) (envelope-from andreas@titan.klemm.apsfilter.org) Received: (from andreas@localhost)i4VHkML9060145; Mon, 31 May 2004 19:46:22 +0200 (CEST) (envelope-from andreas) Date: Mon, 31 May 2004 19:46:22 +0200 From: Andreas Klemm To: Aleksandar Simic Message-ID: <20040531174622.GB59503@titan.klemm.apsfilter.org> References: <20040528171332.GB3367@yashin.myname.mydomain> <20040531141611.GA40540@titan.klemm.apsfilter.org> <20040531163810.GA33356@yashin.myname.mydomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040531163810.GA33356@yashin.myname.mydomain> X-Operating-System: FreeBSD 5.2.1-RELEASE-p7 X-Disclaimer: A free society is one where it is safe to be unpopular User-Agent: Mutt/1.5.6i cc: freebsd-stable@freebsd.org Subject: Re: ASCII printing OK, but anything else isn't X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 May 2004 17:50:41 -0000 On Mon, May 31, 2004 at 05:38:10PM +0100, Aleksandar Simic wrote: > > Hello Andreas, > > thanks for responding, I was just giving up hope. Hi ... well no need to I think. But you have to analyze what happens. > On Mon, May 31, 2004 at 04:16:11PM +0200, Andreas Klemm wrote: > > > + HEADER=/tmp/apsfilter36346/header1 > > > + dd bs=1k count=16 > > > ++ file /tmp/apsfilter36346/header1 > > > file: couldn't find any magic files! > > > + FILE_TYPE= > > > > Your file command doesn't seem to find its database (the magic file) ... > > -r--r--r-- 1 root wheel 285300 16 Nov 2003 /usr/share/misc/magic > > > > Does your magic command work on the commandline ? > > > > root# file /etc/passwd > > /etc/passwd: ASCII text > > > > root# file /usr/share/misc/magic > > /usr/share/misc/magic: magic text file for file(1) cmd > > It works just like your examples above: > > [alex@~] cd /etc/ > [alex@/etc] file /etc/passwd > /etc/passwd: ASCII text > [alex@/etc] file /usr/share/misc/magic > /usr/share/misc/magic: magic text file for file(1) cmd Hmm the strange thing is, that the file command doesnt seem to work when running under lpd .... > > > + FILE_TYPE= Therefore filetype variable is empty. you could try to modify apsfilter in a way, that it exits quite early set -x file /etc/passwd exit 1 Then see what the logfile says printcap: :lf=/var/spool/lpd/lp/log:\ > [alex@/usr/share/misc] l magic > -r--r--r-- 1 root wheel 285300 May 28 15:41 magic > > > see ------------------------------^^^^^^^^^^^^^ > > > > How did you install FreeBSD ? Minimum installation ? > > This problem has been occuring to me since FreeBSD 4.8 which I > installed from the official ISOs. At the moment I'm at FreeBSD > 4.10. And I've tried everything, installing ghostscript from sources, > installing it from packages, deinstalling and reinstalling. Then I > tried installing different versions of ghostscript found in ports: > ghostscript-afpl and ghostscript-gnu. > > No luck. strange. > Then I'v tried the same with apsfilter. And still the problem > persisted. > > > > Or are some distribution files missing ? > > Distribution of what, the dependencies of apsfilter port ? Or of the > FreeBSD release ? I meant distribution of FreeBSD. Might have been the case you ftp'd it from fp server and did an installation from a DOS filesystem ... Might have been the case, that some files were missing or such Only an assumption, since I thought the magicfile is missing on your Unix. > Since the install of FreeBSD 4.8 I've done numerous upgrades of the > system from the source. Just the other day I've upgraded from > 4.10-PRERELEASE to 4.10-STABLE. > > I've also kept my ports tree and packages in sync so this problem > would have been solved if it was just the packages or the system > sources. > > > A make world under /usr/src might help you. > > See the paragraph above. > > > Use cvsup to get the sources if you didn't install these. > > I did, see the paragraph above. hmm ok .... > If you want I can give you ssh access and root privilages to try to > solve this. We can arrange a time that will suit you, when I will be > present so that we can talk via write(1) or IRC/jabber os some other > way, just so that I can tell you if the printouts are comming and how > they look. Maybe in two weeks if I have a long weekend. But Id appreciate you troubleshoot it yourself. > Just a suggestion. > > And thanks again for replying, I've used apsfilter from FreeBSD 3.x > time and always found it easy to setup and use. That it isn't working > now is completely baffling to me. Try changing the apsfilter script the way I told you and lpay a little with the file command ... It doesn't seem to run under lpd ... Or lpd uses another one ? Maybe another one installed ? I really dunno ... only some thoughts. And maybe ask on freebsd-stable if there are some apsfilter users .... Im running 5.2.1 and dont have an 4.x reference platform anymore. Andreas /// -- Andreas Klemm Apsfilter Homepage http://www.apsfilter.org Support over mailing-lists (only!) http://www.apsfilter.org/support Mailing-list archive http://www.apsfilter.org/Lists-Archives