LinuxSir.cn,穿越时空的Linuxsir!

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

升级xorg-7,xgl-coffee,gcc4.1不成功,gtk+-1.2.10-r11编译不过(部分解决)

[复制链接]
发表于 2006-5-10 07:44:22 | 显示全部楼层 |阅读模式
近来看了中文wiki上的文章,想把ati驱动和xgl效果弄起来,因为xorg-6.8有太多的masked包的缘故,心一横,把ACCEPT_KEYWORDS="~x86"加入了make.conf,并且把gcc也升级到4.1。可就是在emerge -e world的时候,出现了严重错误,致使系统至今无法工作。

1、编译xorg7的过程中,编译相关的lib包出现类似这样的错误:
  1. error:previous dedaration of 'xf86usleep' was here
复制代码

后来到官方论坛海搜了一阵,终于通过降低xorg-server的版本至1.0.2-r4,重编译解决。


2、gtk+-1.2.10-r11编译错误,错误提示:

  1. # emerge =gtk+-1.2.10-r11
  2. Calculating dependencies... done!
  3. >>> Emerging (1 of 1) x11-libs/gtk+-1.2.10-r11 to /
  4. >>> checking ebuild checksums ;-)
  5. >>> checking auxfile checksums ;-)
  6. >>> checking miscfile checksums ;-)
  7. >>> checking gtk+-1.2.10.tar.gz ;-)
  8. >>> checking gtk+-1.2.10-r8-gentoo.diff.bz2 ;-)
  9. >>> Unpacking source...
  10. >>> Unpacking gtk+-1.2.10.tar.gz to /var/tmp/portage/gtk+-1.2.10-r11/work
  11. * Applying gtk+-1.2.10-m4.patch ...                                      [ ok ] * Applying gtk+-1.2.10-r8-gentoo.diff.bz2 ...                            [ ok ] * Applying gtk+-1.2-locale_fix.patch ...                                 [ ok ] * Running elibtoolize in: gtk+-1.2.10
  12. *   Applying portage-1.3.4.patch ...
  13. *   Applying sed-1.5.6.patch ...
  14. *   Applying tmp-1.3.5.patch ...
  15. *   Applying uclibc-ltconf-1.3.0.patch ...
  16. >>> Source unpacked.
  17. >>> Compiling source in /var/tmp/portage/gtk+-1.2.10-r11/work/gtk+-1.2.10 ...
  18. * econf: updating gtk+-1.2.10/config.guess with /usr/share/gnuconfig/config.guess
  19. * econf: updating gtk+-1.2.10/config.sub with /usr/share/gnuconfig/config.sub
  20. ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --sysconfdir=/etc --with-xinput=xfree --with-x --enable-debug=minimum --build=i686-pc-linux-gnu
  21. creating cache ./config.cache
  22. checking for a BSD compatible install... /bin/install -c
  23. checking whether build environment is sane... yes
  24. checking whether make sets ${MAKE}... yes
  25. checking for working aclocal... found
  26. checking for working autoconf... found
  27. checking for working automake... found
  28. checking for working autoheader... found
  29. checking for working makeinfo... found
  30. checking host system type... i686-pc-linux-gnu
  31. checking build system type... i686-pc-linux-gnu
  32. checking for ranlib... ranlib
  33. checking for gcc... gcc
  34. checking whether the C compiler (gcc -O3 -march=pentium-m -pipe -mfpmath=sse ) works... yes
  35. checking whether the C compiler (gcc -O3 -march=pentium-m -pipe -mfpmath=sse ) is a cross-compiler... no
  36. checking whether we are using GNU C... yes
  37. checking whether gcc accepts -g... yes
  38. checking for ld used by GCC... /usr/i686-pc-linux-gnu/bin/ld
  39. checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
  40. checking for BSD-compatible nm... /usr/bin/nm -B
  41. checking whether ln -s works... yes
  42. updating cache ./config.cache
  43. loading cache ./config.cache within ltconfig
  44. checking for object suffix... o
  45. checking for executable suffix... no
  46. checking for gcc option to produce PIC... -fPIC
  47. checking if gcc PIC flag -fPIC works... yes
  48. checking if gcc supports -c -o file.o... yes
  49. checking if gcc supports -c -o file.lo... yes
  50. checking if gcc supports -fno-rtti -fno-exceptions ... no
  51. checking if gcc static flag -static works... -static
  52. checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
  53. checking whether the linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
  54. checking command to parse /usr/bin/nm -B output... ok
  55. checking how to hardcode library paths into programs... immediate
  56. checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r
  57. checking dynamic linker characteristics... Linux ld.so
  58. checking if libtool supports shared libraries... yes
  59. checking whether to build shared libraries... yes
  60. checking whether to build static libraries... yes
  61. checking for objdir... .libs
  62. creating libtool
  63. updating cache ./config.cache
  64. loading cache ./config.cache
  65. checking whether to enable maintainer-specific portions of Makefiles... no
  66. checking host system type... i686-pc-linux-gnu
  67. checking whether build environment is sane... yes
  68. checking for gcc... (cached) gcc
  69. checking whether the C compiler (gcc -O3 -march=pentium-m -pipe -mfpmath=sse ) works... yes
  70. checking whether the C compiler (gcc -O3 -march=pentium-m -pipe -mfpmath=sse ) is a cross-compiler... no
  71. checking whether we are using GNU C... (cached) yes
  72. checking whether gcc accepts -g... (cached) yes
  73. checking for POSIXized ISC... no
  74. checking for gcc option to accept ANSI C... none needed
  75. checking for a BSD compatible install... /bin/install -c
  76. checking whether make sets ${MAKE}... (cached) yes
  77. checking for gawk... gawk
  78. checking for perl5... no
  79. checking for perl... perl
  80. checking for indent... indent
  81. checking whether make is GNU Make... yes
  82. checking how to run the C preprocessor... gcc -E
  83. checking for ANSI C header files... yes
  84. checking for working const... yes
  85. checking for inline... inline
  86. checking for off_t... yes
  87. checking for size_t... yes
  88. checking for working alloca.h... yes
  89. checking for alloca... yes
  90. checking for unistd.h... yes
  91. checking for getpagesize... yes
  92. checking for working mmap... yes
  93. checking for argz.h... yes
  94. checking for limits.h... yes
  95. checking for locale.h... yes
  96. checking for nl_types.h... yes
  97. checking for malloc.h... yes
  98. checking for string.h... yes
  99. checking for unistd.h... (cached) yes
  100. checking for sys/param.h... yes
  101. checking for getcwd... yes
  102. checking for munmap... yes
  103. checking for putenv... yes
  104. checking for setenv... yes
  105. checking for setlocale... yes
  106. checking for strchr... yes
  107. checking for strcasecmp... yes
  108. checking for strdup... yes
  109. checking for __argz_count... yes
  110. checking for __argz_stringify... yes
  111. checking for __argz_next... yes
  112. checking for stpcpy... yes
  113. checking for LC_MESSAGES... yes
  114. checking whether NLS is requested... yes
  115. checking for libintl.h... yes
  116. checking for dgettext in libc... yes
  117. checking for msgfmt... /usr/bin/msgfmt
  118. checking for dcgettext... yes
  119. checking for gmsgfmt... /usr/bin/gmsgfmt
  120. checking for xgettext... /usr/bin/xgettext
  121. checking for catalogs to be installed...  zh_CN
  122. checking for extra flags to get ANSI library prototypes... none needed
  123. checking for extra flags for POSIX compliance... none needed
  124. checking for glib-config... /usr/bin/glib-config
  125. checking for GLIB - version >= 1.2.8... yes
  126. checking for X... libraries , headers
  127. checking for dnet_ntoa in -ldnet... no
  128. checking for dnet_ntoa in -ldnet_stub... no
  129. checking for gethostbyname... yes
  130. checking for connect... yes
  131. checking for remove... yes
  132. checking for shmat... yes
  133. checking for IceConnectionNumber in -lICE... yes
  134. checking for XOpenDisplay in -lX11... yes
  135. checking for XShmAttach in -lXext... yes
  136. checking for XShapeCombineMask in -lXext... yes
  137. checking for XConvertCase in -lX11... yes
  138. checking for XUnregisterIMInstantiateCallback in -lX11... yes
  139. checking for sys/ipc.h... yes
  140. checking for sys/shm.h... yes
  141. checking X11/extensions/XShm.h... yes
  142. checking need -DX_LOCALE... no
  143. checking for ANSI C header files... (cached) yes
  144. checking for working const... (cached) yes
  145. checking return type of signal handlers... void
  146. checking for unistd.h... (cached) yes
  147. checking for getpagesize... (cached) yes
  148. checking for working mmap... (cached) yes
  149. checking for getresuid... yes
  150. checking for uid_t in sys/types.h... yes
  151. checking for fd_set... yes, found in sys/types.h
  152. checking for wchar.h... yes
  153. checking for wctype.h... yes
  154. checking for iswalnum... yes
  155. checking if iswalnum() and friends are properly defined... yes
  156. updating cache ./config.cache
  157. creating ./config.status
  158. creating gtk+.spec
  159. creating docs/gtk-config.1
  160. creating Makefile
  161. creating gtk-config
  162. creating po/Makefile.in
  163. creating docs/Makefile
  164. creating gdk/Makefile
  165. creating gtk/Makefile
  166. creating gtk/gtkfeatures.h
  167. creating gdk.pc
  168. creating gtk+.pc
  169. creating config.h
  170. make  all-recursive
  171. make[1]: Entering directory `/var/tmp/portage/gtk+-1.2.10-r11/work/gtk+-1.2.10'
  172. Making all in po
  173. make[2]: Entering directory `/var/tmp/portage/gtk+-1.2.10-r11/work/gtk+-1.2.10/po'
  174. PATH=../src:$PATH /usr/bin/xgettext --default-domain=gtk+ --directory=.. \
  175.           --add-comments --keyword=_ --keyword=N_ \
  176.           --files-from=./POTFILES.in \
  177.         && test ! -f gtk+.po \
  178.            || ( rm -f ./gtk+.pot \
  179.                 && mv gtk+.po ./gtk+.pot )
  180. make[2]: *** 没有规则可以创建“all-yes”需要的目标“zh_CN.gmo”。 停止。
  181. make[2]: *** 正在等待未完成的任务....
  182. make[2]: Leaving directory `/var/tmp/portage/gtk+-1.2.10-r11/work/gtk+-1.2.10/po'
  183. make[1]: *** [all-recursive] 错误 1
  184. make[1]: Leaving directory `/var/tmp/portage/gtk+-1.2.10-r11/work/gtk+-1.2.10'
  185. make: *** [all-recursive-am] 错误 2

  186. !!! ERROR: x11-libs/gtk+-1.2.10-r11 failed.
  187. Call stack:
  188.   ebuild.sh, line 1527:   Called dyn_compile
  189.   ebuild.sh, line 930:   Called src_compile
  190.   gtk+-1.2.10-r11.ebuild, line 66:   Called die

  191. !!! (no error message)
  192. !!! If you need support, post the topmost build error, and the call stack if relevant.
