Compiling DD-WRT

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3 ... 11, 12, 13, 14  Next
Author Message
Paint
DD-WRT User


Joined: 22 Jun 2015
Posts: 131

PostPosted: Tue Jul 07, 2015 15:10    Post subject: Reply with quote
Paint wrote:
I am trying to compile DD-WRT for my Netgear R8000, but I am having some issues compiling Zabbix.

Can someone please provide any clues to whats failing?

I have installed all of the requirements and libraries (or at least I think I do).

OS: openSUSE 13.2 x64
SVN: 27480
Router: Netgear R8000
Toolchain (6/22/15): toolchain-arm_cortex-a9_gcc-4.8-linaro_musl-1.1.5_eabi
Config: .config_northstar

Here is a link to the complete console log while I attempt to compile DD-WRT.

https://dl.dropboxusercontent.com/u/2020630/dd-wrt__20150703_1.txt


Any ideas?
Sponsor
Paint
DD-WRT User


Joined: 22 Jun 2015
Posts: 131

PostPosted: Tue Jul 14, 2015 13:33    Post subject: Reply with quote
Many of my issues were resolved by compiling various versions of automake into my 'pwd'/mroot/bin/ folder which I also add to my path variable after the toolchains directory.

http://ftp.gnu.org/gnu/automake/

Compile via:
./configure --prefix=/home/ddwrt/DEV/mroot
make
make install


linux-mr86:/home/ddwrt/DEV/mroot/bin # ls
aclocal
aclocal-1.14
aclocal-1.8
automake-1.11
automake-1.6
aclocal-1.10
aclocal-1.15
aclocal-1.9.6
automake-1.11.1
automake-1.7
aclocal-1.11
aclocal-1.6
automake
automake-1.14
automake-1.8
aclocal-1.11.1
aclocal-1.7
automake-1.10
automake-1.15
automake-1.9.6
sayan1989
DD-WRT Novice


Joined: 14 Aug 2014
Posts: 3

PostPosted: Wed Dec 23, 2015 7:14    Post subject: Re: common.js, removewhitespace & webgui Reply with quote
tsynik wrote:
nathulal wrote:

Can anyone else who has this working confirm this for me please?

Nope, removewhitespace is complete mess, which breaks other parts of the code too, not only common.js. So I disabled it completely in Makefile and WebUI is fine.



I disabled it too. But I am getting another issue in web user interface. In most of the pages, 'Save' button and 'Apply Settings' button are not working. The corresponding action is not triggered. Did you find any such issue? I checked it in firebug and found the following:

ReferenceError: to_submit is not defined

But 'to_submit' is defined.

Any help?

Thanks in advance.

Regards,
Sayan
tsynik
DD-WRT User


Joined: 18 Apr 2014
Posts: 151

PostPosted: Wed Dec 23, 2015 14:14    Post subject: Reply with quote
sayan1989 wrote:

I disabled it too. But I am getting another issue in web user interface. In most of the pages, 'Save' button and 'Apply Settings' button are not working. The corresponding action is not triggered. Did you find any such issue? I checked it in firebug and found the following:

ReferenceError: to_submit is not defined

But 'to_submit' is defined.

Any help?

Thanks in advance.

Regards,
Sayan


It's because of malformed code, generated by buggy httpd. You probably need this also:
https://github.com/tsynik/dd-wrt/commit/0a9a585cf7eaedc66f8299b769a8991bba731813

https://github.com/mirror/dd-wrt/commit/cafe83a8e97b3453c903f76f7478424997ea7b91
https://github.com/mirror/dd-wrt/commit/ac4ad07327dab916e293d7ed978ba8478cddca43

note the 1st commit. it must correlate with write4 version (recompile write4 binary before new build).

