我已经用apt-get source cups下载了cups源代码,并且正在尝试用dpkg-buildpackage编译它。编译失败,错误如下:
PASS: All job control files purged.
PASS: Printer 'Test1' correctly produced 55 page(s).
PASS: Printer 'Test2' correctly produced 23 page(s).
PASS: 135 requests logged.
PASS: CUPS-Get-Default not logged.
PASS: 0 emergency messages.
PASS: 0 alert messages.
PASS: 0 critical messages.
FAIL: 19 error messages, expected 18.
E [16/Oct/2014:15:48:55.461975 +0200] Returning IPP client-error-bad-request for Get-Jobs (no URI) from localhost
E [16/Oct/2014:15:48:55.462540 +0200] Missing attributes-natural-language attribute
E [16/Oct/2014:15:48:55.462577 +0200] Missing printer-uri, job-uri, or ppd-name attribute
E [16/Oct/2014:15:48:55.462651 +0200] Returning IPP client-error-bad-request for Get-Jobs (no URI) from localhost
E [16/Oct/2014:15:48:55.463161 +0200] Missing attributes-charset attribute
E [16/Oct/2014:15:48:55.463192 +0200] Missing attributes-natural-language attribute
E [16/Oct/2014:15:48:55.463228 +0200] Missing printer-uri, job-uri, or ppd-name attribute
E [16/Oct/2014:15:48:55.463303 +0200] Returning IPP client-error-bad-request for Get-Jobs (no URI) from localhost
E [16/Oct/2014:15:48:55.463831 +0200] Missing attributes-charset attribute
E [16/Oct/2014:15:48:55.463862 +0200] Missing attributes-natural-language attribute
E [16/Oct/2014:15:48:55.463898 +0200] Missing printer-uri, job-uri, or ppd-name attribute
E [16/Oct/2014:15:48:55.463981 +0200] Returning IPP client-error-bad-request for Get-Jobs (no URI) from localhost
E [16/Oct/2014:15:48:55.464499 +0200] Missing printer-uri, job-uri, or ppd-name attribute
E [16/Oct/2014:15:48:55.464590 +0200] Returning IPP client-error-bad-request for Get-Jobs (no URI) from localhost
E [16/Oct/2014:15:48:55.465803 +0200] Returning IPP client-error-bad-request for Get-Jobs (ipp://localhost:8631/jobs) from localhost
E [16/Oct/2014:15:48:55.466380 +0200] Returning IPP server-error-version-not-supported for Get-Jobs (no URI) from localhost
E [16/Oct/2014:15:48:55.522710 +0200] Returning IPP client-error-bad-request for Print-Job (ipp://localhost:8631/printers/Test1) from localhost
E [16/Oct/2014:15:49:02.558807 +0200] Returning IPP client-error-too-many-subscriptions for Create-Printer-Subscription (ipp://localhost:8631/printers/Test1) from localhost
E [16/Oct/2014:15:49:13.164121 +0200] [cups-deviced] PID 8234 (usb) crashed on signal 11!
E [16/Oct/2014:15:49:13.164484 +0200] [cups-deviced] PID 8235 (snmp) stopped with status 1!
PASS: 9 warning messages.
PASS: 0 notice messages.
PASS: 787 info messages.
PASS: 9755 debug messages.
PASS: 19774 debug2 messages.
1 tests failed.
Log files can be found in /tmp/cups-martin/log.
A HTML report was created in /tmp/cups-martin/cups-str-1.5-2014-10-16-martin.html.
Copies of the error_log and cups-str-1.5-2014-10-16-martin.html files are in
/home/martin/src/debian/cups-1.5.3/test.
make[1]: *** [check] Error 1
make[1]: Leaving directory `/home/martin/src/debian/cups-1.5.3'
make: *** [debian/stamp-makefile-check] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2我不知道是怎么回事。我已经安装了所有的构建依赖项。
我在用Debian Wheezy
有人能帮忙吗?
发布于 2014-10-24 17:19:52
应该运行apt-get build-dep cups来获取cups的所有构建依赖项。我知道您说您安装了所有的依赖项,但是由于您没有说明是如何做到的,所以我提供了该命令作为我用来执行该操作的机制。
我想到了许多事情。有些包在作为root用户时构建得不太好(您不会找到官方的消息来源,但我多年来一直在Debian上构建软件包)。通常,我将软件构建为正常用户,但使用fakeroot。由于我更喜欢在包构建中使用fakeroot,所以我确保fakeroot是通过apt-get install fakeroot安装的。然后,作为一个非根用户,我会执行apt-get source cups,然后使用一个典型的dpkg-buildpackage -b -us -uc -rfakeroot在Debian系统上构建二进制文件。我碰巧在我的Debian系统上构建了CUP1.5.3,作为非根用户没有任何问题。
我碰巧在root时尝试了这个构建,有趣的是,在尝试启动调度程序时,cups在测试中被卡住了。此问题不存在于非根用户中。虽然在我的系统上发生的事情并没有产生相同的结果错误,因为我的测试永远不会完成!
如果您还没有这样做,我建议您尝试使用fakeroot作为非根用户的构建。
具体到您的调试输出,我发现这很奇怪:
[cups-deviced] PID 8234 (usb) crashed on signal 11!
我想知道在测试期间,USB打印机设备的问题是否导致了您的失败。您有直接连接到系统的USB打印机吗?如果是这样,请尝试断开它并进行构建。我想知道,在cups构建过程中,特定于U盘打印机的cups设备子系统中的问题是否导致了这种故障。
我碰巧发现这个错误报告与cups设备和signal 11类似的问题(在一个基于Ubuntu的老系统上)。这是一个较旧的错误,显然是修复的,但我想知道是否还有其他的情况仍然是一个问题。窃听器有这样的说法:
但是,由于某种原因,Ubuntu9.10和10.04不再正确地认识到USB打印机的存在。它不承认我的惠普激光喷射机4,并可能无法识别其他USB打印机,也。
然后,它在错误日志中提供这一点,这与构建cups时在测试期间看到的错误类似:
Architecture: amd64
CupsErrorLog:
E [18/Apr/2010:09:43:44 -0600] [cups-deviced] PID 1768 (usb) crashed on signal 11!
E [18/Apr/2010:09:46:36 -0600] [cups-deviced] PID 1817 (usb) crashed on signal 11!发布于 2014-10-24 07:19:03
https://stackoverflow.com/questions/26407766
复制相似问题