Opened 9 years ago

Closed 4 years ago

Last modified 4 years ago

#47301 closed defect (fixed)

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

Reported by: jbwmyoung@… Owned by: ryandesign (Ryan Carsten 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@… 9 years ago.
Error log

Download all attachments as: .zip

Change History (9)

Changed 9 years ago by jbwmyoung@…

Attachment: main.log added

Error log

comment:1 Changed 9 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 9 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 8 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: stefan-prechtl@… added
Keywords: snowleopard leopard tiger added
Summary: aircrack-ng build failsaircrack-ng @1.2-rc1: Undefined symbols _strnlen _dprintf

Has duplicate #50932.

comment:4 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

comment:5 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

The upstream ticket has moved to https://github.com/aircrack-ng/aircrack-ng/issues/1682. The developers have closed it without fixing it, on the basis that Snow Leopard is old. They appear to be willing to accept a patch to fix the problem, if you or someone would like to provide them with one. There is an additional problem on Snow Leopard, filed as https://github.com/aircrack-ng/aircrack-ng/issues/1717, which has been similarly closed without a fix.

comment:6 in reply to:  5 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to ryandesign:

The upstream ticket has moved to https://github.com/aircrack-ng/aircrack-ng/issues/1682. The developers have closed it without fixing it, on the basis that Snow Leopard is old. They appear to be willing to accept a patch to fix the problem, if you or someone would like to provide them with one.

Fixed in [6629d980fa6cdd2d451e38751ba8bd89cde29117/macports-ports] by using the legacysupport portgroup.

There is an additional problem on Snow Leopard, filed as https://github.com/aircrack-ng/aircrack-ng/issues/1717, which has been similarly closed without a fix.

Fixed in [500cc2acef92ba899ac0e8486d69f1aac09d19a4/macports-ports] by blacklisting clang < 503.

comment:7 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

In fa4afc1440213f01b68e861608957048758dcf66/macports-ports (master):

aircrack-ng: Don't use dprintf on 10.6 or earlier

Closes: #47301

comment:8 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

In fa4afc1440213f01b68e861608957048758dcf66/macports-ports (dar, master, py38-reproject, revert-6945-rust-1.43.0, wireshark):

aircrack-ng: Don't use dprintf on 10.6 or earlier

Closes: #47301

Note: See TracTickets for help on using tickets.