复制代码



3、重编译metisse,nucleo编译不过,错误类似:

  1. #emerge metisse
  2. Calculating dependencies... done!
  3. >>> Emerging (1 of 2) x11-libs/nucleo-0.1_p20041216 to /
  4. >>> checking ebuild checksums ;-)
  5. >>> checking auxfile checksums ;-)
  6. >>> checking miscfile checksums ;-)
  7. >>> checking nucleo-0.1-20041216.tar.bz2 ;-)
  8. >>> Unpacking source...
  9. >>> Unpacking nucleo-0.1-20041216.tar.bz2 to /var/tmp/portage/nucleo-0.1_p20041216/work
  10. * Applying nucleo-0.1-nv.patch ...                                       [ ok ]>>> Source unpacked.
  11. >>> Compiling source in /var/tmp/portage/nucleo-0.1_p20041216/work/nucleo-0.1 ...
  12. * econf: updating nucleo-0.1/build-utils/config.guess with /usr/share/gnuconfig/config.guess
  13. * econf: updating nucleo-0.1/build-utils/config.sub with /usr/share/gnuconfig/config.sub
  14. ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu
  15. checking for a BSD-compatible install... /bin/install -c
  16. checking whether build environment is sane... yes
  17. checking for gawk... gawk
  18. checking whether make sets $(MAKE)... yes
  19. checking build system type... i686-pc-linux-gnu
  20. checking host system type... i686-pc-linux-gnu
  21. checking for style of include used by make... GNU
  22. checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
  23. checking for C compiler default output file name... a.out
  24. checking whether the C compiler works... yes
  25. checking whether we are cross compiling... no
  26. checking for suffix of executables...
  27. checking for suffix of object files... o
  28. checking whether we are using the GNU C compiler... yes
  29. checking whether i686-pc-linux-gnu-gcc accepts -g... yes
  30. checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
  31. checking dependency style of i686-pc-linux-gnu-gcc... gcc3
  32. checking for a sed that does not truncate output... /bin/sed
  33. checking for egrep... grep -E
  34. checking for ld used by i686-pc-linux-gnu-gcc... /usr/i686-pc-linux-gnu/bin/ld
  35. checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
  36. checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r
  37. checking for BSD-compatible nm... /usr/bin/i686-pc-linux-gnu-nm -B
  38. checking whether ln -s works... yes
  39. checking how to recognise dependent libraries... pass_all
  40. checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
  41. checking for ANSI C header files... yes
  42. checking for sys/types.h... yes
  43. checking for sys/stat.h... yes
  44. checking for stdlib.h... yes
  45. checking for string.h... yes
  46. checking for memory.h... yes
  47. checking for strings.h... yes
  48. checking for inttypes.h... yes
  49. checking for stdint.h... yes
  50. checking for unistd.h... yes
  51. checking dlfcn.h usability... yes
  52. checking dlfcn.h presence... yes
  53. checking for dlfcn.h... yes
  54. checking for i686-pc-linux-gnu-g++... i686-pc-linux-gnu-g++
  55. checking whether we are using the GNU C++ compiler... yes
  56. checking whether i686-pc-linux-gnu-g++ accepts -g... yes
  57. checking dependency style of i686-pc-linux-gnu-g++... gcc3
  58. checking how to run the C++ preprocessor... i686-pc-linux-gnu-g++ -E
  59. checking for i686-pc-linux-gnu-g77... no
  60. checking for i686-pc-linux-gnu-f77... no
  61. checking for i686-pc-linux-gnu-xlf... no
  62. checking for i686-pc-linux-gnu-frt... no
  63. checking for i686-pc-linux-gnu-pgf77... no
  64. checking for i686-pc-linux-gnu-fort77... no
  65. checking for i686-pc-linux-gnu-fl32... no
  66. checking for i686-pc-linux-gnu-af77... no
  67. checking for i686-pc-linux-gnu-f90... no
  68. checking for i686-pc-linux-gnu-xlf90... no
  69. checking for i686-pc-linux-gnu-pgf90... no
  70. checking for i686-pc-linux-gnu-epcf90... no
  71. checking for i686-pc-linux-gnu-f95... no
  72. checking for i686-pc-linux-gnu-fort... no
  73. checking for i686-pc-linux-gnu-xlf95... no
  74. checking for i686-pc-linux-gnu-ifc... no
  75. checking for i686-pc-linux-gnu-efc... no
  76. checking for i686-pc-linux-gnu-pgf95... no
  77. checking for i686-pc-linux-gnu-lf95... no
  78. checking for i686-pc-linux-gnu-gfortran... i686-pc-linux-gnu-gfortran
  79. checking whether we are using the GNU Fortran 77 compiler... yes
  80. checking whether i686-pc-linux-gnu-gfortran accepts -g... yes
  81. checking the maximum length of command line arguments... 32768
  82. checking command to parse /usr/bin/i686-pc-linux-gnu-nm -B output from i686-pc-linux-gnu-gcc object... ok
  83. checking for objdir... .libs
  84. checking for i686-pc-linux-gnu-ar... i686-pc-linux-gnu-ar
  85. checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib
  86. checking for i686-pc-linux-gnu-strip... i686-pc-linux-gnu-strip
  87. checking if i686-pc-linux-gnu-gcc static flag  works... yes
  88. checking if i686-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
  89. checking for i686-pc-linux-gnu-gcc option to produce PIC... -fPIC
  90. checking if i686-pc-linux-gnu-gcc PIC flag -fPIC works... yes
  91. checking if i686-pc-linux-gnu-gcc supports -c -o file.o... yes
  92. checking whether the i686-pc-linux-gnu-gcc linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
  93. checking whether -lc should be explicitly linked in... no
  94. checking how to hardcode library paths into programs... immediate
  95. checking whether stripping libraries is possible... yes
  96. checking dynamic linker characteristics... GNU/Linux ld.so
  97. checking if libtool supports shared libraries... yes
  98. checking whether to build shared libraries... yes
  99. checking whether to build static libraries... no
  100. configure: creating libtool
  101. appending configuration tag "CXX" to libtool
  102. checking for ld used by i686-pc-linux-gnu-g++... /usr/i686-pc-linux-gnu/bin/ld
  103. checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
  104. checking whether the i686-pc-linux-gnu-g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
  105. checking for i686-pc-linux-gnu-g++ option to produce PIC... -fPIC
  106. checking if i686-pc-linux-gnu-g++ PIC flag -fPIC works... yes
  107. checking if i686-pc-linux-gnu-g++ supports -c -o file.o... yes
  108. checking whether the i686-pc-linux-gnu-g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
  109. checking how to hardcode library paths into programs... immediate
  110. checking whether stripping libraries is possible... yes
  111. checking dynamic linker characteristics... GNU/Linux ld.so
  112. appending configuration tag "F77" to libtool
  113. checking if libtool supports shared libraries... yes
  114. checking whether to build shared libraries... yes
  115. checking whether to build static libraries... no
  116. checking for i686-pc-linux-gnu-gfortran option to produce PIC... -fPIC
  117. checking if i686-pc-linux-gnu-gfortran PIC flag -fPIC works... yes
  118. checking if i686-pc-linux-gnu-gfortran supports -c -o file.o... yes
  119. checking whether the i686-pc-linux-gnu-gfortran linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
  120. checking how to hardcode library paths into programs... immediate
  121. checking whether stripping libraries is possible... yes
  122. checking dynamic linker characteristics... GNU/Linux ld.so
  123. checking for i686-pc-linux-gnu-g++... (cached) i686-pc-linux-gnu-g++
  124. checking whether we are using the GNU C++ compiler... (cached) yes
  125. checking whether i686-pc-linux-gnu-g++ accepts -g... (cached) yes
  126. checking dependency style of i686-pc-linux-gnu-g++... (cached) gcc3
  127. checking for a BSD-compatible install... /bin/install -c
  128. checking whether byte ordering is bigendian... no
  129. checking for dlopen in -ldl... yes
  130. checking for X... libraries , headers
  131. checking for gethostbyname... yes
  132. checking for connect... yes
  133. checking for remove... yes
  134. checking for shmat... yes
  135. checking for IceConnectionNumber in -lICE... yes
  136. checking GL/gl.h usability... yes
  137. checking GL/gl.h presence... yes
  138. checking for GL/gl.h... yes
  139. checking for glFlush in -lGL... yes
  140. checking for gluUnProject in -lGLU... yes
  141. checking GL/glx.h usability... yes
  142. checking GL/glx.h presence... yes
  143. checking for GL/glx.h... yes
  144. checking for XListInputDevices in -lXi... yes
  145. checking for XAddInputDevice in -lXi... no
  146. checking jpeglib.h usability... yes
  147. checking jpeglib.h presence... yes
  148. checking for jpeglib.h... yes
  149. checking for jpeg_start_decompress in -ljpeg... yes
  150. checking for inflate in -lz... yes
  151. checking png.h usability... yes
  152. checking png.h presence... yes
  153. checking for png.h... yes
  154. checking for png_sig_cmp in -lpng... yes
  155. checking for freetype-config... yes
  156. checking for FT_Init_FreeType in -lfreetype... yes
  157. configure: creating ./config.status
  158. config.status: creating Makefile
  159. config.status: creating nucleo/Makefile
  160. config.status: creating nucleo/core/Makefile
  161. config.status: creating nucleo/core/select/Makefile
  162. config.status: creating nucleo/core/carbon/Makefile
  163. config.status: creating nucleo/utils/Makefile
  164. config.status: creating nucleo/network/Makefile
  165. config.status: creating nucleo/network/udp/Makefile
  166. config.status: creating nucleo/network/tcp/Makefile
  167. config.status: creating nucleo/network/http/Makefile
  168. config.status: creating nucleo/network/rdv/Makefile
  169. config.status: creating nucleo/image/Makefile
  170. config.status: creating nucleo/image/encoding/Makefile
  171. config.status: creating nucleo/image/source/Makefile
  172. config.status: creating nucleo/image/sink/Makefile
  173. config.status: creating nucleo/image/processing/Makefile
  174. config.status: creating nucleo/image/processing/basic/Makefile
  175. config.status: creating nucleo/image/processing/chromakeying/Makefile
  176. config.status: creating nucleo/image/processing/convolution/Makefile
  177. config.status: creating nucleo/image/processing/difference/Makefile
  178. config.status: creating nucleo/image/processing/gamma/Makefile
  179. config.status: creating nucleo/image/processing/noise/Makefile
  180. config.status: creating nucleo/gl/Makefile
  181. config.status: creating nucleo/gl/window/Makefile
  182. config.status: creating nucleo/gl/texture/Makefile
  183. config.status: creating nucleo/gl/text/Makefile
  184. config.status: creating nucleo/gl/scenegraph/Makefile
  185. config.status: creating nucleo/plugins/Makefile
  186. config.status: creating nucleo/plugins/vnc/Makefile
  187. config.status: creating nucleo/plugins/ffmpeg/Makefile
  188. config.status: creating nucleo/plugins/howl/Makefile
  189. config.status: creating tests/Makefile
  190. config.status: creating demos/Makefile
  191. config.status: creating demos/video/Makefile
  192. config.status: creating demos/vnc/Makefile
  193. config.status: creating apps/Makefile
  194. config.status: creating apps/videoServer/Makefile
  195. config.status: creating data/Makefile
  196. config.status: creating data/vera/Makefile
  197. config.status: creating docs/Makefile
  198. config.status: creating docs/MacOSX/Makefile
  199. config.status: creating docs/MacOSX/nTest
  200. config.status: creating docs/MacOSX/nBundle
  201. config.status: creating build-utils/Makefile
  202. config.status: creating build-utils/rpm/Makefile
  203. config.status: creating build-utils/rpm/nucleo.spec
  204. config.status: creating nucleo-config
  205. config.status: creating nucleo.pc
  206. config.status: creating nucleo/config.H
  207. config.status: executing depfiles commands
  208. Making all in nucleo
  209. Making all in core
  210. Making all in select
  211. mkdir .libs
  212. i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../../nucleo -I../../.. -I../../.. -I/usr/include/freetype2 -O3 -march=pentium-m -pipe -mfpmath=sse -MT sTimeKeeper.lo -MD -MP -MF .deps/sTimeKeeper.Tpo -c sTimeKeeper.cxx  -fPIC -DPIC -o .libs/sTimeKeeper.o
  213. i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../../nucleo -I../../.. -I../../.. -I/usr/include/freetype2 -O3 -march=pentium-m -pipe -mfpmath=sse -MT sFileKeeper.lo -MD -MP -MF .deps/sFileKeeper.Tpo -c sFileKeeper.cxx  -fPIC -DPIC -o .libs/sFileKeeper.o
  214. i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../../nucleo -I../../.. -I../../.. -I/usr/include/freetype2 -O3 -march=pentium-m -pipe -mfpmath=sse -MT sReactiveEngine.lo -MD -MP -MF .deps/sReactiveEngine.Tpo -c sReactiveEngine.cxx  -fPIC -DPIC -o .libs/sReactiveEngine.o
  215. i686-pc-linux-gnu-ar cru .libs/libselect.a .libs/sTimeKeeper.o .libs/sFileKeeper.o .libs/sReactiveEngine.o
  216. i686-pc-linux-gnu-ranlib .libs/libselect.a
  217. creating libselect.la
  218. (cd .libs && rm -f libselect.la && ln -s ../libselect.la libselect.la)
  219. mkdir .libs
  220. i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../nucleo -I../.. -I../.. -I/usr/include/freetype2 -O3 -march=pentium-m -pipe -mfpmath=sse -MT FileKeeper.lo -MD -MP -MF .deps/FileKeeper.Tpo -c FileKeeper.cxx  -fPIC -DPIC -o .libs/FileKeeper.o
  221. i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../nucleo -I../.. -I../.. -I/usr/include/freetype2 -O3 -march=pentium-m -pipe -mfpmath=sse -MT TimeKeeper.lo -MD -MP -MF .deps/TimeKeeper.Tpo -c TimeKeeper.cxx  -fPIC -DPIC -o .libs/TimeKeeper.o
  222. i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../nucleo -I../.. -I../.. -I/usr/include/freetype2 -O3 -march=pentium-m -pipe -mfpmath=sse -MT ReactiveEngine.lo -MD -MP -MF .deps/ReactiveEngine.Tpo -c ReactiveEngine.cxx  -fPIC -DPIC -o .libs/ReactiveEngine.o
  223. i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../nucleo -I../.. -I../.. -I/usr/include/freetype2 -O3 -march=pentium-m -pipe -mfpmath=sse -MT ReactiveObject.lo -MD -MP -MF .deps/ReactiveObject.Tpo -c ReactiveObject.cxx  -fPIC -DPIC -o .libs/ReactiveObject.o
  224. i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../nucleo -I../.. -I../.. -I/usr/include/freetype2 -O3 -march=pentium-m -pipe -mfpmath=sse -MT URI.lo -MD -MP -MF .deps/URI.Tpo -c URI.cxx  -fPIC -DPIC -o .libs/URI.o
  225. i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../nucleo -I../.. -I../.. -I/usr/include/freetype2 -O3 -march=pentium-m -pipe -mfpmath=sse -MT PluginManager.lo -MD -MP -MF .deps/PluginManager.Tpo -c PluginManager.cxx  -fPIC -DPIC -o .libs/PluginManager.o
  226. i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../nucleo -I../.. -I../.. -I/usr/include/freetype2 -O3 -march=pentium-m -pipe -mfpmath=sse -MT UUID.lo -MD -MP -MF .deps/UUID.Tpo -c UUID.cxx  -fPIC -DPIC -o .libs/UUID.o
  227. rm -fr .libs/libcore.lax
  228. mkdir .libs/libcore.lax
  229. rm -fr .libs/libcore.lax/libselect.a
  230. mkdir .libs/libcore.lax/libselect.a
  231. (cd .libs/libcore.lax/libselect.a && i686-pc-linux-gnu-ar x /var/tmp/portage/nucleo-0.1_p20041216/work/nucleo-0.1/nucleo/core/select/.libs/libselect.a)
  232. i686-pc-linux-gnu-ar cru .libs/libcore.a .libs/TimeKeeper.o .libs/FileKeeper.o .libs/ReactiveEngine.o .libs/ReactiveObject.o .libs/URI.o .libs/PluginManager.o .libs/UUID.o .libs/libcore.lax/libselect.a/sTimeKeeper.o .libs/libcore.lax/libselect.a/sReactiveEngine.o .libs/libcore.lax/libselect.a/sFileKeeper.o
  233. i686-pc-linux-gnu-ranlib .libs/libcore.a
  234. rm -fr .libs/libcore.lax
  235. creating libcore.la
  236. (cd .libs && rm -f libcore.la && ln -s ../libcore.la libcore.la)
  237. Making all in utils
  238. mkdir .libs
  239. i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../nucleo -I../.. -I../.. -DNUCLEO_PLUGINS_DIR="/usr/lib/nucleo" -DNUCLEO_RESOURCES_DIR="/usr/share/nucleo" -I/usr/include/freetype2 -O3 -march=pentium-m -pipe -mfpmath=sse -MT AppUtils.lo -MD -MP -MF .deps/AppUtils.Tpo -c AppUtils.cxx  -fPIC -DPIC -o .libs/AppUtils.o
  240. i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../nucleo -I../.. -I../.. -DNUCLEO_PLUGINS_DIR="/usr/lib/nucleo" -DNUCLEO_RESOURCES_DIR="/usr/share/nucleo" -I/usr/include/freetype2 -O3 -march=pentium-m -pipe -mfpmath=sse -MT FileUtils.lo -MD -MP -MF .deps/FileUtils.Tpo -c FileUtils.cxx  -fPIC -DPIC -o .libs/FileUtils.o
  241. i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../nucleo -I../.. -I../.. -DNUCLEO_PLUGINS_DIR="/usr/lib/nucleo" -DNUCLEO_RESOURCES_DIR="/usr/share/nucleo" -I/usr/include/freetype2 -O3 -march=pentium-m -pipe -mfpmath=sse -MT SignalUtils.lo -MD -MP -MF .deps/SignalUtils.Tpo -c SignalUtils.cxx  -fPIC -DPIC -o .libs/SignalUtils.o
  242. i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../nucleo -I../.. -I../.. -DNUCLEO_PLUGINS_DIR="/usr/lib/nucleo" -DNUCLEO_RESOURCES_DIR="/usr/share/nucleo" -I/usr/include/freetype2 -O3 -march=pentium-m -pipe -mfpmath=sse -MT StringUtils.lo -MD -MP -MF .deps/StringUtils.Tpo -c StringUtils.cxx  -fPIC -DPIC -o .libs/StringUtils.o
  243. i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../nucleo -I../.. -I../.. -DNUCLEO_PLUGINS_DIR="/usr/lib/nucleo" -DNUCLEO_RESOURCES_DIR="/usr/share/nucleo" -I/usr/include/freetype2 -O3 -march=pentium-m -pipe -mfpmath=sse -MT TimeUtils.lo -MD -MP -MF .deps/TimeUtils.Tpo -c TimeUtils.cxx  -fPIC -DPIC -o .libs/TimeUtils.o
  244. StringUtils.cxx:21: error: explicit instantiation of 'class std::basic_string<char, nucleo::ci_char_traits, std::allocator<char> >' in namespace 'nucleo' (which does not enclose namespace 'std')
  245. StringUtils.cxx:21: error: explicit instantiation of 'struct std::basic_string<char, nucleo::ci_char_traits, std::allocator<char> >::_Alloc_hider' in namespace 'nucleo' (which does not enclose namespace 'std')
  246. StringUtils.cxx:21: error: explicit instantiation of 'struct std::basic_string<char, nucleo::ci_char_traits, std::allocator<char> >::_Rep' in namespace 'nucleo' (which does not enclose namespace 'std')
  247. StringUtils.cxx:21: error: explicit instantiation of 'struct std::basic_string<char, nucleo::ci_char_traits, std::allocator<char> >::_Rep_base' in namespace 'nucleo' (which does not enclose namespace 'std')
  248. make[3]: *** [StringUtils.lo] 错误 1
  249. make[3]: *** 正在等待未完成的任务....
  250. i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../../nucleo -I../.. -I../.. -DNUCLEO_PLUGINS_DIR="/usr/lib/nucleo" -DNUCLEO_RESOURCES_DIR="/usr/share/nucleo" -I/usr/include/freetype2 -O3 -march=pentium-m -pipe -mfpmath=sse -MT ConfigDict.lo -MD -MP -MF .deps/ConfigDict.Tpo -c ConfigDict.cxx  -fPIC -DPIC -o .libs/ConfigDict.o
  251. make[2]: *** [all-recursive] 错误 1
  252. make[1]: *** [all] 错误 2
  253. make: *** [all-recursive] 错误 1

  254. !!! ERROR: x11-libs/nucleo-0.1_p20041216 failed.
  255. Call stack:
  256.   ebuild.sh, line 1527:   Called dyn_compile
  257.   ebuild.sh, line 930:   Called src_compile
  258.   ebuild.sh, line 600:   Called die

  259. !!! emake failed
  260. !!! If you need support, post the topmost build error, and the call stack if relevant.

