LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1244|回复: 15

遇见怪问题了cups-1.1.23-r7 failed

[复制链接]
发表于 2006-6-12 21:56:58 | 显示全部楼层 |阅读模式
Calculating dependencies   ... done!
>>> Emerging (1 of 1) net-print/cups-1.1.23-r7 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking cups-1.1.23-source.tar.bz2 ;-)
>>> Unpacking source...
>>> Unpacking cups-1.1.23-source.tar.bz2 to /var/tmp/portage/cups-1.1.23-r7/work
* Applying disable-strip.patch ...
  [ ok ]
* Applying cups-gcc4-amd64.patch ...
  [ ok ]
* Applying cups-gentooalt.patch ...
  [ ok ]
* Applying cups-1.1.23-bindnow.patch ...
  [ ok ]
* Applying cupsaddsmb.patch ...
  [ ok ]
* Applying cups-1.1.23-respectldflags.patch ...
  [ ok ]
* Running autoconf ...
  [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/cups-1.1.23-r7/work/cups-1.1.23 ...
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-cups-user=lp --with-cups-group=lp --localstatedir=/var --with-bindnow=-Wl,-z,now --enable-pam --enable-ssl --disable-slp --enable-nls --disable-gnutls --enable-openssl --build=i686-pc-linux-gnu
checking for gawk... gawk
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking for i686-pc-linux-gnu-g++... i686-pc-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether i686-pc-linux-gnu-g++ accepts -g... yes
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for a BSD-compatible install... /bin/install -c
checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib
checking for ar... /usr/bin/ar
checking for htmldoc... no
checking for ln... /bin/ln
checking for mv... /bin/mv
checking for nroff... /usr/bin/nroff
checking for rm... /bin/rm
checking for sed... /bin/sed
checking for strip... /usr/bin/strip
checking whether byte ordering is bigendian... no
checking for library containing crypt... -lcrypt
checking for library containing getspent... none required
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking shadow.h usability... yes
checking shadow.h presence... yes
checking for shadow.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking bstring.h usability... no
checking bstring.h presence... no
checking for bstring.h... no
checking usersec.h usability... no
checking usersec.h presence... no
checking for usersec.h... no
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking for strdup... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strlcat... no
checking for strlcpy... no
checking for snprintf... yes
checking for vsnprintf... yes
checking for correct format string to use with strftime... "%c"
checking for mkstemp... yes
checking for mkstemps... no
checking for geteuid... yes
checking for vsyslog... yes
checking for sigaction... yes
checking for waitpid... yes
checking for wait3... yes
checking for tm_gmtoff member in tm structure... yes
checking if libsupc++ is required... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for jpeg_destroy_decompress in -ljpeg... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzgets in -lz... yes
checking for pow in -lm... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_set_tRNS_to_alpha in -lpng... yes
checking tiff.h usability... yes
checking tiff.h presence... yes
checking for tiff.h... yes
checking for TIFFReadScanline in -ltiff... yes
checking for stdlib.h... (cached) yes
checking for socket in -lsocket... no
checking for gethostbyaddr in -lnsl... yes
checking for rresvport... yes
checking for getifaddrs... yes
checking for hstrerror... yes
checking for struct sockaddr.sa_len... no
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking for SSL_new in -lssl... yes
checking for dlopen in -ldl... yes
checking for pam_start in -lpam... yes
checking pam/pam_appl.h usability... no
checking pam/pam_appl.h presence... no
checking for pam/pam_appl.h... no
checking for java... /opt/sun-jdk-1.5.0.06/bin/java
checking for perl... /usr/bin/perl
checking for php... no
checking for python... /usr/bin/python
configure: creating ./config.status
config.status: creating Makedefs
config.status: creating cups.list
config.status: creating cups.sh
config.status: creating cups-config
config.status: creating conf/cupsd.conf
config.status: creating conf/pam.std
config.status: creating config.h
Making all in cups...
Compiling attr.c...
Compiling auth.c...
Compiling dest.c...
Compiling emit.c...
Compiling encode.c...
Compiling getputfile.c...
Compiling http.c...
Compiling http-addr.c...
Compiling http-support.c...
Compiling ipp.c...
Compiling ipp-support.c...
Compiling language.c...
Compiling mark.c...
Compiling md5.c...
Compiling md5passwd.c...
Compiling options.c...
Compiling page.c...
Compiling ppd.c...
Compiling snprintf.c...
Compiling string.c...
Compiling tempfile.c...
Compiling usersys.c...
Compiling util.c...
Compiling testhttp.c...
Compiling testipp.c...
Compiling testlang.c...
Linking libcups.so.2...
Archiving libcups.a...
a - attr.o
a - auth.o
a - dest.o
a - emit.o
a - encode.o
a - getputfile.o
a - http.o
a - http-addr.o
a - http-support.o
a - ipp.o
a - ipp-support.o
a - language.o
a - mark.o
a - md5.o
a - md5passwd.o
a - options.o
a - page.o
a - ppd.o
a - snprintf.o
a - string.o
a - tempfile.o
a - usersys.o
a - util.o
Linking testhttp...
Linking testipp...
Linking testlang...
Making all in backend...
Compiling betest.c...
Compiling ipp.c...
Compiling lpd.c...
Compiling parallel.c...
Compiling scsi.c...
In file included from scsi.c:83:
scsi-linux.c: In function 'print_device':
scsi-linux.c:181: warning: pointer targets in assignment differ in signedness
scsi-linux.c:182: warning: pointer targets in assignment differ in signedness
Compiling serial.c...
Compiling socket.c...
Compiling usb.c...
Linking betest...
Linking ipp...
Linking lpd...
Linking parallel...
Linking scsi...
Linking serial...
Linking socket...
Linking usb...
Making all in berkeley...
Compiling lpc.c...
Compiling lpq.c...
Compiling lpr.c...
Compiling lprm.c...
Linking lpc...
Linking lpq...
Linking lprm...
Linking lpr...
Making all in cgi-bin...
Compiling html.c...
Compiling ipp-var.c...
Compiling template.c...
Compiling var.c...
Compiling admin.c...
Compiling classes.c...
Compiling jobs.c...
Compiling printers.c...
Archiving libcgi.a...
a - html.o
a - ipp-var.o
a - template.o
a - var.o
Linking admin.cgi...
Linking classes.cgi...
Linking jobs.cgi...
Linking printers.cgi...
Making all in filter...
Compiling gziptoany.c...
Compiling hpgl-attr.c...
Compiling hpgl-config.c...
Compiling hpgl-main.c...
Compiling hpgl-prolog.c...
Compiling hpgl-char.c...
Compiling hpgl-input.c...
Compiling hpgl-polygon.c...
Compiling hpgl-vector.c...
Compiling common.c...
Compiling texttops.c...
Compiling textcommon.c...
Compiling pstops.c...
Compiling imagetops.c...
imagetops.c: In function 'main':
imagetops.c:103: warning: 'top' may be used uninitialized in this function
imagetops.c:103: warning: 'left' may be used uninitialized in this function
Compiling image-bmp.c...
Compiling image-colorspace.c...
Compiling image-gif.c...
Compiling image-jpeg.c...
Compiling image-photocd.c...
Compiling image-pix.c...
Compiling image-png.c...
Compiling image-pnm.c...
image-png.c: In function 'ImageReadPNG':
image-png.c:89: warning: format '%d' expects type 'int', but argument 3 has type 'png_uint_32'
image-png.c:89: warning: format '%d' expects type 'int', but argument 4 has type 'png_uint_32'
Compiling image-sgi.c...
Compiling image-sgilib.c...
Compiling image-sun.c...
Compiling image-tiff.c...
Compiling image-zoom.c...
Compiling image.c...
Compiling raster.c...
Compiling imagetoraster.c...
Compiling rastertodymo.c...
Compiling rastertoepson.c...
Compiling rastertohp.c...
Archiving libcupsimage.a...
a - image-bmp.o
a - image-colorspace.o
a - image-gif.o
a - image-jpeg.o
a - image-photocd.o
a - image-pix.o
a - image-png.o
a - image-pnm.o
a - image-sgi.o
a - image-sgilib.o
a - image-sun.o
a - image-tiff.o
a - image-zoom.o
a - image.o
a - raster.o
Linking gziptoany...
Linking hpgltops...
Linking texttops...
Linking pstops...
Linking libcupsimage.so.2...
Linking imagetops...
../filter/libcupsimage.so: undefined reference to `png_read_destroy'
collect2: ld returned 1 exit status
make[1]: *** [imagetops] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 1

!!! ERROR: net-print/cups-1.1.23-r7 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  cups-1.1.23-r7.ebuild, line 80:   Called die

!!! compile problem
!!! If you need support, post the topmost build error, and the call stack if relevant.

++++++++++++++++++++++++++++++++++++++++++++++++++++++
我在安装wxpython时遇到的问题!
why?
 楼主| 发表于 2006-6-12 22:16:23 | 显示全部楼层
我怀疑是libpng 1.2.10引起的,以为我在安装imagemagick时也出错了:
coders/png.c: In function 'ReadOnePNGImage':
coders/png.c:1756: warning: implicit declaration of function 'png_access_version'
coders/png.c:1765: error: 'png_ptr' undeclared (first use in this function)
coders/png.c:1765: error: (Each undeclared identifier is reported only once
coders/png.c:1765: error: for each function it appears in.)
make: *** [coders/coders_png_la-png.lo] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: media-gfx/imagemagick-6.2.6.0 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  imagemagick-6.2.6.0.ebuild, line 86:   Called die

!!! compile problem
!!! If you need support, post the topmost build error, and the call stack if relevant.

怎么解决?
回复 支持 反对

使用道具 举报

发表于 2006-6-12 22:24:37 | 显示全部楼层
rev-rebuild
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-12 22:41:13 | 显示全部楼层

能说得详细点吗?

Post by blackwhite
rev-rebuild

能说得详细点吗?还没用过这个命令!
回复 支持 反对

使用道具 举报

发表于 2006-6-13 01:51:10 | 显示全部楼层
是 revdep-rebuild。刚才输入错了。
用revdep-rebuild -p看看什么需要修复。
如果怀疑是libpng,用个~arch的版本看看。
回复 支持 反对

使用道具 举报

发表于 2006-6-13 11:07:50 | 显示全部楼层
这个
我是unmark了cups-1.2*
然后就可以了
回复 支持 反对

使用道具 举报

发表于 2006-6-13 12:30:40 | 显示全部楼层
Post by blackwhite
是 revdep-rebuild。刚才输入错了。
用revdep-rebuild -p看看什么需要修复。
如果怀疑是libpng,用个~arch的版本看看。

我用的就是~arch的cups,但在编译links的时候也出现了楼主的错误。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-13 12:46:11 | 显示全部楼层

你的方法我这行不通!

Post by melonboy
这个
我是unmark了cups-1.2*
然后就可以了

你的方法我这行不通!
1)我mask后安装就无法进行了
2)好像问题的关键不在cups上
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-13 12:47:39 | 显示全部楼层

你是怎么解决的?

Post by sheep204
我用的就是~arch的cups,但在编译links的时候也出现了楼主的错误。

你是怎么解决的?
好像关键都是libpng引起的!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-6-13 18:50:43 | 显示全部楼层
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表