2012-05-08 09:30:10 wzjemb 阅读数 644
  • 《C深度解析》第二章 C预编译——宏定义、条件编译、...

    课程内容: (1)回顾c预编译 (2)宏定义:无宏体宏、有宏体宏、带参宏、宏定义与复杂表达式。 (3)条件编译:#if、#else、#elif #endif、#ifdef和#ifndef、#if与defined、条件编译与配置文件 (4)一些特殊的预编译关键字与实际应用:defined、#error、#line、#与##、#pragma (5)文件包含:是否只能包含.h文件,<>与""区别等。

    296 人正在学习 去看看 张先凤
进入make menuconfig后,选择所有改选的项,然后保存设置,接着make dep,接着就开始出现126错误了,对程序员来说,最恨的不过出现bug
解决步骤:cd /arm2410cl/kernel/linux-2.4.18-2410cl/,得在这个目录底下进行如下操作
因为少了个make distclean
然后 make menuconfig
然后 配置模块化
然后 make dep
然后 make
然后 make modules
2018-02-01 15:58:08 weixin_40137630 阅读数 563
  • 《C深度解析》第二章 C预编译——宏定义、条件编译、...

    课程内容: (1)回顾c预编译 (2)宏定义:无宏体宏、有宏体宏、带参宏、宏定义与复杂表达式。 (3)条件编译:#if、#else、#elif #endif、#ifdef和#ifndef、#if与defined、条件编译与配置文件 (4)一些特殊的预编译关键字与实际应用:defined、#error、#line、#与##、#pragma (5)文件包含:是否只能包含.h文件,<>与""区别等。

    296 人正在学习 去看看 张先凤
1 ubuntu 版本16.04

2 编译出错 .quilt_checked Error126

原报错界面已滚过头了,借用下面一段提示,与原来的类似

make[4]:***[/home/Alex/openwrt_widora/build_dir/target-mipsel_24kec+dsp_musl-1.1.11/linux-ramips_rt305x/linux-3.18.29/.quilt_checked]Error 126

3 解决方法

分二步

step 1 安装32兼容包

在编译widora时,有在论坛看到有人讲使用Ubuntu16.04(64bit)进行嵌入式开发时,默认情况下无法正常运行32位的交叉编译工具链,因此需要安装额外兼容包。

因此,

sudo apt-get install libc6:i386  
sudo apt-get install lib32stdc++6  
sudo apt-get install lib32z1 

顺利安装完成。

step 2 在make menuconfig之前运行“sudo make tools/quilt/install”

输入命令"sudo make tools/quilt/install",会跳出make menuconfig配置界面

之后,再输入“sudo make -j1 V=s”,生成bin文件,完成最终编译。

中间还出现shairport_mmap编译失败

package/Makefile:191: recipe for target 'package/shairport_mmap/compile' failed

运行make menuconfig, sound->shairport_mmap,不选择此功能,这样,才最后编译通过,获得

openwrt-ramips-mt7688-widora-squashfs-sysupgrade.bin

openwrt-ramips-mt7688-widora32M-squashfs-sysupgrade.bin



温馨提示:安装过程中,可能会缺少某些文件包,因为国外的链接某些不能访问,可在http://dl.widora.cc找一下,

下载好再放到dl目录下,继续编译即可。


2011-11-28 10:28:25 wuweilong 阅读数 2878
  • 《C深度解析》第二章 C预编译——宏定义、条件编译、...

    课程内容: (1)回顾c预编译 (2)宏定义:无宏体宏、有宏体宏、带参宏、宏定义与复杂表达式。 (3)条件编译:#if、#else、#elif #endif、#ifdef和#ifndef、#if与defined、条件编译与配置文件 (4)一些特殊的预编译关键字与实际应用:defined、#error、#line、#与##、#pragma (5)文件包含:是否只能包含.h文件,<>与""区别等。

    296 人正在学习 去看看 张先凤

我登录该系统的时候发生如下错误,包扩执行任何命令都会报错:


Last login: Thu Nov 10 08:32:12 2011 from 134.224.55.126
ERROR: ld.so: object '/etc/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
ERROR: ld.so: object '/etc/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
ERROR: ld.so: object '/etc/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
ERROR: ld.so: object '/etc/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
ERROR: ld.so: object '/etc/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
ERROR: ld.so: object '/etc/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
ERROR: ld.so: object '/etc/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
ERROR: ld.so: object '/etc/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
ERROR: ld.so: object '/etc/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
ERROR: ld.so: object '/etc/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
ERROR: ld.so: object '/etc/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
ERROR: ld.so: object '/etc/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
ERROR: ld.so: object '/etc/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
ERROR: ld.so: object '/etc/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
ERROR: ld.so: object '/etc/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.


[root@oss-ora ~]# ls
ERROR: ld.so: object '/etc/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
anaconda-ks.cfg Desktop install.log install.log.syslog
[root@oss-ora /]# ls -rtl
ERROR: ld.so: object '/etc/libcwait.so' from /etc/ld.so.preload cannot be preloaded: ignored.
total 178
drwxr-xr-x 2 root root 4096 Oct 1 2009 srv
drwxr-xr-x 2 root root 4096 Oct 1 2009 mnt
drwxr-xr-x 2 root root 4096 Oct 1 2009 media
drwxrwx--- 2 500 501 4096 Oct 1 2009 home
drwxr-xr-x 11 root root 4096 Nov 8 18:09 lib
drwxr-xr-x 2 root root 12288 Nov 8 18:10 sbin
drwxr-xr-x 2 root root 4096 Nov 8 18:10 bin
drwx------ 2 root root 16384 Nov 9 00:36 lost+found
drwxr-xr-x 2 root root 4096 Nov 9 00:40 selinux
drwxr-xr-x 4 root root 1024 Nov 9 00:44 boot
drwxr-xr-x 3 root root 4096 Nov 9 00:49 tftpboot
drwxr-xr-x 25 root root 4096 Nov 9 00:53 var
drwxr-xr-x 16 root root 4096 Nov 9 14:10 usr
drwxr-xr-x 2 root root 4096 Nov 9 14:31 oracle
drwxr-xr-x 4 root root 4096 Nov 9 17:14 opt
drwxr-xr-x 7 root root 12288 Nov 10 04:02 lib64
dr-xr-xr-x 444 root root 0 Nov 10 08:16 proc
drwxr-xr-x 11 root root 0 Nov 10 08:16 sys
drwxr-xr-x 2 root root 0 Nov 10 08:17 misc
drwxr-xr-x 2 root root 0 Nov 10 08:17 net
drwxr-xr-x 12 root root 3800 Nov 10 08:18 dev
drwxr-xr-x 106 root root 12288 Nov 10 08:51 etc
drwxr-x--- 18 root root 4096 Nov 10 08:54 root
drwxr-xr-x 11 root root 4096 Nov 10 10:13 tmp


经回忆是由于昨天打了p3006854_9204_linux.zip这个补丁后出现的问题,后经查阅文档p3006854_9204_linux.zip补丁并不支持redhat 5 所以就取消了在redhat 5上安装9i的计划。

但如上的错误信息是由于预加载库文件的时候出错.可能跟你的某些OBJECTS过高有关,另外,操作系统的内核过高也可能有问题.