复制代码

屡试不爽!换其他版本均出现同样的错误,却找不到原因和解决的办法。苦恼多日,终于发帖求救,请各位给点意见,特别是第2、3个问题
发表于 2006-5-11 11:00:20 | 显示全部楼层
"屡试不爽" 用词不当,好好学学汉语
回复 支持 反对

使用道具 举报

发表于 2006-5-11 11:06:59 | 显示全部楼层
给的信息不够
回复 支持 反对

使用道具 举报

发表于 2006-5-11 12:15:21 | 显示全部楼层
gtk+-1.2的问题你可以去官方论坛报告一下
bugs.gentoo.org
暂时可以通过不设置LANGUAS来解决

第3个也是
可以去bugs.gentoo.org搜索一下
或者去irc.freenode.org #gentoo里问问
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-11 22:55:56 | 显示全部楼层
请问二楼的如何的用词不当了?经过了那么多次的编译失败之后,也只能这样表示我的心情了。看明白的自然能看明白,看不明白的加任何符号都看不明白。

取消nls编译gtk+-1.2的问题的直接表现就是我原来正常现实的fvwm现在乱码了。难道是用了gcc4.1的缘故?
回复 支持 反对

使用道具 举报

发表于 2006-5-11 23:02:34 | 显示全部楼层
屡试不爽是每次都成功的意思
爽即失败
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-11 23:40:31 | 显示全部楼层
是啊,错误每次都成功出现了啊。难道不能正话反说来表示郁闷么?
回复 支持 反对

