undefined reference to `switch_dev_unregister'
编译内核时,使用默认的配置进行编译。出现错误:undefined reference to switch_dev_unregister',undefined reference to switch_set_state'.
参考链接:
http://www.cnblogs.com/zengjfgit/p/4882146.html
make imx_defconfig
make uImage
编译出错。
drivers/built-in.o: In function `mxc_hdmi_remove':
clkdev.c:(.text+0x12610): undefined reference to `switch_dev_unregister'
clkdev.c:(.text+0x1261c): undefined reference to `switch_dev_unregister'
drivers/built-in.o: In function `hotplug_worker':
clkdev.c:(.text+0x14424): undefined reference to `switch_set_state'
clkdev.c:(.text+0x14434): undefined reference to `switch_set_state'
clkdev.c:(.text+0x1462c): undefined reference to `switch_set_state'
clkdev.c:(.text+0x1463c): undefined reference to `switch_set_state'
drivers/built-in.o: In function `mxc_hdmi_probe':
clkdev.c:(.devinit.text+0x3c8): undefined reference to `switch_dev_register'
clkdev.c:(.devinit.text+0x3d4): undefined reference to `switch_dev_register'
sound/built-in.o: In function `usb_audio_disconnect':
last.c:(.text+0x16954): undefined reference to `switch_set_state'
last.c:(.text+0x1695c): undefined reference to `switch_dev_unregister'
sound/built-in.o: In function `usb_audio_probe':
last.c:(.text+0x16db8): undefined reference to `switch_dev_register'
last.c:(.text+0x16e3c): undefined reference to `switch_set_state'
last.c:(.text+0x16f18): undefined reference to `switch_dev_register'
sound/built-in.o: In function `hp_jack_status_check':
last.c:(.text+0x364dc): undefined reference to `switch_set_state'
last.c:(.text+0x36570): undefined reference to `switch_set_state'
sound/built-in.o: In function `imx_wm8962_remove':
last.c:(.devexit.text+0x2b8): undefined reference to `switch_dev_unregister'
sound/built-in.o: In function `imx_wm8962_probe':
last.c:(.devinit.text+0x6e4): undefined reference to `switch_dev_register'
last.c:(.devinit.text+0x718): undefined reference to `switch_set_state'
make: *** [.tmp_vmlinux1] Error 1
cp: cannot stat `arch/arm/boot/uImage': No such file or directory
解决方法:
打开switch选项
make menuconfig
Device Drivers --->
<*> Switch class support --->
--- Switch class support
<*> GPIO Swith support
Tony Liu
2016-11-19, Shenzhen
undefined reference to `switch_dev_unregister'的更多相关文章
- (转) Qt 出现“undefined reference to `vtable for”原因总结
由于Qt本身实现的机制所限,我们在使用Qt制作某些软件程序的时候,会遇到各种各样这样那样的问题,而且很多是很难,或者根本找不到原因的,即使解决了问题,如果有人问你为什么,你只能回答--不知道. 今天我 ...
- undefined reference to `__android_log_print'
使用android studio 编写NDK代码时出现错误:undefined reference to `__android_log_print' 解决办法: eclipse andro ...
- CentOS 6.5 编译 PHP-7 报错:undefined reference to `libiconv_open 无法编译 PHP libiconv
./configure --with-mysql=/backup/mysql --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zli ...
- Qt - 错误总结 - 在自定义类头文件中添加Q_OBJECT 编译时报错(undefined reference to ‘vtable for xxThread)
错误提示:在添加的QThread子类头文件添加Q_OBJECT时,编译程序,出现"undefined reference to 'vtable for xxThread'"错误提示 ...
- Qt经典出错信息之undefined reference to `vtable for classname
原文链接:Qt经典出错信息之undefined reference to `vtable for classname 这个出错信息太常见了,用过Qt两个月以上的朋友基本上都能自己解决了,因为太经典了, ...
- 解决undefined reference to `__poll_chk@GLIBC_2.16' 错误
出现这个错误,是系统的glibc版本太低了,需要更新 到http://ftp.gnu.org/gnu/glibc/下载新版本的glibc,也不用太高,我选择glibc-2.20.tar.gz 解压 ...
- ubuntu系统下,gsl 库链接问题 -undefined reference to `cblas_xxx`
今天在ubuntu系统下进行程序调试的时候出现以下错误信息: [ %] Linking CXX executable ../test_coco /usr/local/lib/libgsl.so: un ...
- Android APP使用NDK编译后的ffmpeg库出现undefined reference to 'posix_memalign'错误
在android程序中使用NDK编译后的ffmpeg库的时候出现了如下错误: jni/libs/libavutil.a(mem.o): in function av_malloc:libavutil/ ...
- undefined reference to `Spreadsheet::staticMetaObject'
<C++ GUI Qt 4 编程>学习 一.遇到的问题 在学完第4章后,Spreasheet程序也已经写好了.在用 FindDialog 搜索时发现没有效果. 二.解决过程 调试跟踪代码, ...
随机推荐
- Hibernate批处理操作优化 (批量插入、更新与删除)
问题描述 我开发的网站加了个新功能:需要在线上处理表数据的批量合并和更新,昨天下午发布上线,执行该功能后,服务器的load突然增高,变化曲线异常,SA教育了我一番,让我尽快处理,将CPU负载降低. 工 ...
- tomcat配置虚拟目录映射
本文主要介绍web虚拟目录映射的两种常用方法及配置默认web应用的方法 一.在Server.xml中进行配置 在<Host>元素中添加子元素<Context path=" ...
- Leetcode | N-Queens I & II
N-Queens I The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no ...
- node.js 资料
supervison可以调试nodejs,并能自动布署 键入命令: npm -g install supervisor
- metasploit--payload模块信息
Name Disclosure Date Rank Description ---- ...
- 【转】Html页面结构范例
原文地址:http://www.51testing.com/html/38/225738-220986.html · HTML · HEAD · LINK ... CSS files required ...
- [SHELL实例] (转)最牛B的 Linux Shell 命令 (一)
本文编译自commandlinefu.com ( 应该是 Catonmat ) 的系列文章 Top Ten One-Liners from CommandLineFu Explained .作为一个由 ...
- S5PV210裸板驱动:启动
以往2440和6410的启动方式,只要我们把裸板代码烧写到NAND FLASH的开始位置,当开发板上点启动时,处理器会自动从NAND FLASH上拷贝前面一段的代码到内部的RAM中执行.按照以前的方法 ...
- HttpStatusCodeResult
HttpStatusCodeResult:让mvc回传特定的http状态代码与消息给客户端,对于一些特殊的http响应,可利用httpStatusCodeResult帮助我们响应适当的状态代码: 1X ...
- writing concurrent programs
Computer Systems A Programmer's Perspective Second Edition To this point in our study of computer sy ...