LinuxSir.cn,穿越时空的Linuxsir!

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

emerge ati-drivers-8.433 出错,提示ld: cannot find -lGL

[复制链接]
发表于 2007-12-11 21:38:31 | 显示全部楼层 |阅读模式
emerge 过程如下:

  1. >>> Emerging (1 of 2) x11-drivers/ati-drivers-8.433 to /
  2. * ati-driver-installer-7-11-x86.x86_64.run MD5 RMD160 SHA1 SHA256 size ;-) ...       [ ok ]
  3. * checking ebuild checksums ;-) ...                                      [ ok ]
  4. * checking auxfile checksums ;-) ...                                     [ ok ]
  5. * checking miscfile checksums ;-) ...                                    [ ok ]
  6. * checking ati-driver-installer-7-11-x86.x86_64.run ;-) ...              [ ok ]
  7. * Determining the location of the kernel source code
  8. * Found kernel source directory:
  9. *     /usr/src/linux
  10. * Found kernel object directory:
  11. *     /lib/modules/2.6.23-gentoo/build
  12. * Found sources for kernel version:
  13. *     2.6.23-gentoo
  14. >>> Unpacking source...
  15. Warning: target directory exists /var/tmp/portage/x11-drivers/ati-drivers-8.433/work
  16. Verifying archive integrity... All good.
  17. Uncompressing ATI Proprietary Linux Driver-8.433......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
  18. * Applying ati-powermode-opt-path-1.patch ...                            [ ok ]
  19. * Converting 2.6.x/Makefile to use M= instead of SUBDIRS= ...            [ ok ]
  20. >>> Unpacking ./../common/usr/src/ati/fglrx_sample_source.tgz to /var/tmp/portage/x11-drivers/ati-drivers-8.433/work/extra
  21. >>> Source unpacked.
  22. >>> Compiling source in /var/tmp/portage/x11-drivers/ati-drivers-8.433/work ...
  23. * Preparing fglrx module
  24. make -C /usr/src/linux M=/var/tmp/portage/x11-drivers/ati-drivers-8.433/work/common/lib/modules/fglrx/build_mod/2.6.x modules
  25. make[1]: Entering directory `/usr/src/linux-2.6.23-gentoo'
  26.   CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-8.433/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
  27. /var/tmp/portage/x11-drivers/ati-drivers-8.433/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: 在函数‘__ke_check_pci’中:
  28. /var/tmp/portage/x11-drivers/ati-drivers-8.433/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1990: 警告:不建议使用‘pci_find_slot’(声明于 include/linux/pci.h:481)
  29. /var/tmp/portage/x11-drivers/ati-drivers-8.433/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: 在函数‘__ke_pci_find_slot’中:
  30. /var/tmp/portage/x11-drivers/ati-drivers-8.433/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2899: 警告:不建议使用‘pci_find_slot’(声明于 include/linux/pci.h:481)
  31.   LD [M]  /var/tmp/portage/x11-drivers/ati-drivers-8.433/work/common/lib/modules/fglrx/build_mod/2.6.x/fglrx.o
  32.   Building modules, stage 2.
  33.   MODPOST 1 modules
  34.   CC      /var/tmp/portage/x11-drivers/ati-drivers-8.433/work/common/lib/modules/fglrx/build_mod/2.6.x/fglrx.mod.o
  35.   LD [M]  /var/tmp/portage/x11-drivers/ati-drivers-8.433/work/common/lib/modules/fglrx/build_mod/2.6.x/fglrx.ko
  36. make[1]: Leaving directory `/usr/src/linux-2.6.23-gentoo'
  37. * Building fgl_glxgears
  38. /usr/lib/gcc/i686-pc-linux-gnu/4.2.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lGL
  39. collect2: ld 返回 1
  40. *
  41. * ERROR: x11-drivers/ati-drivers-8.433 failed.
  42. * Call stack:
  43. *               ebuild.sh, line   46:  Called src_compile
  44. *             environment, line 3142:  Called die
  45. * The specific snippet of code:
  46. *       "$(tc-getCC)" -o fgl_fglxgears ${CFLAGS} ${LDFLAGS} -DUSE_GLU -I"${S}"/common/usr/include fgl_glxgears.c -lGL -lGLU -lX11 -lm || diefunc "$FUNCNAME" "$LINENO" "$?" "fgl_glxgears build failed";
  47. *  The die message:
  48. *   fgl_glxgears build failed
复制代码
发表于 2007-12-11 23:32:24 | 显示全部楼层
这个问题是可以搜的到的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-12-12 11:25:58 | 显示全部楼层
Thanks.

解决方法应该在[color="Blue"]这里。晚上回去试试。
回复 支持 反对

使用道具 举报

发表于 2008-8-2 11:12:06 | 显示全部楼层
没搜到 论坛的搜索功能真不好使
回复 支持 反对

使用道具 举报

发表于 2008-8-2 13:33:13 | 显示全部楼层
楼上的楼上的“这里”上有个连接
回复 支持 反对

使用道具 举报

发表于 2008-11-12 23:16:48 | 显示全部楼层
安装compiz的时候反复依赖一个包glitz

甚至emerge -e world都不行了

也是同样的错误
MP -MF .deps/glitz_glx_info.Tpo -c glitz_glx_info.c -o glitz_glx_info.o >/dev/null 2>&1
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src -march=i686 -O3 -pipe -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -MT glitz_glx_extension.lo -MD -MP -MF .deps/glitz_glx_extension.Tpo -c glitz_glx_extension.c -o glitz_glx_extension.o >/dev/null 2>&1
if /bin/sh ../../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src     -march=i686 -O3 -pipe -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -MT glitz_glx_context.lo -MD -MP -MF ".deps/glitz_glx_context.Tpo" -c -o glitz_glx_context.lo glitz_glx_context.c; \
        then mv -f ".deps/glitz_glx_context.Tpo" ".deps/glitz_glx_context.Plo"; else rm -f ".deps/glitz_glx_context.Tpo"; exit 1; fi
