openwrt / odhcp6c

This repository is a mirror of https://git.openwrt.org/?p=project/odhcp6c.git. It is for reference only and is not active for checks-ins or reporting issues; issues should be reported at: https://bugs.openwrt.org. Pull requests will be accepted which will be merged in odhcp6c.git
GNU General Public License v2.0
78 stars 84 forks source link

Cross compile for kind of OpenWRT can't work. #49

Closed Slzdude closed 8 years ago

Slzdude commented 8 years ago

I've found a problem while I'm compile the program.

/tmp/XiaoMi/odhcp6c/src/script.c: In function ‘s46_to_env’:
/tmp/XiaoMi/odhcp6c/src/script.c:272:2: warning: implicit declaration of function ‘open_memstream’ [-Wimplicit-function-declaration]
  FILE *fp = open_memstream(&str, &strsize);
  ^
/tmp/XiaoMi/odhcp6c/src/script.c:272:13: warning: initialization makes pointer from integer without a cast [enabled by default]
  FILE *fp = open_memstream(&str, &strsize);

After I checked the lib of my uclibc in toolchain, I found that the toolchain does not have the function... So what should I do now? The fmemopen, open_memstream, open_wmemstream can be use..Is there any other functions can replace them instead?

Slzdude commented 8 years ago

Well, I've solved the problem myself.. I recomplied the uClibc, and moved it the my openwrt...

lperkov commented 8 years ago

Thanks. Closing.