0

I try to cross compile wpa_supplicant tool for a mips architecture, it uses interpreter ld-uClibc.so.0 (uClibc).

I type make command in wpa_supplicant-2.6/wpa_supplicant/, then it reported with error:

../src/utils/common.o: In function `hwaddr_masked_aton':
wpa_supplicant-2.6/wpa_supplicant/../src/utils/common.c:89: undefined reference to`__ctype_b'
../src/utils/wpa_debug.o: In function `_wpa_hexdump_ascii':
wpa_supplicant-2.6/wpa_supplicant/../src/utils/wpa_debug.c:480: undefined reference to`__ctype_b'

Can you tell me how to fix this thing?

This is my setup

  1. Compile libnl-1.1.3
./configure --host=mips-linux-gnu --prefix=/home/libnl
make
make install
  1. Compile openssl-1.1.1

./config no-asm no-async --cross-compile-prefix=mips-linux-gnu- --prefix=/home/ssl modify makefile: change "linux-x86_64" to "mips", remove "-m64",

make
make install
  1. Compile wpa_supplicant-2.6

modify defconfig:

   CC=mips-linux-gnu-gcc
   LDFLAGS = -L/home/libnl/lib -L/home/ssl/lib
   LDFLAGS += -muclibc 
   CFLAGS += -Os -I/home/libnl/include -I/home/ssl/include
   CFLAGS += -muclibc
   LIBS += -lssl
   LIBS += -L/home/jimmy/vda/tmp/ssl/lib

Then type comands:

cp -f defconfig .config
make
0andriy
  • 4,183
  • 1
  • 24
  • 37

0 Answers0