Skip to content

Instantly share code, notes, and snippets.

@txomon
Created October 29, 2015 14:41
Show Gist options
  • Save txomon/8cad55351685855511f3 to your computer and use it in GitHub Desktop.
Save txomon/8cad55351685855511f3 to your computer and use it in GitHub Desktop.
Openwrt AA compilation
root@3c0f8c6a25c9:/srv/attitude_adjustment# make menuconfig V=s
make[1]: Entering directory `/srv/attitude_adjustment/scripts/config'
zconf.tab.o: In function `zconflex':
zconf.tab.c:(.text+0x21c1): undefined reference to `kconf_id_lookup'
zconf.tab.c:(.text+0x2313): undefined reference to `kconf_id_lookup'
collect2: ld returned 1 exit status
make[1]: *** [conf] Error 1
make[1]: Leaving directory `/srv/attitude_adjustment/scripts/config'
make: *** [scripts/config/mconf] Error 2
@DomHsu
Copy link

DomHsu commented Dec 8, 2016

+++ scripts/config/lex.zconf.c_shipped 2016-12-08 10:03:48.421634710 +0800
--- scripts/config/lex.zconf.c_shipped 2014-12-11 21:24:44.000000000 +0800
@@ -934,7 +934,6 @@

/** The main scanner function which does all the work.
*/
+extern struct kconf_id * kconf_id_lookup (register const char *str, register unsigned int len);
YY_DECL
{
register yy_state_type yy_current_state;

@BharathTS007
Copy link

just use older OS (Ubuntu12x64)

@socketpair
Copy link

@DomHsu Huge thanks, that helps!

@chuskis
Copy link

chuskis commented Sep 19, 2020

Thank you @DomHsu!!!
Some #include <sys/sysmacros> for major and minor resolving in some files and your recommendation and I have been able to build my Padavan router firmware on Ubuntu 20.04LTS.

@karhulitos
Copy link

Thank you DomHsu. Same case as chuskis above ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment