Author Topic: firmware modify kit can not build with "no makefile" error message  (Read 18390 times)

Offline jing

  • New
  • *
  • Posts: 1
Hi,

Could anyone help concerning an error when I was doing "./extract_firmware.sh firmwares/single.img ~/mod_firmware_work_directory/". Hereafter are contents in my extract.log file.

Code: [Select]
jyo@ubuntu:/mnt/hgfs/jyo/svn/firmware_mod_kit/firmware-mod-kit-read-only/trunk/trunk$ cat extract.log
make: Entering directory `/mnt/hgfs/jyo/svn/firmware_mod_kit/firmware-mod-kit-read-only/trunk/trunk/src'
make: *** No targets specified and no makefile found.  Stop.
make: Leaving directory `/mnt/hgfs/jyo/svn/firmware_mod_kit/firmware-mod-kit-read-only/trunk/trunk/src'


Below are contents of my src directory:

Code: [Select]
jyo@ubuntu:/mnt/hgfs/jyo/svn/firmware_mod_kit/firmware-mod-kit-read-only/trunk/trunk$ ls src/
addpattern.c   configure.ac  jffs2           others           squashfs-3.0-lzma-damn-small-variant  untrx.h
asustrx.c      cramfs-2.x    lzma            splitter3.cc     uncramfs                              webcomp-tools
binwalk-0.4.1  cramfsswap    Makefile.in     squashfs-2.1-r2  uncramfs-lzma                         wrt_vx_imgtool
configure      crcalc        motorola-bin.c  squashfs-3.0     untrx.cc


I do not modify anything after I svn check-outed...

Anyone could have any hints?

Thanks,
« Last Edit: May 28, 2012, 11:16:50 AM by hanemach_gt »

Offline KazzaMozz

  • New
  • *
  • Posts: 6
Re: firmware modify kit can not build with "no makefile" error message
« Reply #1 on: October 31, 2012, 12:00:40 AM »
Hi there
I am having the same issues in regards to
Mint 11 & 13 as well as Debian squeeze 32bit and 64bit
Commands I use via terminal at root with sudo

sudo aptitude install gcc g++ binutils patch bzip2 flex bison make gettext unzip  zlib1g-dev libc6 subversion
mkdir firmware_mod_kit
cd firmware_mod_kit
svn checkout http://firmware-mod-kit.googlecode.com/svn/trunk/ firmware-mod-kit-read-only
cd firmware-mod-kit-read-only/src/
./configure (all is happy )
make (seems to run but with loads of errors and then bam she doesn't work)

Below is the last bit from where the errors appear.  There are also a heap of warnings as well prior to these errors.

lzma_xz_wrapper.c:26:18: error: lzma.h: No such file or directory
lzma_xz_wrapper.c: In function ‘lzma_compress’:
lzma_xz_wrapper.c:46: error: ‘lzma_options_lzma’ undeclared (first use in this function)
lzma_xz_wrapper.c:46: error: (Each undeclared identifier is reported only once
lzma_xz_wrapper.c:46: error: for each function it appears in.)
lzma_xz_wrapper.c:46: error: expected ‘;’ before ‘opt’
lzma_xz_wrapper.c:47: error: ‘lzma_stream’ undeclared (first use in this function)
lzma_xz_wrapper.c:47: error: expected ‘;’ before ‘strm’
lzma_xz_wrapper.c:53: error: ‘LZMA_PRESET_EXTREME’ undeclared (first use in this function)
lzma_xz_wrapper.c:55: warning: implicit declaration of function ‘lzma_lzma_preset’
lzma_xz_wrapper.c:55: error: ‘opt’ undeclared (first use in this function)
lzma_xz_wrapper.c:64: warning: implicit declaration of function ‘lzma_alone_encoder’
lzma_xz_wrapper.c:64: error: ‘strm’ undeclared (first use in this function)
lzma_xz_wrapper.c:65: error: ‘LZMA_OK’ undeclared (first use in this function)
lzma_xz_wrapper.c:66: warning: implicit declaration of function ‘lzma_end’
lzma_xz_wrapper.c:75: warning: implicit declaration of function ‘lzma_code’
lzma_xz_wrapper.c:75: error: ‘LZMA_FINISH’ undeclared (first use in this function)
lzma_xz_wrapper.c:78: error: ‘LZMA_STREAM_END’ undeclared (first use in this function)
lzma_xz_wrapper.c: In function ‘lzma_uncompress’:
lzma_xz_wrapper.c:117: error: ‘lzma_stream’ undeclared (first use in this function)
lzma_xz_wrapper.c:117: error: expected ‘;’ before ‘strm’
lzma_xz_wrapper.c:121: warning: implicit declaration of function ‘lzma_alone_decoder’
lzma_xz_wrapper.c:121: error: ‘strm’ undeclared (first use in this function)
lzma_xz_wrapper.c:122: error: ‘LZMA_OK’ undeclared (first use in this function)
lzma_xz_wrapper.c:139: error: ‘LZMA_RUN’ undeclared (first use in this function)
lzma_xz_wrapper.c:149: error: ‘LZMA_FINISH’ undeclared (first use in this function)
lzma_xz_wrapper.c:152: error: ‘LZMA_STREAM_END’ undeclared (first use in this function)
make[3]: *** [lzma_xz_wrapper.o] Error 1
make[3]: Leaving directory `/root/firmware_mod_kit/firmware-mod-kit-read-only/src/others/squashfs-4.2/squashfs-tools'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/firmware_mod_kit/firmware-mod-kit-read-only/src/others/squashfs-4.2'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/firmware_mod_kit/firmware-mod-kit-read-only/src/others'
make: *** [all] Error 2


I can upload the full save of the install for whoever can help to fix this.

A fix would be greatly appreciated or is it just not compatible with debian of any sort ?
I have scrounged the internet for a fix for this but it seems there isn't one right now.  :(
Also it would be advantageous to actually list the required dependencies as from a post I finally found the easy way to do this as listed above.   < here >


cheers
KazzaMozz


« Last Edit: October 31, 2012, 12:06:16 AM by KazzaMozz »

Offline Jeremy Collake

  • Administrator
  • Member#
  • *****
  • Posts: 5411
  • Gender: Male
  • The Lasso
    • Bitsum
Re: firmware modify kit can not build with "no makefile" error message
« Reply #2 on: January 19, 2013, 12:42:43 PM »
Please submit to FMK Google code site... http://firmwaremodkit.org
Software Engineer. Bitsum LLC.