按照新手指引搭建 ubuntu 开发环境,通过scons --menuconfig开启 mbedtls,并pkgs --update 下载mbedtls源码后,执行scons 编译失败。有没有大佬或者官方开发者支持下? 看报错事找到了sal目录下的sys/socket.h,没有去找lwip目录下的sys/socket.h。
查看更多
components\libc\compilers\common\sys\ioctl.h
scons --verbose看下 tls_net.o编译的时候的include的路径是否有上面的路径
存在两个sys/socket.h,目前看来没有依赖到lwip的头文件,但是这些定义是在lwip中的。
回到 顶部
发布 问题
分享 好友
手机 浏览
投诉 建议
回到 底部
arm-none-eabi-gcc -o build/packages/mbedtls-v2.7.10.1/ports/src/tls_net.o -c -march=armv7-a -marm -msoft-float -Wall -g -gdwarf-2 -O0 -DHAVE_CCONFIG_H -D__RTTHREAD__ -DRT_USING_NEWLIB -I. -Idrivers -Ipackages/mbedtls-v2.7.10.1/mbedtls/include -Ipackages/mbedtls-v2.7.10.1/ports/inc -Iapplications -I/mnt/hgfs/work_code/rtthread/rt-thread/include -I/mnt/hgfs/work_code/rtthread/rt-thread/libcpu/arm/common -I/mnt/hgfs/work_code/rtthread/rt-thread/libcpu/arm/cortex-a -I/mnt/hgfs/work_code/rtthread/rt-thread/components/libc/mmap -I/mnt/hgfs/work_code/rtthread/rt-thread/components/libc/termios -I/mnt/hgfs/work_code/rtthread/rt-thread/components/libc/aio -I/mnt/hgfs/work_code/rtthread/rt-thread/components/libc/pthreads -I/mnt/hgfs/work_code/rtthread/rt-thread/components/libc/compilers/gcc/newlib -I/mnt/hgfs/work_code/rtthread/rt-thread/components/libc/compilers/common -I/mnt/hgfs/work_code/rtthread/rt-thread/components/libc/signal -I/mnt/hgfs/work_code/rtthread/rt-thread/components/libc/getline -I/mnt/hgfs/work_code/rtthread/rt-thread/components/lwp -I/mnt/hgfs/work_code/rtthread/rt-thread/components/net/sal_socket/include -I/mnt/hgfs/work_code/rtthread/rt-thread/components/net/sal_socket/include/socket -I/mnt/hgfs/work_code/rtthread/rt-thread/components/net/sal_socket/impl -I/mnt/hgfs/work_code/rtthread/rt-thread/components/net/sal_socket/include/dfs_net -I/mnt/hgfs/work_code/rtthread/rt-thread/components/net/sal_socket/include/socket/sys_socket -I/mnt/hgfs/work_code/rtthread/rt-thread/components/net/netdev/include -I/mnt/hgfs/work_code/rtthread/rt-thread/components/net/lwip-2.1.2/src -I/mnt/hgfs/work_code/rtthread/rt-thread/components/net/lwip-2.1.2/src/include -I/mnt/hgfs/work_code/rtthread/rt-thread/components/net/lwip-2.1.2/src/arch/include -I/mnt/hgfs/work_code/rtthread/rt-thread/components/net/lwip-2.1.2/src/include/netif -I/mnt/hgfs/work_code/rtthread/rt-thread/components/drivers/include -I/mnt/hgfs/work_code/rtthread/rt-thread/components/drivers/spi -I/mnt/hgfs/work_code/rtthread/rt-thread/components/drivers/spi/sfud/inc -I/mnt/hgfs/work_code/rtthread/rt-thread/components/cplusplus -I/mnt/hgfs/work_code/rtthread/rt-thread/components/dfs/include -I/mnt/hgfs/work_code/rtthread/rt-thread/components/dfs/filesystems/elmfat -I/mnt/hgfs/work_code/rtthread/rt-thread/components/dfs/filesystems/devfs -I/mnt/hgfs/work_code/rtthread/rt-thread/components/dfs/filesystems/romfs -I/mnt/hgfs/work_code/rtthread/rt-thread/components/dfs/filesystems/ramfs -I/mnt/hgfs/work_code/rtthread/rt-thread/components/finsh -I/mnt/hgfs/work_code/rtthread/rt-thread/examples/utest/testcases/kernel packages/mbedtls-v2.7.10.1/ports/src/tls_net.c
packages/mbedtls-v2.7.10.1/ports/src/tls_net.c: In function 'net_would_block':
packages/mbedtls-v2.7.10.1/ports/src/tls_net.c:298:11: warning: implicit declaration of function 'fcntl' [-Wimplicit-function-declaration]
packages/mbedtls-v2.7.10.1/ports/src/tls_net.c:298:27: error: 'F_GETFL' undeclared (first use in this function)
tls_net.o中没有依赖 sys/ioctl.h吧