WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: foomatic-rip warning  (Read 4730 times)

aus9

  • Guest
foomatic-rip warning
« on: April 19, 2013, 01:01:24 AM »
Altho I may be paranoid, I am the maintainer of this package and built it poorly.

Altho I don't have a printer to use with foomatic-db packages at this moment, as I have HP 3050 using hplip*
in playing around with a PPD I inserted foomatic-rip as the filter and got a nasty CUPS error advising me of bad permissions

AND......the cups page...link to actual printer .....has a status page.....and that status said foomatic-rip failed.

###########
Therefore I will rebuild foo*-rip with correct permissions

But as no-one has filed a bug here .......I am hoping you might wait to see if anything comes out of me filing a bug report upstream when I tried to report a
"make check" error

I am showing the upstream name = foomatic-filters

https://bugs.linuxfoundation.org/buglist.cgi?product=OpenPrinting&component=foomatic-filters&resolution=---

If in the meantime,  you can spot what I am doing wrong here the attachment that was sent with bug report, in a code box to keep font size

Code: [Select]
root@box:/tmp/foomatic-filters-4.0-20130329# make tests
make  all-am
make[1]: Entering directory `/tmp/foomatic-filters-4.0-20130329'
gcc -DHAVE_CONFIG_H -I.  -DCONFIG_PATH='"/usr/local/etc/foomatic"'  -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include   -DHAVE_DBUS -march=i486 -mtune=i686 -Os -pipe -MT foomatic_rip-foomaticrip.o -MD -MP -MF .deps/foomatic_rip-foomaticrip.Tpo -c -o foomatic_rip-foomaticrip.o `test -f 'foomaticrip.c' || echo './'`foomaticrip.c
mv -f .deps/foomatic_rip-foomaticrip.Tpo .deps/foomatic_rip-foomaticrip.Po
gcc -DHAVE_CONFIG_H -I.  -DCONFIG_PATH='"/usr/local/etc/foomatic"'  -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include   -DHAVE_DBUS -march=i486 -mtune=i686 -Os -pipe -MT foomatic_rip-options.o -MD -MP -MF .deps/foomatic_rip-options.Tpo -c -o foomatic_rip-options.o `test -f 'options.c' || echo './'`options.c
mv -f .deps/foomatic_rip-options.Tpo .deps/foomatic_rip-options.Po
gcc -DHAVE_CONFIG_H -I.  -DCONFIG_PATH='"/usr/local/etc/foomatic"'  -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include   -DHAVE_DBUS -march=i486 -mtune=i686 -Os -pipe -MT foomatic_rip-pdf.o -MD -MP -MF .deps/foomatic_rip-pdf.Tpo -c -o foomatic_rip-pdf.o `test -f 'pdf.c' || echo './'`pdf.c
mv -f .deps/foomatic_rip-pdf.Tpo .deps/foomatic_rip-pdf.Po
gcc -DHAVE_CONFIG_H -I.  -DCONFIG_PATH='"/usr/local/etc/foomatic"'  -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include   -DHAVE_DBUS -march=i486 -mtune=i686 -Os -pipe -MT foomatic_rip-postscript.o -MD -MP -MF .deps/foomatic_rip-postscript.Tpo -c -o foomatic_rip-postscript.o `test -f 'postscript.c' || echo './'`postscript.c
mv -f .deps/foomatic_rip-postscript.Tpo .deps/foomatic_rip-postscript.Po
gcc -DHAVE_CONFIG_H -I.  -DCONFIG_PATH='"/usr/local/etc/foomatic"'  -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include   -DHAVE_DBUS -march=i486 -mtune=i686 -Os -pipe -MT foomatic_rip-util.o -MD -MP -MF .deps/foomatic_rip-util.Tpo -c -o foomatic_rip-util.o `test -f 'util.c' || echo './'`util.c
mv -f .deps/foomatic_rip-util.Tpo .deps/foomatic_rip-util.Po
gcc -DHAVE_CONFIG_H -I.  -DCONFIG_PATH='"/usr/local/etc/foomatic"'  -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include   -DHAVE_DBUS -march=i486 -mtune=i686 -Os -pipe -MT foomatic_rip-spooler.o -MD -MP -MF .deps/foomatic_rip-spooler.Tpo -c -o foomatic_rip-spooler.o `test -f 'spooler.c' || echo './'`spooler.c
mv -f .deps/foomatic_rip-spooler.Tpo .deps/foomatic_rip-spooler.Po
gcc -DHAVE_CONFIG_H -I.  -DCONFIG_PATH='"/usr/local/etc/foomatic"'  -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include   -DHAVE_DBUS -march=i486 -mtune=i686 -Os -pipe -MT foomatic_rip-process.o -MD -MP -MF .deps/foomatic_rip-process.Tpo -c -o foomatic_rip-process.o `test -f 'process.c' || echo './'`process.c
mv -f .deps/foomatic_rip-process.Tpo .deps/foomatic_rip-process.Po
gcc -DHAVE_CONFIG_H -I.  -DCONFIG_PATH='"/usr/local/etc/foomatic"'  -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include   -DHAVE_DBUS -march=i486 -mtune=i686 -Os -pipe -MT foomatic_rip-renderer.o -MD -MP -MF .deps/foomatic_rip-renderer.Tpo -c -o foomatic_rip-renderer.o `test -f 'renderer.c' || echo './'`renderer.c
mv -f .deps/foomatic_rip-renderer.Tpo .deps/foomatic_rip-renderer.Po
gcc -DHAVE_CONFIG_H -I.  -DCONFIG_PATH='"/usr/local/etc/foomatic"'  -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include   -DHAVE_DBUS -march=i486 -mtune=i686 -Os -pipe -MT foomatic_rip-fileconverter.o -MD -MP -MF .deps/foomatic_rip-fileconverter.Tpo -c -o foomatic_rip-fileconverter.o `test -f 'fileconverter.c' || echo './'`fileconverter.c
mv -f .deps/foomatic_rip-fileconverter.Tpo .deps/foomatic_rip-fileconverter.Po
gcc -DHAVE_CONFIG_H -I.  -DCONFIG_PATH='"/usr/local/etc/foomatic"'  -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include   -DHAVE_DBUS -march=i486 -mtune=i686 -Os -pipe -MT foomatic_rip-colord.o -MD -MP -MF .deps/foomatic_rip-colord.Tpo -c -o foomatic_rip-colord.o `test -f 'colord.c' || echo './'`colord.c
mv -f .deps/foomatic_rip-colord.Tpo .deps/foomatic_rip-colord.Po
gcc -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include   -DHAVE_DBUS -march=i486 -mtune=i686 -Os -pipe  -Wl,-O1 -o foomatic-rip foomatic_rip-foomaticrip.o foomatic_rip-options.o foomatic_rip-pdf.o foomatic_rip-postscript.o foomatic_rip-util.o foomatic_rip-spooler.o foomatic_rip-process.o foomatic_rip-renderer.o foomatic_rip-fileconverter.o foomatic_rip-colord.o -L/usr/local/lib -ldbus-1   -lm
make[1]: Leaving directory `/tmp/foomatic-filters-4.0-20130329'
chmod a+rx foomatic-rip
cd tests ; make
/bin/bash: line 0: cd: tests: No such file or directory
make[1]: Entering directory `/tmp/foomatic-filters-4.0-20130329'
make  all-am
make[2]: Entering directory `/tmp/foomatic-filters-4.0-20130329'
make[2]: Leaving directory `/tmp/foomatic-filters-4.0-20130329'
make[1]: Leaving directory `/tmp/foomatic-filters-4.0-20130329'
root@box:/tmp/foomatic-filters-4.0-20130329# cd test
root@box:/tmp/foomatic-filters-4.0-20130329/test# make
make: *** No targets specified and no makefile found.  Stop