and check your js code (and language files) is not "optimized" too (doesn't compressed as single line mess in pages source), ex:

Code:

function create_wchannel1_auto(F) {
F.wl1_wchannel.length = 1;

F.wl1_wchannel[0] = new Option(share.auto);
F.wl1_wchannel[0].value = "0";
}


for languages, add
echo "NO_PROCESSLANGFILES=y" >> $DEVDIR/src/router/.config
to your buid script (check kromo/dd-wrt/Makefile).
labo
DD-WRT Guru


Joined: 30 Jan 2015
Posts: 581
Location: Texas, USA

PostPosted: Wed Dec 23, 2015 21:34    Post subject: Reply with quote
Paint wrote:
Im happy to report that I successfully setup an openSUSE 13.2 64bit installation via VirtualBox and installed all of the required libraries & dev packages to compile DD-WRT from SVN.

I would love to share the image to help others with the initial setup of the compile environment, but the VirtualBox image is around 72gb at the moment.

Should I create a torrent of the image or should I write up a quick how-to?


Paint, yes please. also a simple quick start guide with steps will greatly be appreciated. I would like to enter into this for my R8500
Thanks,
sayan1989
DD-WRT Novice


Joined: 14 Aug 2014
Posts: 3

PostPosted: Thu Dec 24, 2015 11:48    Post subject: Reply with quote
tsynik wrote:
sayan1989 wrote:

I disabled it too. But I am getting another issue in web user interface. In most of the pages, 'Save' button and 'Apply Settings' button are not working. The corresponding action is not triggered. Did you find any such issue? I checked it in firebug and found the following:

ReferenceError: to_submit is not defined

But 'to_submit' is defined.

Any help?

Thanks in advance.

Regards,
Sayan


It's because of malformed code, generated by buggy httpd. You probably need this also:
https://github.com/tsynik/dd-wrt/commit/0a9a585cf7eaedc66f8299b769a8991bba731813

https://github.com/mirror/dd-wrt/commit/cafe83a8e97b3453c903f76f7478424997ea7b91
https://github.com/mirror/dd-wrt/commit/ac4ad07327dab916e293d7ed978ba8478cddca43

note the 1st commit. it must correlate with write4 version (recompile write4 binary before new build).

and check your js code (and language files) is not "optimized" too (doesn't compressed as single line mess in pages source), ex:

Code:

function create_wchannel1_auto(F) {
F.wl1_wchannel.length = 1;

F.wl1_wchannel[0] = new Option(share.auto);
F.wl1_wchannel[0].value = "0";
}


for languages, add
echo "NO_PROCESSLANGFILES=y" >> $DEVDIR/src/router/.config
to your buid script (check kromo/dd-wrt/Makefile).


Hi tsynik,

Thanks a lot. It worked for me. I took the first commit and added NO_PROCESSLANGFILES=y in $DEVDIR/src/router/.config. Found no related issues so far.

Regards,
Sayan
tsynik
DD-WRT User


Joined: 18 Apr 2014
Posts: 151

PostPosted: Thu Dec 24, 2015 15:04    Post subject: Reply with quote
sayan1989 wrote:

Hi tsynik,

Thanks a lot. It worked for me. I took the first commit and added NO_PROCESSLANGFILES=y in $DEVDIR/src/router/.config. Found no related issues so far.

Regards,
Sayan


It's definitely a bugs in /etc/www generation, httpd output (maybe only with utf-8 translations) or/and outdated sources in svn (as it was earlier with webcomp for example), but devs are not agree. They always tell "it works on our builds so there's no bugs". But they not even tried to build from their public svn sources, because if they will then they get fw with broken UI and all mentioned issues Wink
PicMelter
DD-WRT Novice


Joined: 13 Jan 2016
Posts: 7

PostPosted: Mon Jan 18, 2016 10:39    Post subject: Reply with quote
Hello everyone,

I'm trying to build DD-WRT with the following configuration:

OS: Ubuntu 15.10 x64
SVN: 28806 to 28872
Router: Buffalo WZR-1750
Toolchain (6/22/15): toolchain-arm_cortex-a9_gcc-4.8-linaro_musl-1.1.5_eabi
Config: .config_northstar

At one point, while compiling glib20, make fails with this error:
Code:

make[5]: Entering directory '/home/ubuntu/DEV/src/router/glib20/libglib/glib'
  CCLD     gtester
/home/ubuntu/Toolchains/toolchain-arm_cortex-a9_gcc-4.8-linaro_musl-1.1.5_eabi/bin/../lib64/gcc/arm-openwrt-linux-muslgnueabi/4.8.3/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: warning: libiconv.so.2, needed by ./.libs/libglib-2.0.so, not found (try using -rpath or -rpath-link)
./.libs/libglib-2.0.so: undefined reference to `libiconv'
./.libs/libglib-2.0.so: undefined reference to `libiconv_open'
./.libs/libglib-2.0.so: undefined reference to `libiconv_close'
collect2: error: ld returned 1 exit status
Makefile:1447: recipe for target 'gtester' failed
make[5]: *** [gtester] Error 1


For the linking part it seems that it does the following:
Code:

ccache ccache arm-linux-uclibc-gcc -Wall -Wstrict-prototypes -Werror=declaration-after-statement -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format=2 -Werror=missing-include-dirs -Os -pipe -march=armv7-a -mcpu=cortex-a9 -mtune=cortex-a9 -msoft-float -mfloat-abi=soft -fno-caller-saves -std=gnu89 -D_GNU_SOURCE=1 -I/home/ubuntu/DEV/src/router/zlib -fPIC -Drpl_malloc=malloc -I/home/ubuntu/DEV/src/router/glib20/gettext/gettext-runtime/intl -I/home/ubuntu/DEV/src/router/glib20/libiconv/include -I/home/ubuntu/DEV/src/router/glib20/libffi/arm-unknown-linux-gnu/include -pthread -o .libs/gtester gtester.o  -L/home/ubuntu/DEV/src/router/glib20/libffi/arm-unknown-linux-gnu/.libs /home/ubuntu/DEV/src/router/glib20/libffi/arm-unknown-linux-gnu/.libs/libffi.a -L/home/ubuntu/DEV/src/router/glib20/libiconv/lib/.libs -L/home/ubuntu/DEV/src/router/glib20/gettext/gettext-runtime/intl/.libs -L/home/ubuntu/DEV/src/router/zlib -lpthread ./.libs/libglib-2.0.so /home/ubuntu/DEV/src/router/glib20/gettext/gettext-runtime/intl/.libs/libintl.so -pthread


The library libiconv.so.2 is indeed in the referenced directory and has been built correctly: I tried to work out this problem in the weekend but I cannot find out why is behaving like this.
There aren't any errors before this point so I'm assuming that I have all the necessary dependencies.

It seems similar to the problem that 'tsynik' had last year: any of you have any idea?

Thanks everyone

EDIT
I found out that explicitly adding the line
/home/ubuntu/DEV/src/router/glib20/libiconv/lib/.libs/libiconv.so.2
to the linker command actually solves the problem, I don't know why using the directory only doesn't works, for some reason the dependency isn't automatically resolved.

EDIT 2
after a little mod of glib.mk, adding
$(TOP)/glib20/libiconv/lib/.libs/libiconv.so.2 $(TOP)/zlib/libz.so.1 $(TOP)/zlib/libz.so $(TOP)/glib20/libglib/gmodule/.libs/libgmodule-2.0.so.0
I managed to compile a little bit more.

Now I'm stuck here:
Code:

 CC       libglib_2_0_la-gvariant.lo
  CC       libglib_2_0_la-gvariant-core.lo
  CC       libglib_2_0_la-gvariant-parser.lo
  CC       libglib_2_0_la-gvariant-serialiser.lo
  CC       libglib_2_0_la-gvarianttypeinfo.lo
  CC       libglib_2_0_la-gvarianttype.lo
  CC       libglib_2_0_la-gversion.lo
  CC       libglib_2_0_la-gwakeup.lo
  CC       libglib_2_0_la-gprintf.lo
  CC       libglib_2_0_la-glib-unix.lo
  CC       libglib_2_0_la-gthread-posix.lo
  CCLD     libglib-2.0.la
  CC       gtester.o
  CCLD     gtester
/usr/bin/ld: ./.libs/libglib-2.0.a(giounix.o): Relocations in generic ELF (EM: 40)
/usr/bin/ld: ./.libs/libglib-2.0.a(giounix.o): Relocations in generic ELF (EM: 40)
./.libs/libglib-2.0.a: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
Makefile:1447: recipe for target 'gtester' failed
make[5]: *** [gtester] Error 1
make[5]: Leaving directory '/home/ubuntu/DEV/src/router/glib20/libglib/glib'


I don't know if it's directly related to the mods I've done or with something else, every help is really appreciated, thanks to everyone.

EDIT 2
after a little mod of glib.mk, adding
$(TOP)/glib20/libiconv/lib/.libs/libiconv.so.2 $(TOP)/zlib/libz.so.1 $(TOP)/zlib/libz.so $(TOP)/glib20/libglib/gmodule/.libs/libgmodule-2.0.so.0
I managed to compile a little bit more.

Now I'm stuck here:
Code:

 CC       libglib_2_0_la-gvariant.lo
  CC       libglib_2_0_la-gvariant-core.lo
  CC       libglib_2_0_la-gvariant-parser.lo
  CC       libglib_2_0_la-gvariant-serialiser.lo
  CC       libglib_2_0_la-gvarianttypeinfo.lo
  CC       libglib_2_0_la-gvarianttype.lo
  CC       libglib_2_0_la-gversion.lo
  CC       libglib_2_0_la-gwakeup.lo
  CC       libglib_2_0_la-gprintf.lo
  CC       libglib_2_0_la-glib-unix.lo
  CC       libglib_2_0_la-gthread-posix.lo
  CCLD     libglib-2.0.la
  CC       gtester.o
  CCLD     gtester
/usr/bin/ld: ./.libs/libglib-2.0.a(giounix.o): Relocations in generic ELF (EM: 40)
/usr/bin/ld: ./.libs/libglib-2.0.a(giounix.o): Relocations in generic ELF (EM: 40)
./.libs/libglib-2.0.a: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
Makefile:1447: recipe for target 'gtester' failed
make[5]: *** [gtester] Error 1
make[5]: Leaving directory '/home/ubuntu/DEV/src/router/glib20/libglib/glib'


I don't know if it's directly related to the mods I've done or with something else, every help would be greatly appreciated, thanks to everyone.
tsynik
DD-WRT User


Joined: 18 Apr 2014
Posts: 151

PostPosted: Mon Jan 18, 2016 18:41    Post subject: Reply with quote
PicMelter wrote:

I don't know if it's directly related to the mods I've done or with something else, every help would be greatly appreciated, thanks to everyone.

You have two options:
1) switch to my repo. It's optimized for ubuntu and northstar platform, and have many useful mods, such as accelerated PPTP for WAN etc

https://github.com/tsynik/dd-wrt

2) update whole glib2 directory and it's subdirs to current release (2.47.1)
https://github.com/mirror/dd-wrt/commit/717656fd5c1c8b5926a55924223705ba62127688 (raw patch)
+
https://github.com/tsynik/dd-wrt/blob/master/src/router/rules/glib.mk (raw file)

try to buld after patch as make -f Makefile.northstar glib20-configure in router dir.
PicMelter
DD-WRT Novice


Joined: 13 Jan 2016
Posts: 7

PostPosted: Tue Jan 19, 2016 12:35    Post subject: Reply with quote
Hi tsynik,

first of all thanks for the reply.
I tried the two methods you told me but I've got bad results.
For the first one (using your fork) I got this results:

Code:

make[1]: Entering directory '/home/ubuntu/dd-wrt/dd-wrt/src/router/openssl'
make[1]: *** No targets specified and no makefile found. Stop.
make[1]: Leaving directory '/home/ubuntu/dd-wrt/dd-wrt/src/router/openssl'
rules/openssl.mk:58: recipe for target 'openssl' failed
make: *** [openssl] Error 2
DONE


For the 2nd, updating the glib20 dir I got this one:
Code:

echo ############################################################

echo # BUILD GETTEXT                                            #

echo ############################################################

make -C glib20/gettext clean all
make[1]: Entering directory '/home/ubuntu/DEV/src/router/glib20/gettext'
 cd . && /bin/bash /home/ubuntu/DEV/src/router/glib20/gettext/build-aux/missing automake-1.14 --gnu
configure.ac:25: error: version mismatch.  This is Automake 1.14.1,
configure.ac:25: but the definition used by this AM_INIT_AUTOMAKE
configure.ac:25: comes from Automake 1.15.  You should recreate
configure.ac:25: aclocal.m4 with aclocal and run automake again.
WARNING: 'automake-1.14' is probably too old.
         You should only need it if you modified 'Makefile.am' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'automake' program is part of the GNU Automake package:
         <http://www.gnu.org/software/automake>
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <http://www.gnu.org/software/autoconf>
         <http://www.gnu.org/software/m4/>
         <http://www.perl.org/>
Makefile:330: recipe for target 'Makefile.in' failed
make[1]: *** [Makefile.in] Error 1
make[1]: Leaving directory '/home/ubuntu/DEV/src/router/glib20/gettext'
rules/glib.mk:14: recipe for target 'glib20-configure' failed
make: *** [glib20-configure] Error 2


I even tried to use the glib20 folder in your repo using the master svn branch and the glib.mk you provided but I've got the same result: this is quite strange no?

EDIT
I even tried to do autoconf/autoreconf in the gettext directory but I've got this error while doing the configure stuff
Code:

/home/ubuntu/Toolchains/toolchain-arm_cortex-a9_gcc-4.8-linaro_musl-1.1.5_eabi/bin/../lib64/gcc/arm-openwrt-linux-muslgnueabi/4.8.3/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: warning: libgettextlib-0.19.4.so, needed by ./.libs/libgettextsrc.so, not found (try using -rpath or -rpath-link)
/home/ubuntu/Toolchains/toolchain-arm_cortex-a9_gcc-4.8-linaro_musl-1.1.5_eabi/bin/../lib64/gcc/arm-openwrt-linux-muslgnueabi/4.8.3/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: warning: libintl.so.8, needed by ./.libs/libgettextsrc.so, not found (try using -rpath or -rpath-link)
msgcmp-msgcmp.o: In function `usage':
msgcmp.c:(.text+0x58): undefined reference to `libintl_gettext'
msgcmp.c:(.text+0x80): undefined reference to `libintl_gettext'
msgcmp.c:(.text+0xa8): undefined reference to `program_name'
msgcmp-msgcmp.o: In function `match_domain.isra.0.constprop.1':
msgcmp.c:(.text+0x1f4): undefined reference to `libintl_gettext'
msgcmp.c:(.text+0x280): undefined reference to `libintl_gettext'
msgcmp.c:(.text+0x2ac): undefined reference to `libintl_gettext'
msgcmp.c:(.text+0x2cc): undefined reference to `libintl_gettext'
msgcmp.c:(.text+0x318): undefined reference to `rpl_error_message_count'
msgcmp-msgcmp.o: In function `compare':
msgcmp.c:(.text+0x3f0): undefined reference to `c_strstr'
msgcmp.c:(.text+0x420): undefined reference to `c_strncasecmp'
msgcmp.c:(.text+0x4fc): undefined reference to `c_strstr'
msgcmp.c:(.text+0x53c): undefined reference to `xmmalloca'
msgcmp.c:(.text+0x6d8): undefined reference to `libintl_gettext'
msgcmp.c:(.text+0x734): undefined reference to `libintl_ngettext'
msgcmp.c:(.text+0x748): undefined reference to `error'
msgcmp-msgcmp.o: In function `main':
msgcmp.c:(.text.startup+0x1c): undefined reference to `set_program_name'
msgcmp.c:(.text.startup+0x74): undefined reference to `libintl_bindtextdomain'
msgcmp.c:(.text.startup+0x88): undefined reference to `libintl_bindtextdomain'
msgcmp.c:(.text.startup+0x94): undefined reference to `libintl_textdomain'
msgcmp.c:(.text.startup+0xdc): undefined reference to `rpl_getopt_long'
msgcmp.c:(.text.startup+0x218): undefined reference to `libintl_gettext'
msgcmp.c:(.text.startup+0x228): undefined reference to `error'
msgcmp.c:(.text.startup+0x254): undefined reference to `rpl_error_print_progname'
msgcmp.c:(.text.startup+0x258): undefined reference to `maybe_print_progname'
msgcmp.c:(.text.startup+0x278): undefined reference to `close_stdout'
msgcmp.c:(.text.startup+0x294): undefined reference to `rpl_optarg'
msgcmp.c:(.text.startup+0x2a0): undefined reference to `rpl_optind'
msgcmp-msgl-fsearch.o: In function `message_fuzzy_index_alloc':
msgl-fsearch.c:(.text+0x54): undefined reference to `xmalloc'
msgl-fsearch.c:(.text+0x8c): undefined reference to `hash_init'
msgl-fsearch.c:(.text+0xa4): undefined reference to `xalloc_die'
msgl-fsearch.c:(.text+0x178): undefined reference to `hash_find_entry'
msgl-fsearch.c:(.text+0x1c8): undefined reference to `xrealloc'
msgl-fsearch.c:(.text+0x1fc): undefined reference to `hash_set_value'
msgl-fsearch.c:(.text+0x208): undefined reference to `xmalloc'
msgl-fsearch.c:(.text+0x228): undefined reference to `hash_insert_entry'
msgl-fsearch.c:(.text+0x28c): undefined reference to `hash_iterate_modify'
msgl-fsearch.c:(.text+0x2c0): undefined reference to `xrealloc'
msgl-fsearch.c:(.text+0x2f4): undefined reference to `xmalloc'
msgl-fsearch.c:(.text+0x394): undefined reference to `xrealloc'
msgcmp-msgl-fsearch.o: In function `message_fuzzy_index_search':
msgl-fsearch.c:(.text+0x47c): undefined reference to `hash_find_entry'
msgl-fsearch.c:(.text+0x4c4): undefined reference to `xalloc_die'
msgl-fsearch.c:(.text+0x4cc): undefined reference to `xmalloc'
msgcmp-msgl-fsearch.o: In function `message_fuzzy_index_free':
msgl-fsearch.c:(.text+0x7fc): undefined reference to `hash_iterate'
msgl-fsearch.c:(.text+0x818): undefined reference to `hash_destroy'
./.libs/libgettextsrc.so: undefined reference to `c_isalnum'
./.libs/libgettextsrc.so: undefined reference to `xcalloc'
./.libs/libgettextsrc.so: undefined reference to `xconcatenated_filename'
./.libs/libgettextsrc.so: undefined reference to `c_iscntrl'
./.libs/libgettextsrc.so: undefined reference to `term_ostream_create'
./.libs/libgettextsrc.so: undefined reference to `c_strcasecmp'
./.libs/libgettextsrc.so: undefined reference to `file_ostream_create'
./.libs/libgettextsrc.so: undefined reference to `multiline_warning'
./.libs/libgettextsrc.so: undefined reference to `term_styled_ostream_create'
./.libs/libgettextsrc.so: undefined reference to `c_isdigit'
./.libs/libgettextsrc.so: undefined reference to `gnu_basename'
./.libs/libgettextsrc.so: undefined reference to `multiline_error'
./.libs/libgettextsrc.so: undefined reference to `gcd'
./.libs/libgettextsrc.so: undefined reference to `fstrcmp_bounded'
./.libs/libgettextsrc.so: undefined reference to `freea'
./.libs/libgettextsrc.so: undefined reference to `u8_uctomb_aux'
./.libs/libgettextsrc.so: undefined reference to `styled_ostream_typeinfo'
./.libs/libgettextsrc.so: undefined reference to `locale_charset'
./.libs/libgettextsrc.so: undefined reference to `error_with_progname'
./.libs/libgettextsrc.so: undefined reference to `c_isprint'
./.libs/libgettextsrc.so: undefined reference to `fwriteerror'
./.libs/libgettextsrc.so: undefined reference to `c_isascii'
./.libs/libgettextsrc.so: undefined reference to `rpl_getline'
./.libs/libgettextsrc.so: undefined reference to `xmemdup'
./.libs/libgettextsrc.so: undefined reference to `html_styled_ostream_create'
./.libs/libgettextsrc.so: undefined reference to `u16_mbtouc_aux'
./.libs/libgettextsrc.so: undefined reference to `c_isxdigit'
./.libs/libgettextsrc.so: undefined reference to `xstrdup'
./.libs/libgettextsrc.so: undefined reference to `ulc_width_linebreaks'
./.libs/libgettextsrc.so: undefined reference to `c_isalpha'
./.libs/libgettextsrc.so: undefined reference to `c_isupper'
./.libs/libgettextsrc.so: undefined reference to `rpl_strstr'
./.libs/libgettextsrc.so: undefined reference to `fd_ostream_create'
./.libs/libgettextsrc.so: undefined reference to `libintl_dgettext'
./.libs/libgettextsrc.so: undefined reference to `u8_mbtouc_aux'
./.libs/libgettextsrc.so: undefined reference to `error_at_line'
./.libs/libgettextsrc.so: undefined reference to `c_tolower'
./.libs/libgettextsrc.so: undefined reference to `xasprintf'
./.libs/libgettextsrc.so: undefined reference to `rpl_memchr'
./.libs/libgettextsrc.so: undefined reference to `c_isspace'
collect2: error: ld returned 1 exit status
Makefile:2409: recipe for target 'msgcmp' failed
make[6]: *** [msgcmp] Error 1
make[6]: Leaving directory '/home/ubuntu/DEV/src/router/glib20/gettext/gettext-tools/src'
Makefile:2238: recipe for target 'all' failed
make[5]: *** [all] Error 2
tsynik
DD-WRT User


Joined: 18 Apr 2014
Posts: 151

PostPosted: Tue Jan 19, 2016 22:43    Post subject: Reply with quote
PicMelter wrote:
Hi tsynik,
first of all thanks for the reply.
I tried the two methods you told me but I've got bad results.

DD-WRT's build is tricky. You often need to configure some parts before others. For openssl, you need to produce Makefile by hand before build. Something like "make -f Makefile.northstar openssl-configure" in router dir (check your PATH already have musl bin dir). Also, for glib20, you need aclocal in dirs, where configs have outdated version. Try to only add && aclocal && to corresponding blocks and reconfigure again. I had such errors with dd-wrt's glib, but after updating to current, fix autoconf with aclocal (ex: cd /home/ubuntu/DEV/src/router/glib20/gettext/build-aux && aclocal) I got working libs. As last resort, you can try autoconf and autoreconf -ivf, but it can have side effects.
PicMelter
DD-WRT Novice


Joined: 13 Jan 2016
Posts: 7

PostPosted: Thu Jan 21, 2016 15:32    Post subject: Reply with quote
Hi tsynik,

thanks for the valuable information you gave me.
After a couple of days of swearing I've been able to build my first .trx image Smile

The build system is...mmm...a little bit complex but not in itself...the problem is that it fails after a lot of time because you haven't configured a module or you haven't a dependency installed...and other little problems like for usbip where you need to aclocal+autoconf+modify a couple of lines to make it work.

Here is my list of installed modules, I hope it will help other people trying to build dd-wrt:

rtpproxy gcc g++ binutils patch bzip2 flex bison make gettext unzip zlib1g-dev libc6 subversion ccache gengetopt texinfo groff help2man libtool libffi-dev libglib2.0-dev ncurses-dev gperf autopoint re2c libcurl4-gnutls-dev gawk cmake dia libtool-bin

and a couple of things I needed to do while compiling:

in src/router/mc2 -> autoreconf -ivf
cd /home/ubuntu/DEV/src/router/usbip
aclocal
autoconf
autoheader
touch compile

row 264 of /home/ubuntu/DEV/src/router/usbip/src/usbip_network.c
int sockfd = 0;
int ret = 0;

row 130 of /home/ubuntu/DEV/src/router/hostapd2/hostapd/Makefile
add
CFLAGS +=-I../../madwifi/include/sys
CFLAGS +=-I../../madwifi/include
CFLAGS +=-I../../madwifi/

I'm sorry but I don't remember all the stuff I've done but almost everything consists in running the
make -f Makefile.northstar "stuff"-configure, and you need to do it with a lot of packages.

Anyway, thanks a lot tsynik, really, you gave me the right direction to take.
NIXKnight
DD-WRT Novice


Joined: 24 Feb 2016
Posts: 4

PostPosted: Wed Feb 24, 2016 14:02    Post subject: Reply with quote
which toolchain should I use to compile DD-WRT for Linksys E2500? Following is the list of toolchains currently available in the archive:

toolchain-arm_cortex-a9+neon-vfpv4_gcc-5.2.0_musl-1.1.11_eabi
toolchain-arm_cortex-a9+neon_gcc-4.8-linaro_musl-1.1.2_eabi
toolchain-arm_cortex-a9+vfpv3_gcc-5.2.0_musl-1.1.11_eabi
toolchain-arm_cortex-a9_gcc-5.2.0_musl-1.1.11_eabi
toolchain-arm_mpcore+vfp_gcc-5.2.0_musl-1.1.11_eabi
toolchain-armeb_xscale_gcc-5.2.0_musl-1.1.11
toolchain-i386_i486_gcc-5.1.0_musl-1.1.10
toolchain-mips64_octeon_64_gcc-4.9-linaro_uClibc-0.9.33.2
toolchain-mips_34kc_gcc-5.2.0_musl-1.1.11
toolchain-mips_mips32_gcc-4.8-linaro_musl-1.1.6
toolchain-mipsel_1004kc+dsp_gcc-5.1.0_musl-1.1.10
toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2
toolchain-mipsel_3.3.6_BRCM24
toolchain-mipsel_4.1.1_BRCM24
toolchain-mipsel_74kc+dsp2_gcc-5.1.0_musl-1.1.9
toolchain-mipsel_gcc-linaro_uClibc-0.9.32
toolchain-mipsel_gcc4.1.2
toolchain-powerpc_8540_gcc-5.1.0_musl-1.1.10
toolchain-powerpc_e300c3_gcc-4.8-linaro_uClibc-0.9.33.2
toolchain-powerpc_gcc-4.6-linaro_uClibc-0.9.33
toolchain-x86_64_gcc-5.2.0_musl-1.1.11
PicMelter
DD-WRT Novice


Joined: 13 Jan 2016
Posts: 7

PostPosted: Thu Feb 25, 2016 14:42    Post subject: Reply with quote
Hi,

considering this info from the specs
'Broadcom BCM5357 chip rev 1 (MIPS 74K V4.9) '

I'm fairly sure you need to use this one
'toolchain-mipsel_74kc+dsp2_gcc-5.1.0_musl-1.1.9 '
NIXKnight
DD-WRT Novice


Joined: 24 Feb 2016
Posts: 4

PostPosted: Tue Mar 01, 2016 8:21    Post subject: Reply with quote
Using toolchain-mipsel_74kc+dsp2_gcc-5.1.0_musl-1.1.9.

I get an error during make -f Makefile.brcm3x configure.

The configure script for radvd fails with error code 77.

http://pastebin.com/K3UkMXmu <---- configure script output.
http://pastebin.com/ZEuHidGG <---- config.log for radvd.

I am using Debian Jessie. Any pointers would be helpful....

Thanks
Goto page Previous  1, 2, 3 ... 11, 12, 13, 14  Next Display posts from previous:    Page 12 of 14
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum