当前位置: 技术问答>linux和unix
Makefile :scripts/Makefile.build:49: *** CFLAGS was changed in "/opt/zaptel-1.4.
来源: 互联网 发布时间:2016-08-08
本文导语: OS:Ubuntu karmic Software:zaptel1.4.6 Generating input for menuselect ... make[1]: Entering directory `/opt/zaptel-1.4.6' gcc -o gendigits gendigits.c -lm ./gendigits > tones.h gcc -o makefw makefw.c ./makefw tormenta2.rbt tor2fw > tor2fw.h Loaded 69900 by...
OS:Ubuntu karmic
Software:zaptel1.4.6
Generating input for menuselect ...
make[1]: Entering directory `/opt/zaptel-1.4.6'
gcc -o gendigits gendigits.c -lm
./gendigits > tones.h
gcc -o makefw makefw.c
./makefw tormenta2.rbt tor2fw > tor2fw.h
Loaded 69900 bytes from file
./makefw pciradio.rbt radfw > radfw.h
Loaded 42096 bytes from file
make -C /lib/modules/2.6.31-14-generic/build SUBDIRS=/opt/zaptel-1.4.6 HOTPLUG_FIRMWARE=yes modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.31-14-generic'
scripts/Makefile.build:49: *** CFLAGS was changed in "/opt/zaptel-1.4.6/Makefile". Fix it to use EXTRA_CFLAGS. Stop.
make[2]: *** [_module_/opt/zaptel-1.4.6] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.31-14-generic'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/opt/zaptel-1.4.6'
make: *** [all] Error 2
root@opensips:/opt/zaptel-1.4.6#
Software:zaptel1.4.6
Generating input for menuselect ...
make[1]: Entering directory `/opt/zaptel-1.4.6'
gcc -o gendigits gendigits.c -lm
./gendigits > tones.h
gcc -o makefw makefw.c
./makefw tormenta2.rbt tor2fw > tor2fw.h
Loaded 69900 bytes from file
./makefw pciradio.rbt radfw > radfw.h
Loaded 42096 bytes from file
make -C /lib/modules/2.6.31-14-generic/build SUBDIRS=/opt/zaptel-1.4.6 HOTPLUG_FIRMWARE=yes modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.31-14-generic'
scripts/Makefile.build:49: *** CFLAGS was changed in "/opt/zaptel-1.4.6/Makefile". Fix it to use EXTRA_CFLAGS. Stop.
make[2]: *** [_module_/opt/zaptel-1.4.6] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.31-14-generic'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/opt/zaptel-1.4.6'
make: *** [all] Error 2
root@opensips:/opt/zaptel-1.4.6#
|
新的内核里,内核代码子目录是不能改变CFLAGS的值,否则会报这个错(以前2.6.16是可以更改的,27内核就不能改了)。要修改这个错误,需要修改zaptel-1.4.6的Makefile文件,将CFLAGS改成EXTRA_CFLAGS:
CFLAGS=xxxx ---> EXTRA_CLFAGS=xxxx
gcc file.c $(CFLAGS) -o file ---> gcc file.c $(CFLAGS) $(EXTRA_CFLAGS) -o file
CFLAGS=xxxx ---> EXTRA_CLFAGS=xxxx
gcc file.c $(CFLAGS) -o file ---> gcc file.c $(CFLAGS) $(EXTRA_CFLAGS) -o file
|
快要沉了,帮你顶下
希望有会的人来帮你解答下
希望有会的人来帮你解答下
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。