########### below is build script, top section only until we reach make tests

#!/bin/sh

# test we are root
if [ "$USER" != "root" ] ; then
   echo "Run as root please, exiting."
   exit 1                                                     
fi   

# build depends
export CFLAGS="-march=i486 -mtune=i686 -Os -pipe"
export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe"
export LDFLAGS="-Wl,-O1"
su -c 'tce-load -i compiletc submitqc4 wget bash autoconf' tc
su -c 'tce-load -i dbus-dev perl5 cups cups-dev a2ps' tc
su -c 'tce-load -i linux-headers-3.0.21-tinycore.tcz coreutils' tc

C=foomatic-rip/usr/local/etc/foomatic/filter.conf
T=foomatic-rip
V=foomatic-rip-dev
SRC=foomatic-filters-4.0-2013*

# start
cd /tmp
su -c '/usr/local/bin/wget -nc http://www.openprinting.org/download/foomatic/foomatic-filters-4.0-current.tar.gz \
-O /tmp/foomatic-filters-4.0-current.tar.gz' tc

tar xvf foomatic-filters-4.0-current.tar.gz
cd $SRC
./configure --prefix=/usr/local --enable-file-converter-check --with-file-converter=a2ps --enable-dbus --with-echo=/usr/local/bin/echo \
--with-execpath=/usr/local/bin


make tests
make -j3
make DESTDIR=/tmp/$T install-cups

If no-one is in a rush then I prefer to upload only one fix. But if others reply now that they know I built poorly, I will submit a rebuild (without the make check) and hope its ok

thanks for reading

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: foomatic-rip warning
« Reply #1 on: April 19, 2013, 02:05:56 AM »
hi aus9,

i did not experience any problem yet.

aus9

  • Guest
Re: foomatic-rip warning
« Reply #2 on: April 19, 2013, 02:24:06 AM »
netnomad

Thanks thats a relief.

If you get a chance over the next week, could you turn on debug in the admin section of cups page
http://localhost:631/admin

Naturally you need a root password saved into cups first, just click on add printer....input password then go back to admin page if you like
and print a one line of text to save ink and then upload your cups log?

An easy way of getting log, once debug is turned,  is to go to
http://localhost:631/admin/log/error_log?

and I use my right hand click inside that log inside the web browser and save as  error_log.txt  then upload somewhere and then link to it.

I would like to know why your foomatic-rip is working if you have the time. If not, its my problem

If you are short of resources, you may like to turn off debug again and go back to warn

cheers

###### trivia   because I can't test foomatic-rip with my currrent PPD I am modified it.....which is naughty but an image always helps

« Last Edit: April 19, 2013, 02:32:10 AM by aus9 »

aus9

  • Guest
Re: foomatic-rip warning
« Reply #3 on: April 19, 2013, 04:08:58 AM »
incidently, in my past posts I had hp working pure wireless to router signal

today I connected the usb lead  (TC computer direct to local printer)  and even tho I did not print with a PPD using foomatic-rip filter, I can see in the debug log that I am using cups usb backend

That will be useful if I ever compile something in the future to know

Code: [Select]
Started backend /usr/local/lib/cups/backend/usb
« Last Edit: April 19, 2013, 04:22:45 AM by aus9 »