LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: txkss

求:一个好的下载工具

[复制链接]
发表于 2005-1-21 23:33:21 | 显示全部楼层
Post by txkss
我的操作如下
[root@localhost fltk-1.0.11]# ./install-sh
install:        no input file specified
[root@localhost fltk-1.0.11]# ./configure
loading cache ./config.cache
checking for ranlib... (cached) ranlib
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for c++... (cached) c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking for nroff... (cached) /usr/bin/nroff
checking for htmldoc... no
checking whether byte ordering is bigendian... (cached) no
checking size of short... (cached) 2
checking size of int... (cached) 4
checking size of long... (cached) 4
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no
checking how to run the C preprocessor... (cached) gcc -E
checking for sys/select.h... (cached) yes
checking for sys/stdtypes.h... (cached) no
checking for scandir... (cached) yes
checking for vsnprintf... (cached) yes
checking for snprintf... (cached) yes
checking for vsprintf... (cached) yes
checking for strings.h... (cached) yes
checking for strcasecmp... (cached) yes
checking for X... (cached) libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for dnet_ntoa in -ldnet... (cached) no
checking for dnet_ntoa in -ldnet_stub... (cached) no
checking for gethostbyname... (cached) yes
checking for connect... (cached) yes
checking for remove... (cached) yes
checking for shmat... (cached) yes
checking for IceConnectionNumber in -lICE... (cached) yes
configure: warning: Ignoring libraries " -lSM -lICE" requested by configure.
checking for GL/gl.h... (cached) yes
checking for glXMakeCurrent in -lGL... (cached) yes
checking for GL/glu.h... (cached) yes
checking for X11/extensions/Xdbe.h... (cached) yes
checking for X overlay visuals... (cached) no
checking Testing if GCC supports -fno-exceptions...... yes; disabling them for FLTK...
creating ./config.status
creating makeinclude
creating config.h
config.h is unchanged
[root@localhost fltk-1.0.11]#
第二步make的时候产生了错误
(unsigned char, int, int, int, int, char const*)':
: undefined reference to `operator new(unsigned int)'
../lib/libfltk.a(forms_compatability.o)(.gnu.linkonce.t._ZN12Fl_FormsTextD0Ev+0x21): In function `Fl_FormsText::~Fl_FormsText()':
: undefined reference to `operator delete(void*)'
../lib/libfltk.a(forms_compatability.o)(.gnu.linkonce.d._ZTI12Fl_FormsText+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
../lib/libfltk.a(fl_draw_image.o)(.text+0xf93): In function `innards(unsigned char const*, int, int, int, int, int, int, int, void (*)(void*, int, int, int, unsigned char*), void*)':
: undefined reference to `operator new[](unsigned int)'
../lib/libfltk.a(fl_draw_image.o)(.text+0x114f): In function `innards(unsigned char const*, int, int, int, int, int, int, int, void (*)(void*, int, int, int, unsigned char*), void*)':
: undefined reference to `operator delete[](void*)'
collect2: ld returned 1 exit status
make[1]: *** [fluid] Error 1
make[1]: Leaving directory `/tmp/fltk-1.0.11/fluid'
[root@localhost fltk-1.0.11]#
最后去安装prozgui时也同样遇到先前的错误
请兄弟帮忙

You cannot install prozgui unless your fltk is successfully installed.

I do not encounter this problem in Debian.  Can you describe more about your system and the compiler flags?
回复 支持 反对

使用道具 举报

发表于 2005-1-22 00:12:31 | 显示全部楼层
Post by txkss
我的操作如下
[root@localhost fltk-1.0.11]# ./install-sh
install:        no input file specified
[root@localhost fltk-1.0.11]# ./configure
loading cache ./config.cache
.......................
.........................
第二步make的时候产生了错误
(unsigned char, int, int, int, int, char const*)':
: undefined reference to `operator new(unsigned int)'
../lib/libfltk.a(forms_compatability.o)(.gnu.linkonce.t._ZN12Fl_FormsTextD0Ev+0x21): In function `Fl_FormsText::~Fl_FormsText()':
: undefined reference to `operator delete(void*)'
../lib/libfltk.a(forms_compatability.o)(.gnu.linkonce.d._ZTI12Fl_FormsText+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
../lib/libfltk.a(fl_draw_image.o)(.text+0xf93): In function `innards(unsigned char const*, int, int, int, int, int, int, int, void (*)(void*, int, int, int, unsigned char*), void*)':
: undefined reference to `operator new[](unsigned int)'
../lib/libfltk.a(fl_draw_image.o)(.text+0x114f): In function `innards(unsigned char const*, int, int, int, int, int, int, int, void (*)(void*, int, int, int, unsigned char*), void*)':
: undefined reference to `operator delete[](void*)'
collect2: ld returned 1 exit status
make[1]: *** [fluid] Error 1
make[1]: Leaving directory `/tmp/fltk-1.0.11/fluid'
[root@localhost fltk-1.0.11]#
最后去安装prozgui时也同样遇到先前的错误
请兄弟帮忙


望见谅,缩短一点好看一点。
个人认为你的gcc版本不符合编译要求,太高了?另外,我以前用的 SUSE 发行的一个prozgui的srpm包编译的时候,fltk的版本可以去到1.1.5rc3,我改了一下里面的spec文件,就可以在Mandrake9.1/10.0下面编译使用。(gcc版本是3.4以下的)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-22 09:04:31 | 显示全部楼层
楼上兄弟的意思是
回复 支持 反对

使用道具 举报

发表于 2005-1-22 12:14:52 | 显示全部楼层
请看一下我上传的prozgui.spec文件内容。有两个,一个是SUSE的,另一个是我改过后用于Mandrake的。
Mandrake的那个在MDK9.1/10.0 Official 都通过,编译用的是fltk-1.1.5rc3版本,gcc分别为两个MDK自带的。(MDK10的那个是gcc-3.3.2)请注意里面的patch部分,估计是当时打包者为了使prozgui适应新的编译环境写的。

但遗憾的是在Mandake 10.1 下(gcc-3.4.1)会编译出错,这可能表明的确与gcc的版本有密切关系。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

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

本版积分规则

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