Opened 3 years ago

Last modified 11 months ago

#47301 new defect

aircrack-ng @1.2-rc1: Undefined symbols _strnlen _dprintf

Reported by: jbwmyoung@… Owned by: ryandesign (Ryan Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: snowleopard leopard tiger Cc: stefan-prechtl@…
Port: aircrack-ng

Description

I've been having some trouble installing aircrack.

The build fails, and I get the error: command execution failed The log file is attached.

I am running OSX 10.6.8. I have tried cleaning and updating the port tree.

Initially, I was trying to do it from source (instructions: http://www.aircrack-ng.org/doku.php?id=install_aircrack), but was running into all sorts of errors (e.g. endian.h missing, lots of @GOTOFFS in the sha1). I tried to debug with no success. I do have command line tools installed, and if I do a search I see multiple endian.h files on my computer.

Attachments (1)

main.log (40.4 KB) - added by jbwmyoung@… 3 years ago.
Error log

Download all attachments as: .zip

Change History (5)

Changed 3 years ago by jbwmyoung@…

Error log

comment:1 Changed 3 years ago by neverpanic (Clemens Lang)

  • Cc ryandesign@… openmaintainer@… removed
  • Owner changed from macports-tickets@… to ryandesign@…

openmaintainer is not a real email address and cannot be Cc'd.

The problem is

372	:info:build Undefined symbols:
373	:info:build   "_strnlen", referenced from:
374	:info:build       _is_filtered_essid in airodump-ng.o
375	:info:build       _get_ap_list_count in airodump-ng.o
376	:info:build       _dump_write_csv in airodump-ng.o
377	:info:build       _get_sta_list_count in airodump-ng.o
378	:info:build       _dump_write_kismet_csv in airodump-ng.o
379	:info:build       _dump_write_kismet_netxml in airodump-ng.o
380	:info:build       _dump_print in airodump-ng.o
381	:info:build       _dump_print in airodump-ng.o
382	:info:build       _dump_add_packet in airodump-ng.o
383	:info:build   "_dprintf", referenced from:
384	:info:build       _sighandler in airodump-ng.o
385	:info:build       _sighandler in airodump-ng.o
386	:info:build ld: symbol(s) not found

i.e. strnlen and dprintf are missing, presumably because 10.6.x's libc did not have them. strnlen is easy to fix, because it is easily implemented. Not sure the same thing holds for dprintf, though. If you want a quick fix, updating to a more recent version of OS X (for example one that still receives security updates) is advisable, but let's see what Ryan has to say on this.

comment:2 Changed 3 years ago by jbwmyoung@…

Thanks for the info. If at all possible, I'd like to avoid updating to a newer OS. However, I understand that it is possible that applications/ports will only support current OSs.

comment:3 Changed 21 months ago by ryandesign (Ryan Schmidt)

  • Cc stefan-prechtl@… added
  • Keywords snowleopard leopard tiger added
  • Summary changed from aircrack-ng build fails to aircrack-ng @1.2-rc1: Undefined symbols _strnlen _dprintf

Has duplicate #50932.

Note: See TracTickets for help on using tickets.