nicholasoh / reaver-wps

Automatically exported from code.google.com/p/reaver-wps
0 stars 0 forks source link

Getting "ar" Error when executing make #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. ./configure worked fine
2. make throws error: ar: illegal option -- T
3. make exits with errors

What version of the product are you using? On what operating system?
reaver-1.1: subversion revision 16
ar --version: 2.18.0.20080103
Debian 2.6.26-2-686 #1 SMP Wed Sep 21 04:35:47 UTC 2011 i686 GNU/Linux

Please provide any additional information below.

Can't finish make. Getting following error:
(cd libwps && make)
make[1]: Entering directory `/home/reaver-wps-read-only/src/libwps'
make[1]: `libwps.o' is up to date.
make[1]: Leaving directory `/home/reaver-wps-read-only/src/libwps'
(cd utils && make)
make[1]: Entering directory `/home/reaver-wps-read-only/src/utils'
ar crT libutils.a base64.o common.o ip_addr.o radiotap.o trace.o uuid.o 
wpa_debug.o wpabuf.o os_unix.o eloop.o
ar: illegal option -- T
Usage: ar [emulation options] [-]{dmpqrstx}[abcfilNoPsSuvV] [member-name] 
[count] archive-file file...
       ar -M [<mri-script]
 commands:
  d            - delete file(s) from the archive
  m[ab]        - move file(s) in the archive
  p            - print file(s) found in the archive
  q[f]         - quick append file(s) to the archive
  r[ab][f][u]  - replace existing or insert new file(s) into the archive
  t            - display contents of archive
  x[o]         - extract file(s) from the archive
 command specific modifiers:
  [a]          - put file(s) after [member-name]
  [b]          - put file(s) before [member-name] (same as [i])
  [N]          - use instance [count] of name
  [f]          - truncate inserted file names
  [P]          - use full path names when matching
  [o]          - preserve original dates
  [u]          - only replace files that are newer than current archive contents
 generic modifiers:
  [c]          - do not warn if the library had to be created
  [s]          - create an archive index (cf. ranlib)
  [S]          - do not build a symbol table
  [v]          - be verbose
  [V]          - display the version number
  @<file>      - read options from <file>
 emulation options: 
  No emulation specific options
ar: supported targets: elf32-i386 a.out-i386-linux efi-app-ia32 elf32-little 
elf32-big elf64-x86-64 efi-app-x86_64 elf64-little elf64-big srec symbolsrec 
tekhex binary ihex trad-core
make[1]: *** [libutils.a] Error 1
make[1]: Leaving directory `/home/reaver-wps-read-only/src/utils'
make: *** [libutils] Error 2

I would appreciate any help, thank you.

Original issue reported on code.google.com by familygu...@googlemail.com on 30 Dec 2011 at 11:58

GoogleCodeExporter commented 8 years ago
Your version of ar (and Debian?) seem to be rather old. The code in the utils 
directory was taken from wpa_supplicant, so I'd suspect that the -T option 
should work in most systems. 

You can probably remove the -T option from the Makefile in the utils directory 
without issue though. See if you can build a working copy with this 
modification.

Original comment by cheff...@tacnetsol.com on 30 Dec 2011 at 2:42

GoogleCodeExporter commented 8 years ago
Thanks a lot for your help.
I did an upgrade of the package "binutils" and solved this problem that way.
Hope this helps others who have the same issue.

Btw very nice tool!

Original comment by familygu...@googlemail.com on 30 Dec 2011 at 4:09

GoogleCodeExporter commented 8 years ago
Had the same ar problem on BT3 Final. Removed -T option from /utils /tls and 
/crypto Makefile and everything worked fine. Thanks =D

Original comment by olli...@gmail.com on 30 Dec 2011 at 5:08

GoogleCodeExporter commented 8 years ago

Original comment by cheff...@tacnetsol.com on 31 Dec 2011 at 1:20

GoogleCodeExporter commented 8 years ago
Thanksss reintall "binutils" works :)

Original comment by seva...@gmail.com on 9 Jan 2012 at 8:38

GoogleCodeExporter commented 8 years ago
i can't find any -T option on /utils Makefile....can somebody help to post the 
-T option on the Makefile?How to remove?

Original comment by choont...@gmail.com on 21 Dec 2012 at 1:13

GoogleCodeExporter commented 8 years ago
You can work around it by modifying the Makefile:

Locate:
ARFLAGS.target ?= crsT

And change it to:
ARFLAGS.target ?= crs

Then locate:
ARFLAGS.host := crsT

And change it to:
ARFLAGS.host := crs

Original comment by aju...@gmail.com on 7 Jun 2013 at 2:04

GoogleCodeExporter commented 8 years ago
Thanks a million. Re-installed binutils 2.24 and resolved issue :)

Original comment by see...@gmail.com on 12 Mar 2014 at 7:07