Error: undefined reference to '__swbuf'

Hi, today I have tried to compile a old android project (cocos2.2.6) and I have this error:

error: undefined reference to ‘__swbuf’

this is the paths:

NDK_ROOT = /Users/smallthing/Works/SDK/Android/ndk_r11b
COCOS2DX_ROOT = /Users/smallthing/Works/Smallthing/cocos2d-x-2.2.6/projects/GPRU/proj.android/…/…/…
APP_ROOT = /Users/smallthing/Works/Smallthing/cocos2d-x-2.2.6/projects/GPRU/proj.android/…
APP_ANDROID_ROOT = /Users/smallthing/Works/Smallthing/cocos2d-x-2.2.6/projects/GPRU/proj.android
/

can someone help me?

Regards!!

Stefano