Jump to content


Photo
- - - - -

N00b compile error


  • Please log in to reply
6 replies to this topic

#1 tekio

tekio

    5(R1P7 |<1DD13

  • Binrev Financier
  • 1,082 posts
  • Gender:Male
  • Location:The Blue Nowhere

Posted 06 October 2009 - 01:32 AM

root@lightning:/usr/src/airbase-3.2/libs/libairware# make
g++ -I./include -O3 -fno-strict-aliasing  -c ./src/airware-radiotap.cpp -o airware-radiotap.o 
./src/airware-radiotap.cpp: In member function ‘bool radiotap_header::init(u_int8_t*)’:
./src/airware-radiotap.cpp:14: error: ‘memcpy’ was not declared in this scope
./src/airware-radiotap.cpp:20: error: ‘exit’ was not declared in this scope
./src/airware-radiotap.cpp: In member function ‘u_int32_t radiotap_header::retrieve_value(u_int32_t, u_int8_t*)’:
./src/airware-radiotap.cpp:67: error: ‘exit’ was not declared in this scope
./src/airware-radiotap.cpp:69: error: ‘memcpy’ was not declared in this scope
make: *** [airware-radiotap.o] Error 1
root@lightning:/usr/src/airbase-3.2/libs/libairware# 

Either I'm missing some libraries (or something) or it's broken, help? I don't really know C++, and vaguely know what memcpy does.

#2 Pan

Pan

    Gibson Hacker

  • Members
  • 94 posts
  • Location:Detroit

Posted 10 October 2009 - 08:47 AM

Either I'm missing some libraries (or something) or it's broken, help? I don't really know C++, and vaguely know what memcpy does.


You'll want to learn about includes and imports, as well as learn how to look up methods/constants/categories/etc. in documentation. For example, if you wanted to determine what the problem is in this case, you would look up which standard C headers contain "exit" and "memcpy". In this case, stdlib.h and string.h respectively. Then, you would check your code for those includes (e.g. "#include <stdlib.h>"). If the includes are there, then you can move on to looking at the code itself for formatting errors.

Again, it's important to learn to use documentation.

hope that helps.

#3 rainwater_stillicide

rainwater_stillicide

    SUP3R 31337 P1MP

  • Agents of the Revolution
  • 282 posts
  • Location:Scotland

Posted 10 October 2009 - 08:52 AM

just out of interest: did you run config before you ran make?

#4 tekio

tekio

    5(R1P7 |<1DD13

  • Binrev Financier
  • 1,082 posts
  • Gender:Male
  • Location:The Blue Nowhere

Posted 12 October 2009 - 01:21 AM

thanks for the replies:
It was configured before attempting to compile. Thanks for pointing me in the right direction Pan.

#5 tekio

tekio

    5(R1P7 |<1DD13

  • Binrev Financier
  • 1,082 posts
  • Gender:Male
  • Location:The Blue Nowhere

Posted 06 November 2009 - 08:49 PM

Just for anyone else whom has trouble compiling airbase or jc-wepcrack..... just compile with an older kernel, backtrack 3 worked like a charm.

#6 ldd

ldd

    the 0ne

  • Members
  • 1 posts
  • Country:
  • Gender:Not Telling
  • Location:Lisbon

Posted 10 October 2010 - 06:21 AM

just compile with an older kernel, backtrack 3 worked like a charm.

what do you mean by that? which kernel? 2.4? or just an older version of 2.6 ?

#7 tekio

tekio

    5(R1P7 |<1DD13

  • Binrev Financier
  • 1,082 posts
  • Gender:Male
  • Location:The Blue Nowhere

Posted 20 October 2010 - 09:37 PM


just compile with an older kernel, backtrack 3 worked like a charm.

what do you mean by that? which kernel? 2.4? or just an older version of 2.6 ?

Whichever kernel is included with BT3. I'm pretty sure it is an older version of 2.6.




BinRev is hosted by the great people at Lunarpages!