Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

when i try to install click i get this error #351

Closed
peterrz opened this issue Jun 25, 2017 · 3 comments
Closed

when i try to install click i get this error #351

peterrz opened this issue Jun 25, 2017 · 3 comments

Comments

@peterrz
Copy link

peterrz commented Jun 25, 2017

make
../../lib/error.cc: In static member function ‘static String ErrorHandler::vxformat(int, const char*, __va_list_tag*)’:
../../lib/error.cc:729:52: error: cannot convert ‘__va_list_tag**’ to ‘__va_list_tag (*)[1]’ in argument passing
strstore = item->hook(flags, VA_LIST_REF(val));
^
Makefile:68: recipe for target 'error.bo' failed
make[2]: *** [string.bo] Error 1
make[2]: Leaving directory /home/peter/openwrt/trunk/click/tools/lib'
make[1]: *** [lib] Error 2
make[1]: Leaving directory /home/peter/openwrt/trunk/click/tools '
make: *** [tools] Error 2

@tbarbette
Copy link
Collaborator

Could you provide the command, the ./configure line, more info about the environment ,etc?
Thanks

@peterrz
Copy link
Author

peterrz commented Jul 3, 2017

Hi,
When i Try run this config :
./configure --disable-app-fuzzer --disable-app-performance --disable-app-sniffer --enable-app-tunnel --disable-app-stats --disable-doc --disable-doc-man --enable-local --enable-userlevel --enable-wifi --host=mips-unknown-elf --build=mips --prefix=/home/peter/openwrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/ --with-linux=/home/peter/openwrt/trunk/build_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/linux

in processes of confining show me this error

Can't find Linux System.map file /nonexistent_file,
so I won't compile the linuxmodule driver.
(You may need the --with-linux=DIR and/or --with-linux-map=MAP options.)

@peterrz
Copy link
Author

peterrz commented Jul 9, 2017

problem was solved at #340 , add this code to lib/error.cc manually,
add them to line 726.

s = s2 + 1;
for (Conversion *item = error_items; item; item = item->next)
if (item->name.equals(s1, s2 - s1)) {
+#ifdef HAVE_VA_LIST_AS_ARRAY
+strstore = item->hook(flags, (va_list*) VA_LIST_REF(val));
+#else
strstore = item->hook(flags, VA_LIST_REF(val));
+#endif
s1 = strstore.begin();
s2 = strstore.end();
goto got_result;
link

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants