1 (edited by David_AusEngineer 2012-04-05 09:38:34)

Topic: Recent Make Error - hostapd-20120326.tar.bz2

I had some issues getting a fresh install to compile (trunk 31182 i think) and one thing i noticed is this file was not where the make was looking. Google found one here:

http://enduser.subsignal.org/~trondah/src/dl/hostapd-20101111.tar.bz2

i understand this change was made by nbd:  https://dev.openwrt.org/changeset/31080

I expect the file will download correctly soon but until then i hope that this helps any new people (like myself).

[s]Below is the last few lines but does not include the 404 - Not found error when attempting to download.[/s]

<REMOVED> i removed this code segment since it was useless see below.

Re: Recent Make Error - hostapd-20120326.tar.bz2

I don't see any hostapd related error in your log.

Re: Recent Make Error - hostapd-20120326.tar.bz2

could download the file in question
                     http://enduser.subsignal.org/~trondah/src/dl/hostapd-20101111.tar.bz2
without problem with good speed.

So Internet connection glitch ?

regards
3zl

"use  *search* or give me your  I*  so i can show you"

        mesh applications with batman-adv

4 (edited by David_AusEngineer 2012-04-04 12:27:41)

Re: Recent Make Error - hostapd-20120326.tar.bz2

Ok, i Remove the file i manualy download:
/home/david/openwrt/trunk/dl/hostapd-20120326.tar.bz2
then in trunk:
$make clean
i do:
$make menuconfig   (no changes needed apparently)
then:
$make V=99

so this is the error from just before the error seams to begin, after making,

touch /home/david/openwrt/trunk/staging_dir/target-mipsel_r2_uClibc-0.9.33/root-ramips/stamp/.firewall_installed
make[3]: Leaving directory `/home/david/openwrt/trunk/package/firewall'
make[3]: Entering directory `/home/david/openwrt/trunk/package/hostapd'
mkdir -p /home/david/openwrt/trunk/dl
--09:46:34--  http://mirror2.openwrt.org/sources/hostapd-20120326.tar.bz2
           => `-'
Resolving mirror2.openwrt.org... 46.4.11.11
Connecting to mirror2.openwrt.org|46.4.11.11|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
09:46:34 ERROR 404: Not Found.

Download failed.
--09:46:34--  http://downloads.openwrt.org/sources/hostapd-20120326.tar.bz2
           => `-'
Resolving downloads.openwrt.org... 78.24.191.177
Connecting to downloads.openwrt.org|78.24.191.177|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
09:46:35 ERROR 404: Not Found.

Download failed.
No more mirrors to try - giving up.
Checking out files from the git repository...
error: unknown option `recursive'
usage: git-clone [options] [--] <repo> [<dir>]

    -n, --no-checkout     don't create a checkout
    --bare                create a bare repository
    --naked               create a bare repository
    -l, --local           to clone from a local repository
    --no-hardlinks        don't use local hardlinks, always copy
    -s, --shared          setup as a shared repository
    --template ...        path to the template directory
    -q, --quiet           be quiet
    --reference ...       reference repository
    -o, --origin ...      use <name> instead of 'origin' to track upstream
    -u, --upload-pack ...
                          path to git-upload-pack on the remote
    --depth ...           create a shallow clone of that depth
    --use-separate-remote
                          compatibility, do not use
    --no-separate-remote  compatibility, do not use

make[3]: *** [/home/david/openwrt/trunk/dl/hostapd-20120326.tar.bz2] Error 129
make[3]: Leaving directory `/home/david/openwrt/trunk/package/hostapd'
make[2]: *** [package/hostapd/compile] Error 2
make[2]: Leaving directory `/home/david/openwrt/trunk'
make[1]: *** [/home/david/openwrt/trunk/staging_dir/target-mipsel_r2_uClibc-0.9.33/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/david/openwrt/trunk'
make: *** [world] Error 2
david@david-shed:~/openwrt/trunk$

i also used my browser and went here: http://downloads.openwrt.org/sources/

And found the latest version of what was needed was "hostapd-20111103.tar.bz2" but this is not compatible.

As ever, I hope this helps.

5 (edited by hnyman 2012-04-04 12:50:10)

Re: Recent Make Error - hostapd-20120326.tar.bz2

I looked to the current makefile of hostapd:
https://dev.openwrt.org/browser/trunk/package/hostapd/Makefile

And found that the source are supposed to be fetched with git from git://w1.fi/srv/git/hostap.git

You might make sure that your build system has a working modern git client. (The errors you received looked a bit like the git client rejects some parameters passed by the download command.)

Does 'make defconfig' or 'make prereq' give you any errors?

6 (edited by David_AusEngineer 2012-04-05 09:43:19)

Re: Recent Make Error - hostapd-20120326.tar.bz2

I checked and there is no errors from "make prereq" or "make defconfig"
i also checked out the latest trunk:

for info:
david@david-shed:~/openwrt/trunk$ git --version
git version 1.5.4.3
david@david-shed:~/openwrt/trunk$ svn update
At revision 31201.

I still have the file i downloaded manually and will use this.

7 (edited by hnyman 2012-04-05 10:34:54)

Re: Recent Make Error - hostapd-20120326.tar.bz2

David_AusEngineer wrote:

david@david-shed:~/openwrt/trunk$ git --version
git version 1.5.4.3

That looks really old. Probably from year 2008. Current git version is 1.7.9.x
Probably you need to update that in your buildhost, in order to be able to use all the parameters used in Openwrt scripts.

EDIT: git script used in Openwrt downloads has been modified in March: https://dev.openwrt.org/changeset/30967
Apparently that "recursive" option does not yet exist in your ancient git client.

I have created a ticket about adding a better git version check to the 'make prereq' script: https://dev.openwrt.org/ticket/11229

Re: Recent Make Error - hostapd-20120326.tar.bz2

@David
i m also getting same error since last 5 days
i tried to create image 4-5 times but got stuck at same place all the time
i checked my git version its 1.7.4.1
Error logs are

make[3]: Entering directory `/home/pramendra/r_d/new/openwrt/package/hostapd'
mkdir -p /home/pramendra/r_d/new/openwrt/dl
--2012-04-06 06:38:43--  http://mirror2.openwrt.org/sources/hostapd-20120326.tar.bz2
Resolving netmon.iitb.ac.in... 10.201.13.50
Connecting to netmon.iitb.ac.in|10.201.13.50|:80... connected.
Proxy request sent, awaiting response... 200 OK
Length: 1679455 (1.6M) [application/x-bzip2]
Saving to: `STDOUT'

     0K .......... .......... .......... .......... ..........  3%  127K 12s
    50K .......... .......... .......... .......... ..........  6%  377K 8s
   100K .......... .......... .......... .......... ..........  9%  379K 7s
   150K .......... .......... .......... .......... .......... 12%  383K 6s
   200K .......... .......... .......... .......... .......... 15%  384K 5s
   250K .......... .......... .......... .......... .......... 18% 1.20M 4s
   300K .......... .......... .......... .......... .......... 21%  521K 4s
   350K .......... .......... .......... .......... .......... 24%  190K 4s
   400K .......... .......... .......... .......... .......... 27% 57.6K 6s
   450K .......... .......... .......... .......... .......... 30% 96.4K 6s
   500K .......... .......... .......... .......... .......... 33%  372K 6s
   550K .......... .......... .......... .......... .......... 36%  197K 5s
   600K .......... .......... .......... .......... .......... 39%  379K 5s
   650K .......... .......... .......... .......... .......... 42%  195K 5s
   700K .......... .......... .......... .......... .......... 45%  374K 4s
   750K .......... .......... .......... .......... .......... 48%  228K 4s
   800K .......... .......... .......... .......... .......... 51%  291K 4s
   850K .......... .......... .......... .......... .......... 54%  374K 3s
   900K .......... .......... .......... .......... .......... 57%  379K 3s
   950K .......... .......... .......... .......... .......... 60%  299K 3s
  1000K .......... .......... .......... .......... .......... 64%  226K 3s
  1050K .......... .......... .......... .......... .......... 67%  391K 2s
  1100K .......... .......... .......... .......... .......... 70%  377K 2s
  1150K .......... .......... .......... .......... .......... 73%  379K 2s
  1200K .......... .......... .......... .......... .......... 76%  381K 2s
  1250K .......... .......... .......... .......... .......... 79%  378K 1s
  1300K .......... .......... .......... .......... .......... 82%  391K 1s
  1350K .......... .......... .......... .......... .......... 85%  380K 1s
  1400K .......... .......... .......... .......... .......... 88%  380K 1s
  1450K .......... .......... .......... .......... .......... 91%  390K 1s
  1500K .......... .......... .......... .......... .......... 94%  381K 0s
  1550K .......... .......... .......... .......... .......... 97%  381K 0s
  1600K .......... .......... .......... ..........           100%  315K=6.2s

2012-04-06 06:38:49 (263 KB/s) - written to stdout [1679455/1679455]

MD5 sum of the downloaded file does not match (file: 734ea8472342f143db611c9c79f603a9, requested: 2650d83c1d4649a5df9fe265f8a5775f) - deleting download.
--2012-04-06 06:38:49--  http://downloads.openwrt.org/sources/hostapd-20120326.tar.bz2
Resolving netmon.iitb.ac.in... 10.201.13.50
Connecting to netmon.iitb.ac.in|10.201.13.50|:80... connected.
Proxy request sent, awaiting response... 404 Not Found
2012-04-06 06:38:49 ERROR 404: Not Found.

Download failed.
No more mirrors to try - giving up.
Checking out files from the git repository...
w1.fi[0: 128.177.27.249]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)
Cloning into hostapd-20120326...
make[3]: *** [/home/pramendra/r_d/new/openwrt/dl/hostapd-20120326.tar.bz2] Error 128
make[3]: Leaving directory `/home/pramendra/r_d/new/openwrt/package/hostapd'
make[2]: *** [package/hostapd/compile] Error 2
make[2]: Leaving directory `/home/pramendra/r_d/new/openwrt'
make[1]: *** [/home/pramendra/r_d/new/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33/stamp/.package_compile] Error 2
make[1]: Leaving directory `/home/pramendra/r_d/new/openwrt'
make: *** [world] Error 2

Re: Recent Make Error - hostapd-20120326.tar.bz2

I think this little issue has been resolved:

after make menuconfig:

Checking 'python'... ok.
Checking 'wget'... ok.
Checking 'git'... failed.
Checking 'gnutar'... ok.
Checking 'svn'... ok.
Checking 'gnu-find'... ok.
Checking 'getopt-extended'... ok.
Checking 'non-root'... ok.

Build dependency: Please install git (git-core) v1.6.5 or later.

Prerequisite check failed. Use FORCE=1 to override.
make: *** [tmp/.prereq-build] Error 1

now i just need to update my git...

thanks guys.