在Linux上有像dspcat这样的实用程序吗?
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了在Linux上有像dspcat这样的实用程序吗?,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1981字,纯文字阅读大概需要3分钟。
内容图文
![在Linux上有像dspcat这样的实用程序吗?](/upload/InfoBanner/zyjiaocheng/959/80cacc59fc5f4ae5a4b569a407bc3e95.jpg)
我在AIX上使用以下dspcat命令,可以转储使用gencat命令创建的消息目录:
dspcat –g /u/is/bin/I18N/l/lib/libca/libcalifornia.117.cat >> /tmp/message.smc
我花了很长时间寻找关于如何在Linux上转储其中一个目录的提示,但这个命令似乎不可用.任何帮助,将不胜感激.
解决方法:
我找到了dspcat.c:http://www.smart.net/~rlhamil/的源代码.特别是在这个tarball中.我尝试编译它并且缺少一个变量:
$make
cc -O -DSOLARIS dspcat.c -o dspcat
dspcat.c: In function ‘format_msg’:
dspcat.c:11:23: error: ‘NL_TEXTMAX’ undeclared (first use in this function)
static char result[NL_TEXTMAX*2+1];
^
dspcat.c:11:23: note: each undeclared identifier is reported only once for each function it appears in
dspcat.c: In function ‘print_file’:
dspcat.c:240:23: error: ‘NL_SETMAX’ undeclared (first use in this function)
int setlo=1, sethi=NL_SETMAX, msglo=1, msghi=NL_MSGMAX, x, y;
^
dspcat.c:240:49: error: ‘NL_MSGMAX’ undeclared (first use in this function)
int setlo=1, sethi=NL_SETMAX, msglo=1, msghi=NL_MSGMAX, x, y;
^
dspcat.c: In function ‘main’:
dspcat.c:338:30: error: ‘NL_MSGMAX’ undeclared (first use in this function)
if (msg_nr<1 || msg_nr>NL_MSGMAX) {
^
dspcat.c:353:32: error: ‘NL_SETMAX’ undeclared (first use in this function)
if (msg_set<1 || msg_set>NL_SETMAX) {
^
make: *** [dspcat] Error 1
变量NL_SETMAX似乎没有在我的系统上定义.我确实找到了这个头文件,bits / xopen_lim.h确实有这个变量,所以我把它添加到了一个奇思妙想的标题列表中.
$make
cc -O -DSOLARIS dspcat.c -o dspcat
dspcat.c: In function ‘format_msg’:
dspcat.c:11:33: warning: integer overflow in expression [-Woverflow]
static char result[NL_TEXTMAX*2+1];
^
dspcat.c:11:16: error: size of array ‘result’ is negative
static char result[NL_TEXTMAX*2+1];
^
dspcat.c:11:16: error: storage size of ‘result’ isn’t constant
dspcat.c:15:29: warning: integer overflow in expression [-Woverflow]
for (x=0; x < (NL_TEXTMAX*2) && *s != '\0'; s++)
^
make: *** [dspcat] Error 1
如果我有更多时间玩这个,但我相信如果你直接在代码中静态设置该变量,你可以自己编译.
内容总结
以上是互联网集市为您收集整理的在Linux上有像dspcat这样的实用程序吗?全部内容,希望文章能够帮你解决在Linux上有像dspcat这样的实用程序吗?所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。