所以我通过如下步骤来进行解决。
[root@oss-ora /]# echo "" > /etc/ld.so.preload
[root@oss-ora /]# rm /etc/ld.so.preload
rm: remove regular file `/etc/ld.so.preload'? y


如下再执行ls命令,没有问题。

[root@oss-ora /]# ls
bin dev home lib64 media mnt opt proc sbin srv tftpboot usr
boot etc lib lost+found misc net oracle root selinux sys tmp var
[root@oss-ora /]#


重新登录后再次执行ls等命令,没有问题,故障解决

Last login: Thu Nov 10 14:51:25 2011 from 134.224.55.126
[root@oss-ora ~]# pwd
/root
[root@oss-ora ~]# ls -rtl
total 96
drwxr-xr-x 2 root root 4096 Nov 8 17:05 Desktop
-rw-r--r-- 1 root root 5152 Nov 9 00:55 install.log.syslog
-rw-r--r-- 1 root root 58431 Nov 9 00:55 install.log
-rw------- 1 root root 1947 Nov 9 00:56 anaconda-ks.cfg
[root@oss-ora ~]#

 

 

 

 

 


 

linux
2015-12-27 22:46:17 gjq2267787274 阅读数 403
  • 《C深度解析》第二章 C预编译——宏定义、条件编译、...

    课程内容: (1)回顾c预编译 (2)宏定义:无宏体宏、有宏体宏、带参宏、宏定义与复杂表达式。 (3)条件编译:#if、#else、#elif #endif、#ifdef和#ifndef、#if与defined、条件编译与配置文件 (4)一些特殊的预编译关键字与实际应用:defined、#error、#line、#与##、#pragma (5)文件包含:是否只能包含.h文件,<>与""区别等。

    296 人正在学习 去看看 张先凤

1.configure error no acceptable C compiler found in $PATH 问题

http://blog.163.com/ppy2790@126/blog/static/10324224120136280347690/

2.error: No curses/termcap library found的解决办法

http://blog.csdn.net/zccst/article/details/4493074

 

3.mysql编译设置make,最后提示:make[2]: *** [my_new.o] Error 127

http://zhidao.baidu.com/link?url=vBu2H_35m3YxrY7Ou_vF4XQ_Zp2VUqTpq37VffWqPAeNePszyZt7cehk5CownVC6GfkwQ2Tbbp8SfbQSPNnlm_

 

4. sqoop的插件oraoop

http://blog.itpub.net/16582684/viewspace-1278518/

 

5.oracle安装问题解决

使用命令:netca   报错:libclntsh.so.11.1和libaio.so.1:can not open

解决办法:find / -namelibclntsh.so.11.1find / -name libaio.so.1  然后 将搜索到的cp到那个目录下

执行 sqlplus /nolog   报错:libsqlplus.so  cannot open  

解决办法:添加环境变量  export LD_LIBRARY_PATH=/opt/oracle/product/OraHome/network/lib

 

message file sp1<lang> .msb not found

set   oracle_home  to you oracle software directory

参考:http://blog.itpub.net/70109/viewspace-687845/

 

6.python-hdfs

http://blog.sina.com.cn/s/blog_6dab20b401019e0u.html

7.: java.lang.ClassNotFoundException: org.osgi.framework.BundleActivator

http://blog.csdn.net/lyq19870515/article/details/9347061

8.linux安装

http://jingyan.baidu.com/article/456c463b40a7580a59314475.html

9.在linux环境下执行c程序

gcc -Wall -o hello hello.c

./hello

 

c语言格式

#include <stdio.h>
int main(int argc, char* argv[])
{
printf("hello world");
}

10.最小化安装

http://www.tecmint.com/centos-7-installation/

11.设置静态ip centos7

http://blog.csdn.net/johnnycode/article/details/40624403

 

12.yum 源配置

http://qingwang.blog.51cto.com/505009/1551228

无网络的环境下配置yum源

http://www.linuxidc.com/Linux/2017-01/140044.htm

 

13.linux下xhost命令报错:unable to open display的解决办法

http://www.jb51.net/LINUXjishu/412923.html

启动oracle数据库 (监听)

http://blog.sina.com.cn/s/blog_14e9fed4c0102wqdl.html

 

创建用户

 

以下为创建用户

conn system/manager as sysdba;                            //以system账户登录

create user test identified by test;                          //创建用户名为test的帐号,密码为test。

Grant create session to test;                                 //授权test用户登录权限。

 

grant connect,create view ,resource  to TEST;    //给表提供创建试图等权限

grant unlimited tablespace to TEST;         //授予TEST用户使用表空间的权限

 

13.修改网卡名

https://blog.csdn.net/u013252047/article/details/77947594?locationNum=3&fps=1

 

 

 

 

2012-03-07 16:10:18 yongsheng0550 阅读数 4286
  • 《C深度解析》第二章 C预编译——宏定义、条件编译、...

    课程内容: (1)回顾c预编译 (2)宏定义:无宏体宏、有宏体宏、带参宏、宏定义与复杂表达式。 (3)条件编译:#if、#else、#elif #endif、#ifdef和#ifndef、#if与defined、条件编译与配置文件 (4)一些特殊的预编译关键字与实际应用:defined、#error、#line、#与##、#pragma (5)文件包含:是否只能包含.h文件,<>与""区别等。

    296 人正在学习 去看看 张先凤
 

keepalived-1.2.2解包编译时有如下错误:

/usr/include/stdint.h:41: error: conflicting types for 'int64_t'
/usr/src/linux/include/linux/types.h:126: error: previous declaration of 'int64_t' was here
/usr/include/stdint.h:56: error: conflicting types for 'uint64_t'
/usr/src/linux/include/linux/types.h:124: error: previous declaration of 'uint64_t' was here
In file included from /usr/include/sys/uio.h:24,
                 from /usr/include/sys/socket.h:27,
                 from /usr/include/netinet/in.h:24,
                 from ip_vs.h:12,
                 from ip_vs_nl_policy.c:1:
/usr/include/sys/types.h:46: error: conflicting types for 'loff_t'
/usr/src/linux/include/linux/types.h:58: error: previous declaration of 'loff_t' was here
/usr/include/sys/types.h:62: error: conflicting types for 'dev_t'
/usr/src/linux/include/linux/types.h:22: error: previous declaration of 'dev_t' was here
In file included from /usr/include/sys/types.h:133,
                 from /usr/include/sys/uio.h:24,
                 from /usr/include/sys/socket.h:27,
                 from /usr/include/netinet/in.h:24,
                 from ip_vs.h:12,
                 from ip_vs_nl_policy.c:1:
/usr/include/time.h:105: error: conflicting types for 'timer_t'
/usr/src/linux/include/linux/types.h:31: error: previous declaration of 'timer_t' was here
In file included from /usr/include/sys/uio.h:24,
                 from /usr/include/sys/socket.h:27,
                 from /usr/include/netinet/in.h:24,
                 from ip_vs.h:12,
                 from ip_vs_nl_policy.c:1:
/usr/include/sys/types.h:204: error: conflicting types for 'u_int64_t'
/usr/src/linux/include/linux/types.h:125: error: previous declaration of 'u_int64_t' was here
In file included from /usr/include/sys/types.h:220,
                 from /usr/include/sys/uio.h:24,
                 from /usr/include/sys/socket.h:27,
                 from /usr/include/netinet/in.h:24,
                 from ip_vs.h:12,
                 from ip_vs_nl_policy.c:1:
/usr/include/sys/select.h:78: error: conflicting types for 'fd_set'
/usr/src/linux/include/linux/types.h:21: error: previous declaration of 'fd_set' was here
In file included from /usr/include/sys/uio.h:24,
                 from /usr/include/sys/socket.h:27,
                 from /usr/include/netinet/in.h:24,
                 from ip_vs.h:12,
                 from ip_vs_nl_policy.c:1:
/usr/include/sys/types.h:235: error: conflicting types for 'blkcnt_t'
/usr/src/linux/include/linux/types.h:142: error: previous declaration of 'blkcnt_t' was here
make[2]: *** [ip_vs_nl_policy.o] Error 1

可以采用如下办法解决:

vi keepalived-1.2.2/keepalived/libipvs-2.6/ip_vs.h

将以下行
#include <asm/types.h>          /* For __uXX types */
#include <linux/types.h>        /* For __beXX types in userland */

#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>

替换为以下行
#include <asm/types.h>          /* For __uXX types */
#include <sys/types.h>
#include <linux/types.h>        /* For __beXX types in userland */

#include <netinet/in.h>
#include <sys/socket.h>
#include <arpa/inet.h>

 也就是将#include <sys/types.h>放到#include <linux/types.h>的前面

 问题原因:循环引用问题。

Linux内存管理基础

阅读数 7636

没有更多推荐了,返回首页