使用道具 举报

发表于 2006-5-12 00:02:52 | 显示全部楼层
没理解你的用意,呵呵
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-13 19:55:02 | 显示全部楼层
gtk+-1.2.10-r11的bug:http://bugs.gentoo.org/show_bug.cgi?id=114797
解决办法:
更新ebuild:gtk+-1.2.10-r11.ebuild

  1. # Copyright 1999-2005 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-1.2.10-r11.ebuild,v 1.19 2005/05/13 04:48:14 vapier Exp $

  4. GNOME_TARBALL_SUFFIX="gz"
  5. inherit gnome.org eutils libtool toolchain-funcs

  6. DESCRIPTION="The GIMP Toolkit"
  7. HOMEPAGE="http://www.gtk.org/"
  8. SRC_URI="${SRC_URI} http://www.ibiblio.org/gentoo/distfiles/gtk+-1.2.10-r8-gentoo.diff.bz2"

  9. LICENSE="LGPL-2.1"
  10. SLOT="1"
  11. KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 ~sparc x86"
  12. IUSE="nls debug"

  13. RDEPEND="virtual/x11
  14.         =dev-libs/glib-1.2*"
  15. DEPEND="${RDEPEND}
  16.         nls? ( sys-devel/gettext
  17.                 dev-util/intltool )"

  18. src_unpack() {
  19.         unpack ${P}.tar.gz
  20.         cd "${S}"
  21.         epatch "${FILESDIR}"/${P}-m4.patch

  22.         cd "${S}"/..
  23.         epatch "${DISTDIR}"/gtk+-1.2.10-r8-gentoo.diff.bz2

  24.         # locale fix by sbrabec@suse.cz
  25.         cd "${S}"
  26.         epatch "${FILESDIR}"/${PN}-1.2-locale_fix.patch
  27.         epatch "${FILESDIR}"/${P}-linguas.patch

  28.         uclibctoolize
  29. }

  30. src_compile() {
  31.         local myconf=
  32.         use nls || myconf="${myconf} --disable-nls"

  33.         if use debug ; then
  34.                 myconf="${myconf} --enable-debug=yes"
  35.         else
  36.                 myconf="${myconf} --enable-debug=minimum"
  37.         fi

  38.         econf \
  39.                 --sysconfdir=/etc \
  40.                 --with-xinput=xfree \
  41.                 --with-x \
  42.                 ${myconf} || die

  43.         emake CC="$(tc-getCC)" || die
  44. }

  45. src_install() {
  46.         make install DESTDIR="${D}" || die

  47.         preplib /usr

  48.         dodoc AUTHORS ChangeLog* HACKING
  49.         dodoc NEWS* README* TODO
  50.         docinto docs
  51.         cd docs
  52.         dodoc *.txt *.gif text/*
  53.         dohtml -r html

  54.         #install nice, clean-looking gtk+ style
  55.         insinto /usr/share/themes/Gentoo/gtk
  56.         doins "${FILESDIR}"/gtkrc
  57. }

  58. pkg_postinst() {
  59.         ewarn "Older versions added /etc/X11/gtk/gtkrc which changed settings for"
  60.         ewarn "all themes it seems.  Please remove it manually as it will not due"
  61.         ewarn "to /env protection."
  62.         echo ""
  63.         einfo "The old gtkrc is available through the new Gentoo gtk theme."
  64. }
  65. # Copyright 1999-2005 Gentoo Foundation
  66. # Distributed under the terms of the GNU General Public License v2
  67. # $Header: /var/cvsroot/gentoo-x86/x11-libs/gtk+/gtk+-1.2.10-r11.ebuild,v 1.19 2005/05/13 04:48:14 vapier Exp $

  68. GNOME_TARBALL_SUFFIX="gz"
  69. inherit gnome.org eutils libtool toolchain-funcs

  70. DESCRIPTION="The GIMP Toolkit"
  71. HOMEPAGE="http://www.gtk.org/"
  72. SRC_URI="${SRC_URI} http://www.ibiblio.org/gentoo/distfiles/gtk+-1.2.10-r8-gentoo.diff.bz2"

  73. LICENSE="LGPL-2.1"
  74. SLOT="1"
  75. KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 ~sparc x86"
  76. IUSE="nls debug"

  77. RDEPEND="virtual/x11
  78.         =dev-libs/glib-1.2*"
  79. DEPEND="${RDEPEND}
  80.         nls? ( sys-devel/gettext
  81.                 dev-util/intltool )"

  82. src_unpack() {
  83.         unpack ${P}.tar.gz
  84.         cd "${S}"
  85.         epatch "${FILESDIR}"/${P}-m4.patch

  86.         cd "${S}"/..
  87.         epatch "${DISTDIR}"/gtk+-1.2.10-r8-gentoo.diff.bz2

  88.         # locale fix by sbrabec@suse.cz
  89.         cd "${S}"
  90.         epatch "${FILESDIR}"/${PN}-1.2-locale_fix.patch
  91.         epatch "${FILESDIR}"/${P}-linguas.patch

  92.         uclibctoolize
  93. }

  94. src_compile() {
  95.         local myconf=
  96.         use nls || myconf="${myconf} --disable-nls"

  97.         if use debug ; then
  98.                 myconf="${myconf} --enable-debug=yes"
  99.         else
  100.                 myconf="${myconf} --enable-debug=minimum"
  101.         fi

  102.         econf \
  103.                 --sysconfdir=/etc \
  104.                 --with-xinput=xfree \
  105.                 --with-x \
  106.                 ${myconf} || die

  107.         emake CC="$(tc-getCC)" || die
  108. }

  109. src_install() {
  110.         make install DESTDIR="${D}" || die

  111.         preplib /usr

  112.         dodoc AUTHORS ChangeLog* HACKING
  113.         dodoc NEWS* README* TODO
  114.         docinto docs
  115.         cd docs
  116.         dodoc *.txt *.gif text/*
  117.         dohtml -r html

  118.         #install nice, clean-looking gtk+ style
  119.         insinto /usr/share/themes/Gentoo/gtk
  120.         doins "${FILESDIR}"/gtkrc
  121. }

  122. pkg_postinst() {
  123.         ewarn "Older versions added /etc/X11/gtk/gtkrc which changed settings for"
  124.         ewarn "all themes it seems.  Please remove it manually as it will not due"
  125.         ewarn "to /env protection."
  126.         echo ""
  127.         einfo "The old gtkrc is available through the new Gentoo gtk theme."
  128. }
复制代码

添加补丁:gtk+-1.2.10.patch

  1. diff -ruN gtk+-1.2.10.orig/configure gtk+-1.2.10/configure
  2. --- gtk+-1.2.10.orig/configure        2001-03-28 13:11:45.000000000 -0800
  3. +++ gtk+-1.2.10/configure        2005-12-07 13:41:53.000000000 -0800
  4. @@ -4004,7 +4004,7 @@
  5.         NEW_LINGUAS=
  6.         for lang in ${LINGUAS=$ALL_LINGUAS}; do
  7.           case "$ALL_LINGUAS" in
  8. -          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
  9. +          $lang|*\ $lang|$lang\ *|*\ $lang\ *) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
  10.           esac
  11.         done
  12.         LINGUAS=$NEW_LINGUAS
复制代码
回复 支持 反对

使用道具 举报

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

本版积分规则

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