Just to let you know but if you are using Ubuntu 7.10 then you need to install the flex-old package because the newer one will cause the bird router package to fail to build since it doesn't like the parameters -s -B and -8 grouped together. It needs them seperated rather than as -sB8 as it is in the makefiles currently. I was going to patch it but unfortunately it seems there is more than one reference...
EDIT: It seems the new flex package was added upstream in debian etch. It went downstream to ubuntu then. I am going to try again by installing flex but I bet it will cause the same issue.
Last edited by shinji257 on Thu May 08, 2008 1:51; edited 1 time in total
Grr... Looks like it did an update behind my back. I'll have to setup my build environment all over again. This sucks. At this time I cannot do any new builds due to the following error that is occuring...
[snip]
On the other hand maybe I'll start trying to do this within a non-virtual environment I have been working on setting up.
Whoops! The above original text is due to a hardcoded location in the Makefile for the pptpd router package.
What if I just wanted to build new kernel modules for a particular release and not the entire firmware? For example, I would like to compile the rest of the iptables modules and then drop them and their required libraries into the most recent firmware. This would make upkeep much easier and I'd have to worry less about other compatibility issues.
I'm having trouble with some errors in the build process. For example, I get this one when I run ./install_normal.sh
Code:
mkdir: cannot create directory `../src/router/mipsel-uclibc/target/etc/config': No such file or directory
./sstrip/sstrip: ../src/router/mipsel-uclibc/target/bin/*: No such file or directory
There are other errors where "target/" is missing.
At the moment I am stuck. Any suggestions would be welcome.
i recompiled squashfs-tools
but i always get an error (think it is about cpu)
but i cant solve it !!!
/usr/bin/ld: cannot find -llzma
collect2: ld returned 1 exit status
make: *** [mksquashfs-lzma] Error 1
you need to edit a file in this direcotry
/home/dd-wrt/DD-WRT/src/squashfs-tools/lzma/C/7zip/Compress/LZMA_Lib/
vi the makefile and change the second line to this
CXX = g++ -03 -funroll-loops -03 -Wall
When rebuilding squashfs-tools I get the following error, and I haven't been able to track it down--
Code:
rm: cannot remove `mksquashfs-lzma': No such file or directory
cc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -funroll-loops -mtune=opteron -march=opteron -mfpmath=sse -m3dnow -msse2 -m64 -O3 -D_LZMA_PARAMS -c -o mksquashfs.o mksquashfs.c
mksquashfs.c:1: sorry, unimplemented: 64-bit mode not compiled in
mksquashfs.c:31:1: warning: "_LZMA_PARAMS" redefined
<command-line>: warning: this is the location of the previous definition
make: *** [mksquashfs.o] Error 1
cp: cannot stat `mksquashfs-lzma': No such file or directory
When rebuilding squashfs-tools I get the following error, and I haven't been able to track it down--
Code:
rm: cannot remove `mksquashfs-lzma': No such file or directory
cc -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -funroll-loops -mtune=opteron -march=opteron -mfpmath=sse -m3dnow -msse2 -m64 -O3 -D_LZMA_PARAMS -c -o mksquashfs.o mksquashfs.c
mksquashfs.c:1: sorry, unimplemented: 64-bit mode not compiled in
mksquashfs.c:31:1: warning: "_LZMA_PARAMS" redefined
<command-line>: warning: this is the location of the previous definition
make: *** [mksquashfs.o] Error 1
cp: cannot stat `mksquashfs-lzma': No such file or directory