LinuxSir.cn,穿越时空的Linuxsir!

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

emerge net-misc/multiget 时出错 请帮我看一下是什么问题(已解决)

[复制链接]
发表于 2009-6-21 23:18:44 | 显示全部楼层 |阅读模式
emerge net-misc/multiget
....
make -j2
if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DPACKAGE_SRC_DIR=\""."\" -DPACKAGE_DATA_DIR=\""/usr/share"\" -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libglade-2.0 -I/usr/include/libxml2      -O2 -march=pentium-m -pipe -fomit-frame-pointer -MT batch.o -MD -MP -MF ".deps/batch.Tpo" -c -o batch.o batch.cpp; \
        then mv -f ".deps/batch.Tpo" ".deps/batch.Po"; else rm -f ".deps/batch.Tpo"; exit 1; fi
batch.cpp: In constructor ‘CBatch::CBatch(std::string)’:
batch.cpp:127: error: ‘atoi’ was not declared in this scope
batch.cpp:150: error: ‘sprintf’ was not declared in this scope
batch.cpp:173: error: ‘sprintf’ was not declared in this scope
make[2]: *** [batch.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/net-misc/multiget-1.2.0/work/multiget/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-misc/multiget-1.2.0/work/multiget'
make: *** [all] Error 2
*
* ERROR: net-misc/multiget-1.2.0 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line 2173:  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/net-misc/multiget-1.2.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-misc/multiget-1.2.0/temp/environment'.
* This ebuild is from an overlay named 'china': '/usr/local/portage/layman/gentoo-china/'
*

>>> Failed to emerge net-misc/multiget-1.2.0, Log file:

>>>  '/var/tmp/portage/net-misc/multiget-1.2.0/temp/build.log'

* Messages for package net-misc/multiget-1.2.0:

*
* ERROR: net-misc/multiget-1.2.0 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line 2173:  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/net-misc/multiget-1.2.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-misc/multiget-1.2.0/temp/environment'.
* This ebuild is from an overlay named 'china': '/usr/local/portage/layman/gentoo-china/'
*
发表于 2009-6-22 00:50:43 | 显示全部楼层
你有没有兴趣来做个补丁?
如果有,我可以指导你

这个问题要解决只需要加一行代码即可
回复 支持 反对

使用道具 举报

发表于 2009-6-22 09:00:41 | 显示全部楼层
怎么写补丁? 我的邮箱wellxlx@163.com
回复 支持 反对

使用道具 举报

发表于 2009-6-22 10:28:39 | 显示全部楼层
atoi和sprintf是C标准库函数阿,这代码……
回复 支持 反对

使用道具 举报

发表于 2009-6-22 11:41:32 | 显示全部楼层
eselect wxwidget 没设置好吧?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-6-22 11:56:52 | 显示全部楼层
Post by zhllg;2000190
你有没有兴趣来做个补丁?
如果有,我可以指导你

这个问题要解决只需要加一行代码即可


我有兴趣补丁,请版主指导一下.非常感谢!
eselect wxwidget 设置好了(eselect wxwidget list 查看只有1, 做了sudo eselect wxwidget set 1) wxwidget没有设置好的错误信息是找不到wxwidget module,与上面的错误信息不一样.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-6-22 11:59:43 | 显示全部楼层
补丁是不是在batch.cpp内加一行 #inlcude?
回复 支持 反对

使用道具 举报

发表于 2009-6-22 12:00:43 | 显示全部楼层
你试试在那个文件开头加上

#include <cstdio>
#include <cstdlib>
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-6-22 12:22:32 | 显示全部楼层
Post by zhllg;2000262
你试试在那个文件开头加上

#include <cstdio>
#include <cstdlib>


下班后回去试试.
回复 支持 反对

使用道具 举报

发表于 2009-6-22 15:05:42 | 显示全部楼层
Post by zhllg;2000262
你试试在那个文件开头加上

#include <cstdio>
#include <cstdlib>

阿乐版主的笑话好冷阿
回复 支持 反对

使用道具 举报

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

本版积分规则

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