[cups.development] make test fails ipptool test

Michael Sweet msweet at apple.com
Thu Mar 7 14:17:49 PST 2013


Manfred,

Unfortunately, this is code from the Japan Open Printing folks, so I don't know how to advise you.  Perhaps you can post questions to one of the open printing mailing lists?


On Mar 7, 2013, at 5:04 PM, Manfred Wilner <mwilner at zebra.com> wrote:

> Michael,
> 
> I figured out that with setting CXXFLAGS="-I/usr/include/poppler" and CFLAGS="-I/usr/include/poppler" I can finally compile with the result that now the following error appears:
> OPVPSplash.cxx:(.text+0x2898): undefined reference to `SplashBitmap::SplashBitmap(int, int, int, SplashColorMode, bool, bool)'
> pdftoopvp-OPVPOutputDev.o: In function `OPVPOutputDev::clipToStrokePath(GfxState*)':
> OPVPOutputDev.cxx:(.text+0x22e2): undefined reference to `SplashBitmap::SplashBitmap(int, int, int, SplashColorMode, bool, bool)'
> pdftoopvp-OPVPOutputDev.o: In function `OPVPOutputDev::drawMaskedImage(GfxState*, Object*, Stream*, int, int, GfxImageColorMap*, bool, Stream*, int, int, bool, bool)':
> OPVPOutputDev.cxx:(.text+0x3e76): undefined reference to `SplashBitmap::SplashBitmap(int, int, int, SplashColorMode, bool, bool)'
> pdftoopvp-OPVPOutputDev.o: In function `OPVPOutputDev::drawSoftMaskedImage(GfxState*, Object*, Stream*, int, int, GfxImageColorMap*, bool, Stream*, int, int, GfxImageColorMap*, bool)':
> OPVPOutputDev.cxx:(.text+0x4708): undefined reference to `SplashBitmap::SplashBitmap(int, int, int, SplashColorMode, bool, bool)'
> OPVPOutputDev.cxx:(.text+0x47af): undefined reference to `Splash::drawImage(bool (*)(void*, unsigned char*, unsigned char*), void*, SplashColorMode, bool, int, int, double*, bool)'
> 
> This happens with the cups-filters-1.0-20130306 and cups-filters-1.0-20130307.
> Is there a stable version that doesn't need to be fixed so that I can actually start working on my actual problem and add new code to the cups driver?
> 
> It is very frustrating to not have a clear outline on what is needed, where to get it and how to compile it properly to get a working cups dev environment.
> 
> Hope someone has some insight?
> Thank you,
> \Manfred
> 
> 
> 
>> Micheal,
>> Thank you that helped and it was libcups2-dev. This helped me finally to compile to end up with an error in poppler files. There should someone say Linux is great and so easy :-(
>> I am still have to figure out how to overcome this.
>> 
>> \Manfred
>> 
>>> Manfred,
>>> 
>>> You need to cups-dev (or libcups-dev? I can't remember) package installed to get the headers and libraries to link against.
>>> 
>>> Alternately you need to install the current CUPS in the right location (./configure should work for you, but 64-bit Ubuntu might not get auto-detected properly since we have to do some questionable configure-time checks to determine the host architecture...)
>>> 
>>> 
>>> On 2013-03-06, at 4:01 PM, Manfred Wilner <mwilner at zebra.com> wrote:
>>> 
>>>> Ok, I finally figured our how to get the missing libraries in my Ubuntu installation (load each one of them with lib in front within the Software Center (not the most elegant and intuitive way)) but I am still running into some errors:
>>>>  /usr/bin/ld: cannot find -lcupsimage
>>>>  /usr/bin/ld: cannot find -lcups
>>>> when I make the cups filter project.
>>>> Are this files that have to be put there or what is missing?
>>>> 
>>>> \Manfred
>>>> 
>>>>> Thank you Michael, this was somewhat helpful and got me going a little bit further.
>>>>> Has anyone ever written an instruction document on how to setup a cups build environment properly?
>>>>> I am having a really hard time to get all the libraries and filters, etc. together so that I can even think about starting to make code changes.
>>>>> This is very frustrating!
>>>>> 
>>>>> I have not been able to find and install the jpeg and other graphic libs, I did find the filters but they also need the libs to compile properly.
>>>>> Also what configurations do I really need? What is optional?
>>>>> 
>>>>> I hope you can help me through this process and put me into the position to make the needed changes to the Zebra drivers.
>>>>> 
>>>>> Best regards,
>>>>> \Manfred
>>>>> 
>>>>>> Manfred,
>>>>>> 
>>>>>> Don't install 1.6.0.
>>>>>> 
>>>>>> Get 1.6.2 (the current top of the 1.6 branch):
>>>>>> 
>>>>>>   svn co http://svn.easysw.com/public/cups/branches/branch-1.6 cups-1.6.2
>>>>>>   cd cups-1.6.2
>>>>>>   autoconf
>>>>>>   ./configure ... whatever configure options you need ...
>>>>>>   make check
>>>>>> 
>>>>>> Note that, in order to have a working printing system, you must also install the latest cups-filters from the linux foundation since CUPS 1.6.0 and later relies on those filters for Linux support...
>>>>>> 
>>>>>> 
>>>>>> On 2013-03-04, at 3:58 PM, Manfred Wilner <mwilner at zebra.com> wrote:
>>>>>> 
>>>>>>> Michael,
>>>>>>> In desperate needs for some success I completely re-installed Ubuntu 12.10 and found that after first install I am able to connect to printers and can print.
>>>>>>> Then I downloaded CUPS 1.6.0 and ran through the preparation and compiled the project and when I did run the unit test I have the usual problem as described below.
>>>>>>> If I ignore this and run the make install I will break my working print system.
>>>>>>> Since I installed this in a VM I am able to revert to the original installation this time and can get back to a working system in no time but I will have to figure out why the cups installation breaks my working system.
>>>>>>> Also how is the ipp tool to configure so it is not causing the unit test to fail.
>>>>>>> This seems all a bit un-nerving and should be much easier in my humble opinion.
>>>>>>> Can you direct me so I can get this resolved soon so I can actually start modifying the Zebra driver to be included in one of the future releases.
>>>>>>> 
>>>>>>> Best regards,
>>>>>>> \manfred
>>>>>>> 
>>>>>>> 
>>>>>>>> Manfred,
>>>>>>>> 
>>>>>>>> There are some known issues in 1.6.1 that will (soon) be fixed when 1.6.2 comes out. You can checkout the current 1.6 branch from the Subversion repository to try it out.
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On 2013-02-27, at 4:21 PM, Manfred Wilner <mwilner at zebra.com> wrote:
>>>>>>>>> After download the latest version and compile on an Ubuntu 12.04 LTS I am getting errors when running the make check.
>>>>>>>>> 
>>>>>>>>> There seems to be a configuration problem but as I am still unfamiliar with it I would like to get some direction. I am trying to convert from Windows :-)
>>>>>>>>> 
>>>>>>>>> Running IPP compliance tests...
>>>>>>>>> Performing 4.1-requests.test: PASS
>>>>>>>>> Performing 4.2-cups-printer-ops.test: PASS
>>>>>>>>> Performing 4.3-job-ops.test: FAIL
>>>>>>>>> Performing 4.4-subscription-ops.test: PASS
>>>>>>>>> Performing ipp-2.1.test: FAIL
>>>>>>>>> 
>>>>>>>>> Running command tests...
>>>>>>>>> Performing 5.1-lpadmin.sh: PASS
>>>>>>>>> Performing 5.2-lpc.sh: PASS
>>>>>>>>> Performing 5.3-lpq.sh: PASS
>>>>>>>>> Performing 5.4-lpstat.sh: PASS
>>>>>>>>> Performing 5.5-lp.sh: FAIL
>>>>>>>>> Performing 5.6-lpr.sh: FAIL
>>>>>>>>> Performing 5.7-lprm.sh: FAIL
>>>>>>>>> Performing 5.8-cancel.sh: FAIL
>>>>>>>>> Performing 5.9-lpinfo.sh: PASS
>>>>>>>>> Test Summary
>>>>>>>>> 
>>>>>>>>> FAIL: 17 job control files were not purged.
>>>>>>>>> PASS: Printer 'Test1' correctly produced 6 page(s).
>>>>>>>>> FAIL: Printer 'Test2' produced 0 page(s), expected 23.
>>>>>>>>> FAIL: Printer 'Test3' produced 0 page(s), expected 2.
>>>>>>>>> FAIL: 69 requests logged, expected 163.
>>>>>>>>> PASS: CUPS-Get-Default not logged.
>>>>>>>>> PASS: 0 emergency messages.
>>>>>>>>> PASS: 0 alert messages.
>>>>>>>>> PASS: 0 critical messages.
>>>>>>>>> FAIL: 46 error messages, expected 33.
>>>>>>>>> E [27/Feb/2013:16:11:29.885277 -0500] Returning IPP client-error-bad-request for Get-Jobs (no URI) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:29.888205 -0500] Missing attributes-natural-language attribute
>>>>>>>>> E [27/Feb/2013:16:11:29.888288 -0500] Missing printer-uri, job-uri, or ppd-name attribute
>>>>>>>>> E [27/Feb/2013:16:11:29.888513 -0500] Returning IPP client-error-bad-request for Get-Jobs (no URI) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:29.890895 -0500] Missing attributes-charset attribute
>>>>>>>>> E [27/Feb/2013:16:11:29.891007 -0500] Missing attributes-natural-language attribute
>>>>>>>>> E [27/Feb/2013:16:11:29.891087 -0500] Missing printer-uri, job-uri, or ppd-name attribute
>>>>>>>>> E [27/Feb/2013:16:11:29.891286 -0500] Returning IPP client-error-bad-request for Get-Jobs (no URI) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:29.893955 -0500] Missing attributes-charset attribute
>>>>>>>>> E [27/Feb/2013:16:11:29.894038 -0500] Missing attributes-natural-language attribute
>>>>>>>>> E [27/Feb/2013:16:11:29.894117 -0500] Missing printer-uri, job-uri, or ppd-name attribute
>>>>>>>>> E [27/Feb/2013:16:11:29.894340 -0500] Returning IPP client-error-bad-request for Get-Jobs (no URI) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:29.897444 -0500] Missing printer-uri, job-uri, or ppd-name attribute
>>>>>>>>> E [27/Feb/2013:16:11:29.897715 -0500] Returning IPP client-error-bad-request for Get-Jobs (no URI) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:29.903033 -0500] Returning IPP client-error-bad-request for Get-Jobs (ipp://localhost:8631/jobs) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:29.905889 -0500] Returning IPP server-error-version-not-supported for Get-Jobs (no URI) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:30.163577 -0500] Returning IPP client-error-bad-request for Print-Job (ipp://localhost:8631/printers/Test1) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:30.192896 -0500] Returning IPP client-error-document-format-not-supported for Print-Job (ipp://localhost:8631/printers/Test2) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:30.209896 -0500] Returning IPP client-error-document-format-not-supported for Print-Job (ipp://localhost:8631/printers/Test1) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:30.223015 -0500] Returning IPP client-error-document-format-not-supported for Print-Job (ipp://localhost:8631/printers/Test1) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:30.229758 -0500] Returning IPP client-error-not-possible for Hold-Job (ipp://localhost:8631/printers/Test1) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:30.232863 -0500] Returning IPP client-error-not-possible for Release-Job (ipp://localhost:8631/printers/Test1) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:30.240422 -0500] Returning IPP client-error-document-format-not-supported for Print-Job (ipp://localhost:8631/printers/Test1) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:30.247052 -0500] Returning IPP client-error-not-possible for Cancel-Job (ipp://localhost:8631/jobs/1) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:37.300517 -0500] Returning IPP client-error-too-many-subscriptions for Create-Printer-Subscription (ipp://localhost:8631/printers/Test1) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:37.324260 -0500] Returning IPP client-error-bad-request for Get-Printer-Attributes (no URI) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:37.327280 -0500] Returning IPP client-error-bad-request for Get-Printer-Attributes (no URI) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:37.329790 -0500] Missing attributes-natural-language attribute
>>>>>>>>> E [27/Feb/2013:16:11:37.330022 -0500] Returning IPP client-error-bad-request for Get-Printer-Attributes (ipp://localhost:8631/printers/Test1) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:37.334013 -0500] Missing attributes-charset attribute
>>>>>>>>> E [27/Feb/2013:16:11:37.334096 -0500] Missing attributes-natural-language attribute
>>>>>>>>> E [27/Feb/2013:16:11:37.334692 -0500] Returning IPP client-error-bad-request for Get-Printer-Attributes (ipp://localhost:8631/printers/Test1) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:37.337135 -0500] Missing attributes-charset attribute
>>>>>>>>> E [27/Feb/2013:16:11:37.337259 -0500] Missing attributes-natural-language attribute
>>>>>>>>> E [27/Feb/2013:16:11:37.337516 -0500] Returning IPP client-error-bad-request for Get-Printer-Attributes (ipp://localhost:8631/printers/Test1) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:37.363066 -0500] Returning IPP server-error-version-not-supported for Get-Printer-Attributes (no URI) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:37.365787 -0500] Missing printer-uri, job-uri, or ppd-name attribute
>>>>>>>>> E [27/Feb/2013:16:11:37.366021 -0500] Returning IPP client-error-bad-request for Get-Printer-Attributes (no URI) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:37.478808 -0500] Returning IPP client-error-not-possible for Cancel-Job (ipp://localhost:8631/printers/Test1) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:37.523685 -0500] Returning IPP client-error-bad-request for Send-Document (ipp://localhost:8631/printers/Test1) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:38.112765 -0500] Returning IPP client-error-document-format-not-supported for Send-Document (ipp://localhost:8631/printers/Test1) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:38.172140 -0500] Returning IPP client-error-document-format-not-supported for Send-Document (ipp://localhost:8631/printers/Test1) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:38.230289 -0500] Returning IPP client-error-document-format-not-supported for Send-Document (ipp://localhost:8631/printers/Test1) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:38.260100 -0500] Returning IPP client-error-not-possible for Cancel-Job (ipp://localhost:8631/printers/Test1) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:38.316788 -0500] Returning IPP client-error-document-format-not-supported for Send-Document (ipp://localhost:8631/printers/Test1) from localhost
>>>>>>>>> E [27/Feb/2013:16:11:38.362608 -0500] Returning IPP client-error-not-possible for Cancel-Job (ipp://localhost/printers/Test1) from localhost
>>>>>>>>> PASS: 9 warning messages.
>>>>>>>>> PASS: 0 notice messages.
>>>>>>>>> PASS: 119 info messages.
>>>>>>>>> PASS: 2100 debug messages.
>>>>>>>>> PASS: 11447 debug2 messages.
>>>>>>>>> 
>>>>>>>>> 11 tests failed.
>>>>>>>>> 
>>>>>>>>> _______________________________________________
>>>>>>>>> cups-dev mailing list
>>>>>>>>> cups-dev at easysw.com
>>>>>>>>> http://lists.easysw.com/mailman/listinfo/cups-dev
>>>>>>>> 
>>>>>>>> _________________________________________________________
>>>>>>>> Michael Sweet, Senior Printing System Engineer, PWG Chair
>>>>>>>> 
>>>>>>> 
>>>>>>> _______________________________________________
>>>>>>> cups-dev mailing list
>>>>>>> cups-dev at easysw.com
>>>>>>> http://lists.easysw.com/mailman/listinfo/cups-dev
>>>>>> 
>>>>>> _________________________________________________________
>>>>>> Michael Sweet, Senior Printing System Engineer, PWG Chair
>>>>>> 
>>>>> 
>>>> 
>>>> _______________________________________________
>>>> cups-dev mailing list
>>>> cups-dev at easysw.com
>>>> http://lists.easysw.com/mailman/listinfo/cups-dev
>>> 
>>> _________________________________________________________
>>> Michael Sweet, Senior Printing System Engineer, PWG Chair
>>> 
>> 
> 
> _______________________________________________
> cups-dev mailing list
> cups-dev at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups-dev

_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair





More information about the cups-devel mailing list