adde88 / openwrt-useful-tools

A repo containing different tools compiled specifically for the Hak5 WiFi Pineapple MK6 and MK7.
237 stars 47 forks source link

Error reporting when compiling mdk4 in LEDE SDK environment #3

Closed Droid-MAX closed 5 years ago

Droid-MAX commented 6 years ago

image

image

image

image

mdk4/common.mak

When I comment out these three lines of code, I can successfully compile the ipk package.

Droid-MAX commented 6 years ago

The 155th line of the common.mak file of the mdk4 source code on github is no problem, but it will automatically become '-fno-stack-protector-strong' when compiled in lede sdk, eventually it is not supported. It caused compilation errors, and I didn't figure out why this was the case. However, there are two ways to solve the compiler error, one is to comment out lines 154 to 156, and the other is to manually change the '-fno-stack-protector-strong' of line 155 to '-fstack-protector-strong'. I recommend using the second option.