if /bin/sh ../../libtool --tag=CC --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src     -march=i686 -O3 -pipe -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -MT glitz_glx_pbuffer.lo -MD -MP -MF ".deps/glitz_glx_pbuffer.Tpo" -c -o glitz_glx_pbuffer.lo glitz_glx_pbuffer.c; \
        then mv -f ".deps/glitz_glx_pbuffer.Tpo" ".deps/glitz_glx_pbuffer.Plo"; else rm -f ".deps/glitz_glx_pbuffer.Tpo"; exit 1; fi
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src -march=i686 -O3 -pipe -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -MT glitz_glx_context.lo -MD -MP -MF .deps/glitz_glx_context.Tpo -c glitz_glx_context.c  -fPIC -DPIC -o .libs/glitz_glx_context.o
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src -march=i686 -O3 -pipe -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -MT glitz_glx_pbuffer.lo -MD -MP -MF .deps/glitz_glx_pbuffer.Tpo -c glitz_glx_pbuffer.c  -fPIC -DPIC -o .libs/glitz_glx_pbuffer.o
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src -march=i686 -O3 -pipe -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -MT glitz_glx_pbuffer.lo -MD -MP -MF .deps/glitz_glx_pbuffer.Tpo -c glitz_glx_pbuffer.c -o glitz_glx_pbuffer.o >/dev/null 2>&1
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src -march=i686 -O3 -pipe -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -MT glitz_glx_context.lo -MD -MP -MF .deps/glitz_glx_context.Tpo -c glitz_glx_context.c -o glitz_glx_context.o >/dev/null 2>&1
/bin/sh ../../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc  -march=i686 -O3 -pipe -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing  -Wl,-O1 -o libglitz-glx.la -rpath /usr/lib -version-info 1:0:0 -no-undefined glitz_glx_drawable.lo glitz_glx_format.lo glitz_glx_info.lo glitz_glx_extension.lo glitz_glx_context.lo glitz_glx_pbuffer.lo -L../../src -lglitz -lX11 -lGL -lpthread
i686-pc-linux-gnu-gcc -shared  .libs/glitz_glx_drawable.o .libs/glitz_glx_format.o .libs/glitz_glx_info.o .libs/glitz_glx_extension.o .libs/glitz_glx_context.o .libs/glitz_glx_pbuffer.o  -Wl,--rpath -Wl,/var/tmp/portage/media-libs/glitz-0.5.6/work/glitz-0.5.6/src/.libs /var/tmp/portage/media-libs/glitz-0.5.6/work/glitz-0.5.6/src/.libs/libglitz.so /usr/lib/libX11.so -L/usr/lib -lGL -lpthread  -march=i686 -Wl,-O1 -Wl,-soname -Wl,libglitz-glx.so.1 -o .libs/libglitz-glx.so.1.0.0
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make[3]: *** [libglitz-glx.la] ´íÎó 1
make[3]: Leaving directory `/var/tmp/portage/media-libs/glitz-0.5.6/work/glitz-0.5.6/src/glx'
make[2]: *** [all-recursive] ´íÎó 1
make[2]: Leaving directory `/var/tmp/portage/media-libs/glitz-0.5.6/work/glitz-0.5.6/src'
make[1]: *** [all-recursive] ´íÎó 1
make[1]: Leaving directory `/var/tmp/portage/media-libs/glitz-0.5.6/work/glitz-0.5.6'
make: *** [all] ´íÎó 2
*
* ERROR: media-libs/glitz-0.5.6 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line   89:  Called die
* The specific snippet of code:
*           emake || die "emake failed";
*  The die message:
*   emake failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/media-libs/glitz-0.5.6/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-libs/glitz-0.5.6/temp/environment'.
*

* Messages for package media-libs/glitz-0.5.6:

*
* ERROR: media-libs/glitz-0.5.6 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line   89:  Called die
* The specific snippet of code:
*           emake || die "emake failed";
*  The die message:
*   emake failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/media-libs/glitz-0.5.6/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-libs/glitz-0.5.6/temp/environment'.
回复 支持 反对

使用道具 举报

发表于 2008-11-12 23:20:51 | 显示全部楼层
我的机器是nvidia的显卡,已经装上了
x11-drivers/nvidia-drivers
      Latest version available: 96.43.07
      Latest version installed: 96.43.07

老大们,帮帮忙吧,该怎么解决啊?难道n卡的也得去装哪个x11-drivers/ati-drivers??
回复 支持 反对

使用道具 举报

发表于 2008-11-12 23:58:01 | 显示全部楼层
http://odin.prohosting.com/wedge01/gentoo-radeon-faq.html
   opengl-update xorg-x11
   emerge ati-drivers
   opengl-update ati
回复 支持 反对

使用道具 举报

发表于 2008-11-13 11:06:32 | 显示全部楼层
Post by zhllg;1881589
楼上的楼上的“这里”上有个连接


汗....隐藏的够深...都没注意到......
回复 支持 反对

使用道具 举报

发表于 2008-11-13 14:31:01 | 显示全部楼层
晕,翻出来这么老的帖子,大家又在关注原来的问题了
回复 支持 反对

使用道具 举报

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

本版积分规则

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