如何在源码里修改openwrt 设置root密码root密码

查看: 3146|回复: 2
求教根据网上下载的源码,如何交叉编译到OpenWrt上使用
今天在PogoPlug里装了个机械硬盘(原壳里装的),担心散热不行,想查下硬盘温度,openwrt平台下貌似没有相关软件包,就下了个hddtemp源码包,在Debian上搭了个交叉编译环境,不太懂Linux的编译方法,./configure --host=arm-openwrt-linux 没报错,make就报错了(源码没问题,我直接本机编译后安装在Debian里可以用)
不知这样编译对不对
./configure --host=arm-openwrt-linux
或者哪位大哥告诉我怎么通过源码包编译成openwrt平台用的。万分感谢。。
以下是执行make后的信息:
:/home/shen/openwrt/hddtemp-0.3-beta15# make
make&&all-recursive
make[1]: Entering directory '/home/shen/openwrt/hddtemp-0.3-beta15'
Making all in intl
make[2]: Entering directory '/home/shen/openwrt/hddtemp-0.3-beta15/intl'
sed -e 's,@''HAVE_POSIX_PRINTF''@,1,g' \
& & -e 's,@''HAVE_ASPRINTF''@,1,g' \
& & -e 's,@''HAVE_SNPRINTF''@,1,g' \
& & -e 's,@''HAVE_WPRINTF''@,0,g' \
&&& ./libgnuintl.h.in & libgnuintl.h
arm-openwrt-linux-gcc -c -DLOCALEDIR=\&/usr/local/share/locale\& -DLOCALE_ALIAS_PATH=\&/usr/local/share/loc&&ale\& -DLIBDIR=\&/usr/local/lib\& -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&/usr/loca&&l/lib\& -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDE&&PENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I..&&-g -O2 -Wall -W -Wcast-align&&bindtextdom.c
arm-openwrt-linux-gcc -c -DLOCALEDIR=\&/usr/local/share/locale\& -DLOCALE_ALIAS_PATH=\&/usr/local/share/loc&&ale\& -DLIBDIR=\&/usr/local/lib\& -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&/usr/loca&&l/lib\& -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDE&&PENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I..&&-g -O2 -Wall -W -Wcast-align&&dcgettext.c
arm-openwrt-linux-gcc -c -DLOCALEDIR=\&/usr/local/share/locale\& -DLOCALE_ALIAS_PATH=\&/usr/local/share/loc&&ale\& -DLIBDIR=\&/usr/local/lib\& -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&/usr/loca&&l/lib\& -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDE&&PENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I..&&-g -O2 -Wall -W -Wcast-align&&dgettext.c
arm-openwrt-linux-gcc -c -DLOCALEDIR=\&/usr/local/share/locale\& -DLOCALE_ALIAS_PATH=\&/usr/local/share/loc&&ale\& -DLIBDIR=\&/usr/local/lib\& -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&/usr/loca&&l/lib\& -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDE&&PENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I..&&-g -O2 -Wall -W -Wcast-align&&gettext.c
arm-openwrt-linux-gcc -c -DLOCALEDIR=\&/usr/local/share/locale\& -DLOCALE_ALIAS_PATH=\&/usr/local/share/loc&&ale\& -DLIBDIR=\&/usr/local/lib\& -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&/usr/loca&&l/lib\& -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDE&&PENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I..&&-g -O2 -Wall -W -Wcast-align&&finddomain.c
arm-openwrt-linux-gcc -c -DLOCALEDIR=\&/usr/local/share/locale\& -DLOCALE_ALIAS_PATH=\&/usr/local/share/loc&&ale\& -DLIBDIR=\&/usr/local/lib\& -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&/usr/loca&&l/lib\& -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDE&&PENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I..&&-g -O2 -Wall -W -Wcast-align&&loadmsgcat.c
loadmsgcat.c: In function '_nl_load_domain':
loadmsgcat.c:951:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
loadmsgcat.c:1040:26: warning: cast increases required alignment of target type [-Wcast-align]
loadmsgcat.c:1042:27: warning: cast increases required alignment of target type [-Wcast-align]
loadmsgcat.c:1047:5: warning: cast increases required alignment of target type [-Wcast-align]
loadmsgcat.c:1089:21: warning: cast increases required alignment of target type [-Wcast-align]
loadmsgcat.c:1111:21: warning: cast increases required alignment of target type [-Wcast-align]
loadmsgcat.c:1114:22: warning: cast increases required alignment of target type [-Wcast-align]
loadmsgcat.c:1132:6: warning: cast increases required alignment of target type [-Wcast-align]
loadmsgcat.c:1193:31: warning: cast increases required alignment of target type [-Wcast-align]
loadmsgcat.c:1196:32: warning: cast increases required alignment of target type [-Wcast-align]
loadmsgcat.c:1199:24: warning: cast increases required alignment of target type [-Wcast-align]
loadmsgcat.c:1211:10: warning: cast increases required alignment of target type [-Wcast-align]
loadmsgcat.c:1249:7: warning: cast increases required alignment of target type [-Wcast-align]
arm-openwrt-linux-gcc -c -DLOCALEDIR=\&/usr/local/share/locale\& -DLOCALE_ALIAS_PATH=\&/usr/local/share/loc&&ale\& -DLIBDIR=\&/usr/local/lib\& -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&/usr/loca&&l/lib\& -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDE&&PENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I..&&-g -O2 -Wall -W -Wcast-align&&localealias.c
arm-openwrt-linux-gcc -c -DLOCALEDIR=\&/usr/local/share/locale\& -DLOCALE_ALIAS_PATH=\&/usr/local/share/loc&&ale\& -DLIBDIR=\&/usr/local/lib\& -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&/usr/loca&&l/lib\& -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDE&&PENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I..&&-g -O2 -Wall -W -Wcast-align&&textdomain.c
arm-openwrt-linux-gcc -c -DLOCALEDIR=\&/usr/local/share/locale\& -DLOCALE_ALIAS_PATH=\&/usr/local/share/loc&&ale\& -DLIBDIR=\&/usr/local/lib\& -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&/usr/loca&&l/lib\& -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDE&&PENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I..&&-g -O2 -Wall -W -Wcast-align&&l10nflist.c
arm-openwrt-linux-gcc -c -DLOCALEDIR=\&/usr/local/share/locale\& -DLOCALE_ALIAS_PATH=\&/usr/local/share/loc&&ale\& -DLIBDIR=\&/usr/local/lib\& -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&/usr/loca&&l/lib\& -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDE&&PENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I..&&-g -O2 -Wall -W -Wcast-align&&explodename.c
arm-openwrt-linux-gcc -c -DLOCALEDIR=\&/usr/local/share/locale\& -DLOCALE_ALIAS_PATH=\&/usr/local/share/loc&&ale\& -DLIBDIR=\&/usr/local/lib\& -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&/usr/loca&&l/lib\& -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDE&&PENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I..&&-g -O2 -Wall -W -Wcast-align&&dcigettext.c
arm-openwrt-linux-gcc -c -DLOCALEDIR=\&/usr/local/share/locale\& -DLOCALE_ALIAS_PATH=\&/usr/local/share/loc&&ale\& -DLIBDIR=\&/usr/local/lib\& -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&/usr/loca&&l/lib\& -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDE&&PENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I..&&-g -O2 -Wall -W -Wcast-align&&dcngettext.c
arm-openwrt-linux-gcc -c -DLOCALEDIR=\&/usr/local/share/locale\& -DLOCALE_ALIAS_PATH=\&/usr/local/share/loc&&ale\& -DLIBDIR=\&/usr/local/lib\& -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&/usr/loca&&l/lib\& -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDE&&PENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I..&&-g -O2 -Wall -W -Wcast-align&&dngettext.c
arm-openwrt-linux-gcc -c -DLOCALEDIR=\&/usr/local/share/locale\& -DLOCALE_ALIAS_PATH=\&/usr/local/share/loc&&ale\& -DLIBDIR=\&/usr/local/lib\& -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&/usr/loca&&l/lib\& -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDE&&PENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I..&&-g -O2 -Wall -W -Wcast-align&&ngettext.c
arm-openwrt-linux-gcc -c -DLOCALEDIR=\&/usr/local/share/locale\& -DLOCALE_ALIAS_PATH=\&/usr/local/share/loc&&ale\& -DLIBDIR=\&/usr/local/lib\& -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&/usr/loca&&l/lib\& -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDE&&PENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I..&&-g -O2 -Wall -W -Wcast-align&&plural.c
plural.y: In function '__gettexterror':
plural.y:378:22: warning: unused parameter 'str' [-Wunused-parameter]
/usr/local/share/bison/bison.simple: In function 'libintl_gettextparse':
/usr/local/share/bison/bison.simple:897:12: warning: '__gettextlval.num' may be used uninitialized in this& &function [-Wuninitialized]
/usr/local/share/bison/bison.simple:382:3: note: '__gettextlval.num' was declared here
arm-openwrt-linux-gcc -c -DLOCALEDIR=\&/usr/local/share/locale\& -DLOCALE_ALIAS_PATH=\&/usr/local/share/loc&&ale\& -DLIBDIR=\&/usr/local/lib\& -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&/usr/loca&&l/lib\& -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDE&&PENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I..&&-g -O2 -Wall -W -Wcast-align&&plural-exp.c
arm-openwrt-linux-gcc -c -DLOCALEDIR=\&/usr/local/share/locale\& -DLOCALE_ALIAS_PATH=\&/usr/local/share/loc&&ale\& -DLIBDIR=\&/usr/local/lib\& -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&/usr/loca&&l/lib\& -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDE&&PENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I..&&-g -O2 -Wall -W -Wcast-align&&localcharset.c
arm-openwrt-linux-gcc -c -DLOCALEDIR=\&/usr/local/share/locale\& -DLOCALE_ALIAS_PATH=\&/usr/local/share/loc&&ale\& -DLIBDIR=\&/usr/local/lib\& -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&/usr/loca&&l/lib\& -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDE&&PENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I..&&-g -O2 -Wall -W -Wcast-align&&relocatable.c
arm-openwrt-linux-gcc -c -DLOCALEDIR=\&/usr/local/share/locale\& -DLOCALE_ALIAS_PATH=\&/usr/local/share/loc&&ale\& -DLIBDIR=\&/usr/local/lib\& -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&/usr/loca&&l/lib\& -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDE&&PENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I..&&-g -O2 -Wall -W -Wcast-align&&langprefs.c
arm-openwrt-linux-gcc -c -DLOCALEDIR=\&/usr/local/share/locale\& -DLOCALE_ALIAS_PATH=\&/usr/local/share/loc&&ale\& -DLIBDIR=\&/usr/local/lib\& -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&/usr/loca&&l/lib\& -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDE&&PENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I..&&-g -O2 -Wall -W -Wcast-align&&localename.c
localename.c: In function '_nl_locale_name_posix':
localename.c:714:50: warning: unused parameter 'categoryname' [-Wunused-parameter]
arm-openwrt-linux-gcc -c -DLOCALEDIR=\&/usr/local/share/locale\& -DLOCALE_ALIAS_PATH=\&/usr/local/share/loc&&ale\& -DLIBDIR=\&/usr/local/lib\& -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&/usr/loca&&l/lib\& -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDE&&PENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I..&&-g -O2 -Wall -W -Wcast-align&&log.c
arm-openwrt-linux-gcc -c -DLOCALEDIR=\&/usr/local/share/locale\& -DLOCALE_ALIAS_PATH=\&/usr/local/share/loc&&ale\& -DLIBDIR=\&/usr/local/lib\& -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&/usr/loca&&l/lib\& -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDE&&PENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I..&&-g -O2 -Wall -W -Wcast-align&&printf.c
arm-openwrt-linux-gcc -c -DLOCALEDIR=\&/usr/local/share/locale\& -DLOCALE_ALIAS_PATH=\&/usr/local/share/loc&&ale\& -DLIBDIR=\&/usr/local/lib\& -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&/usr/loca&&l/lib\& -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDE&&PENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I..&&-g -O2 -Wall -W -Wcast-align&&osdep.c
arm-openwrt-linux-gcc -c -DLOCALEDIR=\&/usr/local/share/locale\& -DLOCALE_ALIAS_PATH=\&/usr/local/share/loc&&ale\& -DLIBDIR=\&/usr/local/lib\& -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\&/usr/loca&&l/lib\& -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDE&&PENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I..&&-g -O2 -Wall -W -Wcast-align&&intl-compat.c
rm -f libintl.a
ar cru libintl.a bindtextdom.o dcgettext.o dgettext.o gettext.o finddomain.o loadmsgcat.o localealias.o tex&&tdomain.o l10nflist.o explodename.o dcigettext.o dcngettext.o dngettext.o ngettext.o plural.o plural-exp.o& &localcharset.o relocatable.o langprefs.o localename.o log.o printf.o osdep.o intl-compat.o
arm-openwrt-linux-ranlib libintl.a
cp libgnuintl.h libintl.h
/bin/sh ./config.charset 'arm-openwrt-linux-gnu' & t-charset.alias
mv t-charset.alias charset.alias
sed -e '/^#/d' -e 's/@''PACKAGE''@/hddtemp/g' ./ref-add.sin & t-ref-add.sed
mv t-ref-add.sed ref-add.sed
sed -e '/^#/d' -e 's/@''PACKAGE''@/hddtemp/g' ./ref-del.sin & t-ref-del.sed
mv t-ref-del.sed ref-del.sed
make[2]: Leaving directory '/home/shen/openwrt/hddtemp-0.3-beta15/intl'
Making all in po
make[2]: Entering directory '/home/shen/openwrt/hddtemp-0.3-beta15/po'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/shen/openwrt/hddtemp-0.3-beta15/po'
Making all in m4
make[2]: Entering directory '/home/shen/openwrt/hddtemp-0.3-beta15/m4'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/shen/openwrt/hddtemp-0.3-beta15/m4'
Making all in src
make[2]: Entering directory '/home/shen/openwrt/hddtemp-0.3-beta15/src'
if arm-openwrt-linux-gcc -DLOCALEDIR=\&/usr/local/share/locale\& -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -I..& &-I../intl -I../intl& &-Wall -W -rdynamic -g -O2 -Wall -W -Wcast-align -MT hddtemp-ata.o -MD -MP -MF &.deps/&&hddtemp-ata.Tpo& \
&&-c -o hddtemp-ata.o `test -f 'ata.c' || echo './'`ata.c; \
then mv -f &.deps/hddtemp-ata.Tpo& &.deps/hddtemp-ata.Po&; \
else rm -f &.deps/hddtemp-ata.Tpo&; exit 1; \
ata.c: In function 'ata_model':
ata.c:68:28: warning: cast increases required alignment of target type [-Wcast-align]
ata.c: In function 'ata_get_temperature':
ata.c:124:7: warning: cast increases required alignment of target type [-Wcast-align]
if arm-openwrt-linux-gcc -DLOCALEDIR=\&/usr/local/share/locale\& -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -I..& &-I../intl -I../intl& &-Wall -W -rdynamic -g -O2 -Wall -W -Wcast-align -MT hddtemp-atacmds.o -MD -MP -MF &.d&&eps/hddtemp-atacmds.Tpo& \
&&-c -o hddtemp-atacmds.o `test -f 'atacmds.c' || echo './'`atacmds.c; \
then mv -f &.deps/hddtemp-atacmds.Tpo& &.deps/hddtemp-atacmds.Po&; \
else rm -f &.deps/hddtemp-atacmds.Tpo&; exit 1; \
if arm-openwrt-linux-gcc -DLOCALEDIR=\&/usr/local/share/locale\& -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -I..& &-I../intl -I../intl& &-Wall -W -rdynamic -g -O2 -Wall -W -Wcast-align -MT hddtemp-daemon.o -MD -MP -MF &.de&&ps/hddtemp-daemon.Tpo& \
&&-c -o hddtemp-daemon.o `test -f 'daemon.c' || echo './'`daemon.c; \
then mv -f &.deps/hddtemp-daemon.Tpo& &.deps/hddtemp-daemon.Po&; \
else rm -f &.deps/hddtemp-daemon.Tpo&; exit 1; \
daemon.c: In function 'daemon_stop':
daemon.c:261:22: warning: unused parameter 'n' [-Wunused-parameter]
if arm-openwrt-linux-gcc -DLOCALEDIR=\&/usr/local/share/locale\& -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -I..& &-I../intl -I../intl& &-Wall -W -rdynamic -g -O2 -Wall -W -Wcast-align -MT hddtemp-db.o -MD -MP -MF &.deps/h&&ddtemp-db.Tpo& \
&&-c -o hddtemp-db.o `test -f 'db.c' || echo './'`db.c; \
then mv -f &.deps/hddtemp-db.Tpo& &.deps/hddtemp-db.Po&; \
else rm -f &.deps/hddtemp-db.Tpo&; exit 1; \
if arm-openwrt-linux-gcc -DLOCALEDIR=\&/usr/local/share/locale\& -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -I..& &-I../intl -I../intl& &-Wall -W -rdynamic -g -O2 -Wall -W -Wcast-align -MT hddtemp-hddtemp.o -MD -MP -MF &.d&&eps/hddtemp-hddtemp.Tpo& \
&&-c -o hddtemp-hddtemp.o `test -f 'hddtemp.c' || echo './'`hddtemp.c; \
then mv -f &.deps/hddtemp-hddtemp.Tpo& &.deps/hddtemp-hddtemp.Po&; \
else rm -f &.deps/hddtemp-hddtemp.Tpo&; exit 1; \
if arm-openwrt-linux-gcc -DLOCALEDIR=\&/usr/local/share/locale\& -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -I..& &-I../intl -I../intl& &-Wall -W -rdynamic -g -O2 -Wall -W -Wcast-align -MT hddtemp-sata.o -MD -MP -MF &.deps&&/hddtemp-sata.Tpo& \
&&-c -o hddtemp-sata.o `test -f 'sata.c' || echo './'`sata.c; \
then mv -f &.deps/hddtemp-sata.Tpo& &.deps/hddtemp-sata.Po&; \
else rm -f &.deps/hddtemp-sata.Tpo&; exit 1; \
sata.c: In function 'sata_probe':
sata.c:71:3: warning: pointer targets in passing argument 2 of 'scsi_inquiry' differ in signedness [-Wpoint&&er-sign]
scsicmds.h:29:5: note: expected 'unsigned char *' but argument is of type 'char *'
sata.c: In function 'sata_model':
sata.c:92:5: warning: pointer targets in passing argument 1 of 'strdup' differ in signedness [-Wpointer-sig&&n]
/home/shen/openwrt/OpenWrt-SDK-oxnas-for-linux-x86_64-gcc-4.6-linaro_uClibc-0.9.33.2/staging_dir/toolchain-&&arm_v6_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/bin/../lib/gcc/arm-openwrt-linux-uclibcgnueabi/4.6.3/../../../..&&/arm-openwrt-linux-uclibcgnueabi/sys-include/string.h:130:14: note: expected 'const char *' but argument is& &of type 'unsigned char *'
sata.c: In function 'sata_get_temperature':
sata.c:151:7: warning: cast increases required alignment of target type [-Wcast-align]
if arm-openwrt-linux-gcc -DLOCALEDIR=\&/usr/local/share/locale\& -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -I..& &-I../intl -I../intl& &-Wall -W -rdynamic -g -O2 -Wall -W -Wcast-align -MT hddtemp-satacmds.o -MD -MP -MF &.&&deps/hddtemp-satacmds.Tpo& \
&&-c -o hddtemp-satacmds.o `test -f 'satacmds.c' || echo './'`satacmds.c; \
then mv -f &.deps/hddtemp-satacmds.Tpo& &.deps/hddtemp-satacmds.Po&; \
else rm -f &.deps/hddtemp-satacmds.Tpo&; exit 1; \
satacmds.c: In function 'sata_fixstring':
satacmds.c:100:26: warning: cast increases required alignment of target type [-Wcast-align]
if arm-openwrt-linux-gcc -DLOCALEDIR=\&/usr/local/share/locale\& -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -I..& &-I../intl -I../intl& &-Wall -W -rdynamic -g -O2 -Wall -W -Wcast-align -MT hddtemp-scsi.o -MD -MP -MF &.deps&&/hddtemp-scsi.Tpo& \
&&-c -o hddtemp-scsi.o `test -f 'scsi.c' || echo './'`scsi.c; \
then mv -f &.deps/hddtemp-scsi.Tpo& &.deps/hddtemp-scsi.Po&; \
else rm -f &.deps/hddtemp-scsi.Tpo&; exit 1; \
scsi.c: In function 'scsi_model':
scsi.c:66:5: warning: pointer targets in passing argument 1 of 'strdup' differ in signedness [-Wpointer-sig&&n]
/home/shen/openwrt/OpenWrt-SDK-oxnas-for-linux-x86_64-gcc-4.6-linaro_uClibc-0.9.33.2/staging_dir/toolchain-&&arm_v6_gcc-4.6-linaro_uClibc-0.9.33.2_eabi/bin/../lib/gcc/arm-openwrt-linux-uclibcgnueabi/4.6.3/../../../..&&/arm-openwrt-linux-uclibcgnueabi/sys-include/string.h:130:14: note: expected 'const char *' but argument is& &of type 'unsigned char *'
if arm-openwrt-linux-gcc -DLOCALEDIR=\&/usr/local/share/locale\& -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -I..& &-I../intl -I../intl& &-Wall -W -rdynamic -g -O2 -Wall -W -Wcast-align -MT hddtemp-scsicmds.o -MD -MP -MF &.&&deps/hddtemp-scsicmds.Tpo& \
&&-c -o hddtemp-scsicmds.o `test -f 'scsicmds.c' || echo './'`scsicmds.c; \
then mv -f &.deps/hddtemp-scsicmds.Tpo& &.deps/hddtemp-scsicmds.Po&; \
else rm -f &.deps/hddtemp-scsicmds.Tpo&; exit 1; \
scsicmds.c: In function 'scsi_modeselect':
scsicmds.c:184:3: warning: pointer targets in passing argument 4 of 'scsi_command' differ in signedness [-W&&pointer-sign]
scsicmds.c:116:5: note: expected 'unsigned char *' but argument is of type 'char *'
scsicmds.c: In function 'scsi_smartDEXCPTdisable':
scsicmds.c:216:5: warning: pointer targets in passing argument 2 of 'scsi_modeselect' differ in signedness& &[-Wpointer-sign]
scsicmds.c:171:5: note: expected 'char *' but argument is of type 'unsigned char *'
if arm-openwrt-linux-gcc -DLOCALEDIR=\&/usr/local/share/locale\& -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -I..& &-I../intl -I../intl& &-Wall -W -rdynamic -g -O2 -Wall -W -Wcast-align -MT hddtemp-backtrace.o -MD -MP -MF &&&.deps/hddtemp-backtrace.Tpo& \
&&-c -o hddtemp-backtrace.o `test -f 'backtrace.c' || echo './'`backtrace.c; \
then mv -f &.deps/hddtemp-backtrace.Tpo& &.deps/hddtemp-backtrace.Po&; \
else rm -f &.deps/hddtemp-backtrace.Tpo&; exit 1; \
backtrace.c:171:2: warning: #warning &Backtracing is not supported for this architexture.& [-Wcpp]
if arm-openwrt-linux-gcc -DLOCALEDIR=\&/usr/local/share/locale\& -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -I..& &-I../intl -I../intl& &-Wall -W -rdynamic -g -O2 -Wall -W -Wcast-align -MT hddtemp-utf8.o -MD -MP -MF &.deps&&/hddtemp-utf8.Tpo& \
&&-c -o hddtemp-utf8.o `test -f 'utf8.c' || echo './'`utf8.c; \
then mv -f &.deps/hddtemp-utf8.Tpo& &.deps/hddtemp-utf8.Po&; \
else rm -f &.deps/hddtemp-utf8.Tpo&; exit 1; \
utf8.c:26:19: fatal error: iconv.h: No such file or directory
compilation terminated.
Makefile:508: recipe for target 'hddtemp-utf8.o' failed
make[2]: *** [hddtemp-utf8.o] Error 1
make[2]: Leaving directory '/home/shen/openwrt/hddtemp-0.3-beta15/src'
Makefile:228: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/shen/openwrt/hddtemp-0.3-beta15'
Makefile:181: recipe for target 'all' failed
make: *** [all] Error 2
utf8.c:26:19: fatal error: iconv.h: No such file or directory
自己看报错的内容
是缺少utf8.c iconv.h这两个文件的意思么?是的话要去哪找,放在哪里呢,谢谢。&
S沁雨寒S_风雪 发表于
utf8.c:26:19: fatal error: iconv.h: No such file or directory
自己看报错的内容
是缺少utf8.c iconv.h这两个文件的意思么?是的话要去哪找,放在哪里呢,谢谢。
Powered by}

我要回帖

更多关于 openwrt 修改内核源码 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信