I try to install BusyBox 1.20.2 on a embedded system with PowerPc. At first I want to try it with the default config.
So this are the commands
make defconfig
make
And this is the result:
ma-bash-3.2# make
CC miscutils/ubi_tools.o
miscutils/ubi_tools.c: In function 'ubi_tools_main':
miscutils/ubi_tools.c:137: error: 'UBI_DEV_NUM_AUTO' undeclared (first use in this function)
miscutils/ubi_tools.c:137: error: (Each undeclared identifier is reported only once
miscutils/ubi_tools.c:137: error: for each function it appears in.)
miscutils/ubi_tools.c:157: error: storage size of 'req' isn't known
miscutils/ubi_tools.c:165: error: 'UBI_IOCATT' undeclared (first use in this function)
miscutils/ubi_tools.c:157: warning: unused variable 'req'
miscutils/ubi_tools.c:171: error: 'UBI_IOCDET' undeclared (first use in this function)
make[1]: *** [miscutils/ubi_tools.o] Error 1
make: *** [miscutils] Error 2
How is it possible to solve that Error?
Can I disable this ubi_tool ? What effects will that have and how to do that?
Remove these lines in .config:
CONFIG_UBIATTACH=y
CONFIG_UBIDETACH=y
CONFIG_UBIMKVOL=y
CONFIG_UBIRMVOL=y
CONFIG_UBIRSVOL=y
CONFIG_UBIUPDATEVOL=y
you won't have support for ubifs.
Related
Source rpm used:- openssl-1.0.2f-1.fc23.src.rpm
For RHEL 6 , I can build openssl1.0.2f without any issues
But for RHEL 5, When I am running:-
rpmbuild -bb openssl.spec
Initially it ask for lksctp dependency which I have installed
lksctp-tools-1.0.6-3.el5.x86_64.rpm
lksctp-tools-devel-1.0.6-3.el5.x86_64.rpm
It gives me below error:-
_ENDIAN -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wa,--noexecstack -DPURIFY -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -c -o bss_dgram.o bss_dgram.c
bss_dgram.c: In function 'BIO_new_dgram_sctp':
bss_dgram.c:973: error: storage size of 'auth' isn't known
bss_dgram.c:992: error: 'SCTP_AUTH_CHUNK' undeclared (first use in this function)
bss_dgram.c:992: error: (Each undeclared identifier is reported only once
bss_dgram.c:992: error: for each function it appears in.)
bss_dgram.c:993: error: invalid application of 'sizeof' to incomplete type 'struct sctp_authchunk'
bss_dgram.c:1001: error: invalid application of 'sizeof' to incomplete type 'struct sctp_authchunk'
bss_dgram.c:1020: error: 'SCTP_LOCAL_AUTH_CHUNKS' undeclared (first use in this function)
bss_dgram.c:1029: error: dereferencing pointer to incomplete type
bss_dgram.c:1081: error: 'SCTP_PARTIAL_DELIVERY_POINT' undeclared (first use in this function)
bss_dgram.c:973: warning: unused variable 'auth'
bss_dgram.c: In function 'dgram_sctp_read':
bss_dgram.c:1225: error: 'SCTP_SENDER_DRY_EVENT' undeclared (first use in this function)
bss_dgram.c:1266: error: 'struct sctp_event_subscribe' has no member named 'sctp_sender_dry_event'
bss_dgram.c:1317: error: 'SCTP_PARTIAL_DELIVERY_POINT' undeclared (first use in this function)
bss_dgram.c:1358: error: 'SCTP_PEER_AUTH_CHUNKS' undeclared (first use in this function)
bss_dgram.c:1362: error: dereferencing pointer to incomplete type
bss_dgram.c: In function 'dgram_sctp_ctrl':
bss_dgram.c:1504: error: storage size of 'authkeyid' isn't known
bss_dgram.c:1558: error: invalid application of 'sizeof' to incomplete type 'struct sctp_authkeyid'
bss_dgram.c:1560: error: 'SCTP_AUTH_ACTIVE_KEY' undeclared (first use in this function)
bss_dgram.c:1566: error: invalid application of 'sizeof' to incomplete type 'struct sctp_authkey'
bss_dgram.c:1573: error: dereferencing pointer to incomplete type
bss_dgram.c:1579: error: dereferencing pointer to incomplete type
bss_dgram.c:1581: error: dereferencing pointer to incomplete type
bss_dgram.c:1581: error: dereferencing pointer to incomplete type
bss_dgram.c:1581: error: dereferencing pointer to incomplete type
bss_dgram.c:1581: error: dereferencing pointer to incomplete type
bss_dgram.c:1584: error: 'SCTP_AUTH_KEY' undeclared (first use in this function)
bss_dgram.c:1593: error: invalid application of 'sizeof' to incomplete type 'struct sctp_authkeyid'
bss_dgram.c:1602: error: invalid application of 'sizeof' to incomplete type 'struct sctp_authkeyid'
bss_dgram.c:1612: error: invalid application of 'sizeof' to incomplete type 'struct sctp_authkeyid'
bss_dgram.c:1637: error: invalid application of 'sizeof' to incomplete type 'struct sctp_authkeyid'
bss_dgram.c:1659: error: 'SCTP_AUTH_DELETE_KEY' undeclared (first use in this function)
bss_dgram.c:1660: error: invalid application of 'sizeof' to incomplete type 'struct sctp_authkeyid'
bss_dgram.c:1504: warning: unused variable 'authkeyid'
bss_dgram.c: In function 'BIO_dgram_sctp_wait_for_dry':
bss_dgram.c:1782: error: 'struct sctp_event_subscribe' has no member named 'sctp_sender_dry_event'
bss_dgram.c:1834: error: 'SCTP_SENDER_DRY_EVENT' undeclared (first use in this function)
bss_dgram.c:1854: error: 'struct sctp_event_subscribe' has no member named 'sctp_sender_dry_event'
make[2]: *** [bss_dgram.o] Error 1
make[2]: Leaving directory `/root/openssl_102f_parashar/BUILD/openssl-1.0.2f/crypto/bio'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/root/openssl_102f_parashar/BUILD/openssl-1.0.2f/crypto'
make: *** [build_crypto] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.44794 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.44794 (%build)
Is this issue with code?
Any pointer on this area will be appreciated.
Thanks,
You almost answered it for yourself, I had the same problem and upgrading lksctp-tools (I used 1.0.16) solved the build issue.
In /lib/modules/xx.xx.xx-xx there is supposed to be two soft links one called source and one called build. The source one is there and its fine but the build one is missing and I have no idea where it is supposed to point to and I need to install a driver for my video card. Is there any way to find out where that is supposed to point if so how and where. I know there are a lot of other questions out there but not of them actually discribe where they are supposed to be pointing in the end.
Updated the link and now it is having build errors that I can't fix because I can't even find the struct its talking about
make -C /lib/modules/3.16.0-4-amd64/build M=/home/gibsont/gpuTempDriver modules
make[1]: Entering directory '/usr/src/linux-headers-3.16.0-4-amd64'
Makefile:10: *** mixed implicit and normal rules: deprecated syntax
make[1]: Entering directory `/usr/src/linux-headers-3.16.0-4-amd64'
CC [M] /home/gibsont/gpuTempDriver/base.o
/home/gibsont/gpuTempDriver/base.c: In function ‘_rtl_init_mac80211’:
/home/gibsont/gpuTempDriver/base.c:319:6: error: ‘IEEE80211_HW_BEACON_FILTER’ undeclared (first use in this function)
IEEE80211_HW_BEACON_FILTER |
^
/home/gibsont/gpuTempDriver/base.c:319:6: note: each undeclared identifier is reported only once for each function it appears in
/home/gibsont/gpuTempDriver/base.c:349:4: error: ‘struct ieee80211_hw’ has no member named ‘channel_change_time’
hw->channel_change_time = 100;
^
/home/gibsont/gpuTempDriver/base.c: In function ‘rtl_action_proc’:
/home/gibsont/gpuTempDriver/base.c:858:32: error: ‘struct ieee80211_conf’ has no member named ‘channel’
rx_status.freq = hw->conf.channel->center_freq;
^
/home/gibsont/gpuTempDriver/base.c:859:32: error: ‘struct ieee80211_conf’ has no member named ‘channel’
rx_status.band = hw->conf.channel->band;
^
/home/gibsont/gpuTempDriver/base.c:861:25: error: ‘RX_FLAG_MACTIME_MPDU’ undeclared (first use in this function)
rx_status.flag |= RX_FLAG_MACTIME_MPDU;
^
/home/gibsont/gpuTempDriver/base.c: In function ‘rtl_beacon_statistic’:
/home/gibsont/gpuTempDriver/base.c:1132:2: error: implicit declaration of function ‘compare_ether_addr’ [-Werror=implicit-function-declaration]
if (compare_ether_addr(hdr->addr3, rtlpriv->mac80211.bssid))
^
/home/gibsont/gpuTempDriver/base.c: In function ‘rtl_send_smps_action’:
/home/gibsont/gpuTempDriver/base.c:1414:16: error: ‘struct <anonymous>’ has no member named ‘sta’
info->control.sta = sta;
^
/home/gibsont/gpuTempDriver/base.c:1415:24: error: ‘struct ieee80211_conf’ has no member named ‘channel’
info->band = hw->conf.channel->band;
^
cc1: some warnings being treated as errors
/usr/src/linux-headers-3.16.0-4-common/scripts/Makefile.build:262: recipe for target '/home/gibsont/gpuTempDriver/base.o' failed
make[4]: *** [/home/gibsont/gpuTempDriver/base.o] Error 1
/usr/src/linux-headers-3.16.0-4-common/Makefile:1350: recipe for target '_module_/home/gibsont/gpuTempDriver' failed
make[3]: *** [_module_/home/gibsont/gpuTempDriver] Error 2
Makefile:181: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.16.0-4-amd64'
Makefile:27: recipe for target 'all' failed
make: *** [all] Error 2
I copied it from the disk because it was a read only and placed it into my home directory.
I feel like this has become a whole new issues or possibly the link is wrong and is causing this issue.
this is mine:
2509142 lrwxrwxrwx 1 root root 37 Apr 24 15:02 build -> /usr/src/linux-headers-3.16.0-4-amd64
actually it's managed by package manager. I install linux headers using apt-get. I think you should do the same, unless you are advanced kernel developer.
i am trying to compile libcurl for arm (am-1808), the compilation works fine but when i try to build an application using libcurl, i got some errors, here are the steps i followed:
1.
./configure --host=arm-none-linux --build=i686-linux CFLAGS='-Os' --disable-ftp --disable-tftp --disable-ldap --disable-telnet --disable-dict --disable-ipv6 --disable-ares --disable-sspi --disable-cookies --disable-crypto-auth --without-libidn --without-ssl --without-zlib --without-libssh2 --without-gnutls --without-nss --without-ca-bundle --enable-smtp
2.
make
3.
sudo make install
Everything works fine up-to this step, but now on compiling a sample application i got these errors:
usama#ubuntu:~/Desktop/smtp$ arm-none-linux-gnueabi-gcc -o email smtp-multi.c -lcurl
smtp-multi.c:27:23: error: curl/curl.h: No such file or directory
smtp-multi.c:77: error: return type is an incomplete type
smtp-multi.c: In function 'tvnow':
smtp-multi.c:81: error: storage size of 'now' isn't known
smtp-multi.c:84: warning: 'return' with a value, in function returning void
smtp-multi.c: At top level:
smtp-multi.c:87: error: parameter 1 ('newer') has incomplete type
smtp-multi.c:87: error: parameter 2 ('older') has incomplete type
smtp-multi.c: In function 'main':
smtp-multi.c:95: error: 'CURL' undeclared (first use in this function)
smtp-multi.c:95: error: (Each undeclared identifier is reported only once
smtp-multi.c:95: error: for each function it appears in.)
smtp-multi.c:95: error: 'curl' undeclared (first use in this function)
smtp-multi.c:96: error: 'CURLM' undeclared (first use in this function)
smtp-multi.c:96: error: 'mcurl' undeclared (first use in this function)
smtp-multi.c:98: error: storage size of 'mp_start' isn't known
smtp-multi.c:105: error: 'CURL_GLOBAL_DEFAULT' undeclared (first use in this function)
smtp-multi.c:115: warning: assignment makes pointer from integer without a cast
smtp-multi.c:120: error: 'CURLOPT_URL' undeclared (first use in this function)
smtp-multi.c:121: error: 'CURLOPT_USERNAME' undeclared (first use in this function)
smtp-multi.c:122: error: 'CURLOPT_PASSWORD' undeclared (first use in this function)
smtp-multi.c:123: error: 'CURLOPT_READFUNCTION' undeclared (first use in this function)
smtp-multi.c:124: error: 'CURLOPT_MAIL_FROM' undeclared (first use in this function)
smtp-multi.c:125: error: 'CURLOPT_MAIL_RCPT' undeclared (first use in this function)
smtp-multi.c:126: error: 'CURLOPT_USE_SSL' undeclared (first use in this function)
smtp-multi.c:126: error: 'CURLUSESSL_ALL' undeclared (first use in this function)
smtp-multi.c:127: error: 'CURLOPT_SSL_VERIFYPEER' undeclared (first use in this function)
smtp-multi.c:128: error: 'CURLOPT_SSL_VERIFYHOST' undeclared (first use in this function)
smtp-multi.c:129: error: 'CURLOPT_READDATA' undeclared (first use in this function)
smtp-multi.c:130: error: 'CURLOPT_VERBOSE' undeclared (first use in this function)
smtp-multi.c:131: error: 'CURLOPT_SSLVERSION' undeclared (first use in this function)
smtp-multi.c:132: error: 'CURLOPT_SSL_SESSIONID_CACHE' undeclared (first use in this function)
smtp-multi.c:142: error: storage size of 'timeout' isn't known
smtp-multi.c:145: error: 'fd_set' undeclared (first use in this function)
smtp-multi.c:145: error: expected ';' before 'fdread'
smtp-multi.c:146: error: expected ';' before 'fdwrite'
smtp-multi.c:147: error: expected ';' before 'fdexcep'
smtp-multi.c:152: error: 'fdread' undeclared (first use in this function)
smtp-multi.c:153: error: 'fdwrite' undeclared (first use in this function)
smtp-multi.c:154: error: 'fdexcep' undeclared (first use in this function)
smtp-multi.c:180: error: invalid use of void expression
smtp-multi.c:180: error: type of formal parameter 1 is incomplete
smtp-multi.c:180: error: type of formal parameter 2 is incomplete
smtp-multi.c:181: warning: incompatible implicit declaration of built-in function 'fprintf'
smtp-multi.c:181: error: 'stderr' undeclared (first use in this function)
May be i did something wrong in the configuration while setting ./configure, any idea how can i get rid of these errors ?
regards
usama
There was problem in the configuration option, --host option was not correct, the correct argument for --host is arm-none-linux-gnueabi
so the correct configure command is (SSL should preferably be enabled).
./configure --host=arm-none-linux-gnueabi --build=i686-linux CFLAGS='-Os' --disable-ftp --disable-tftp --disable-ldap --disable-telnet --disable-dict --disable-ipv6 --disable-ares --disable-sspi --disable-cookies --disable-crypto-auth --without-libidn --without-zlib --without-libssh2 --without-gnutls --without-nss --without-ca-bundle --with-ssl=PATH --enable-smtp
NOTE:
Give path to OpenSSL in place of PATH in --with-ssl
I am getting following error while compiling webkit-gtk for directfb, any guess how to resolve it?
make[1]: Entering directory `/home/sunny/svn/iSense-E/trunk/stable/thirdp/src/webkit-1.2.0/WebKitBuild/Release'
/bin/mkdir -p ./.deps/DerivedSources
CC WebKitTools/GtkBonker/Programs_GtkBonker-GtkBonker.o
CXX WebKitTools/DumpRenderTree/gtk/Programs_DumpRenderTree-LayoutTestControllerGtk.o
../../WebKitTools/GtkBonker/GtkBonker.c:87:30: error: gdk/gdk-directfb.h: No such file or directory
../../WebKitTools/GtkBonker/GtkBonker.c:257: error: expected ‘)’ before ‘’ token
../../WebKitTools/GtkBonker/GtkBonker.c:287: error: expected ‘)’ before ‘’ token
../../WebKitTools/GtkBonker/GtkBonker.c:795: error: expected ‘)’ before ‘*’ token
../../WebKitTools/GtkBonker/GtkBonker.c: In function ‘sampleGTKApplicationInitialize’:
../../WebKitTools/GtkBonker/GtkBonker.c:814: error: ‘gp_f_gdkDirectFbSetInitializationParameters’ undeclared (first use in this function)
../../WebKitTools/GtkBonker/GtkBonker.c:814: error: (Each undeclared identifier is reported only once
../../WebKitTools/GtkBonker/GtkBonker.c:814: error: for each function it appears in.)
../../WebKitTools/GtkBonker/GtkBonker.c:814: error: ‘sampleGTKApplicationDirectFbSetInitializationParameters’ undeclared (first use in this function)
../../WebKitTools/GtkBonker/GtkBonker.c:815: error: ‘gp_f_gdkDirectFBCreateWindow’ undeclared (first use in this function)
../../WebKitTools/GtkBonker/GtkBonker.c:815: error: ‘al_gtkDirectFBCreateWindowHandler’ undeclared (first use in this function)
../../WebKitTools/GtkBonker/GtkBonker.c:816: error: ‘gp_f_gdkDirectFBDestroyWindow’ undeclared (first use in this function)
../../WebKitTools/GtkBonker/GtkBonker.c:816: error: ‘al_gtkDirectFBDestroyWindowHandler’ undeclared (first use in this function)
../../WebKitTools/GtkBonker/GtkBonker.c: In function ‘sampleGTKApplicationTerminate’:
../../WebKitTools/GtkBonker/GtkBonker.c:841: error: ‘gp_f_gdkDirectFbSetInitializationParameters’ undeclared (first use in this function)
make[1]: *** [WebKitTools/GtkBonker/Programs_GtkBonker-GtkBonker.o] Error 1
The include path given to your compiler doesn't have gdk/gdk-directfb.h.
Either it's not installed and you need to install DirectFB or the makefile needs to be told where to look for it by adding a -I/path/to/directory/containing/gdk/gdk-directfb.h to the CC command.
I want to use atomic API, and I include . I don't know how to use it! Thank you!
I have it in /usr/src/linux-headers-2.6.28-11/arch/x86/include/asm/atomic.h.
I also add -I/usr/src/linux-headers-2.6.28-11/arch/x86/include/ and -I/usr/src/linux-headers-2.6.28-11/include.
Some other errors is produced because of -DCONFIG_X86_32 and -D__KERNEL__ macro undefined.
Then I define the two macros,
some errors occurred:
/usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:600:37: error: "and" may not appear in macro parameter list
/usr/src/linux-headers-2.6.28-11/arch/x86/include/asm/processor.h:159:1: warning: "cache_line_size" redefined
/usr/src/linux-headers-2.6.28-11/include/linux/cache.h:64:1: warning: this is the location of the previous definition
/usr/src/linux-headers-2.6.28-11/include/linux/stddef.h:16: error: expected identifier before ‘false’
/usr/src/linux-headers-2.6.28-11/include/linux/stddef.h:16: error: expected `}' before ‘false’
/usr/src/linux-headers-2.6.28-11/include/linux/stddef.h:16: error: expected unqualified-id before ‘false’
/usr/src/linux-headers-2.6.28-11/include/linux/stddef.h:18: error: expected declaration before ‘}’ token
My system is ubuntu 9.04 running on Virtualbox3.0.
If you know where the file is on your HD, then you say gcc mySource.c -I/path/to/atomic
note that this assumes you include "atomic" directly. and not "some/path/atmomic.h"