Opened 7 years ago

Closed 6 years ago

#56009 closed defect (worksforme)

aircrack-ng @1.2-rc4: error: unknown type name 'time_t'

Reported by: Stefanofr84 Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: Cc:
Port: aircrack-ng

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Fail to build aircrack-ng through macports

command executed: sudo port install aircrack-ng

Issue:

--->  Computing dependencies for aircrack-ng
--->  Building aircrack-ng
Error: Failed to build aircrack-ng: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_security_aircrack-ng/aircrack-ng/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port aircrack-ng failed

Attachments (1)

mainlog.rtf (457.3 KB) - added by Stefanofr84 7 years ago.
log

Download all attachments as: .zip

Change History (10)

Changed 7 years ago by Stefanofr84

Attachment: mainlog.rtf added

log

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

Description: modified (diff)
Keywords: aircrack-ng removed
Owner: set to ryandesign
Port: aircrack-ng added
Status: newassigned
Summary: Failed to build aircrack-ng: command execution failedaircrack-ng @1.2-rc4: error: unknown type name 'time_t'

That's strange:

:info:build In file included from memory.c:63:
:info:build ./common.h:86:15: error: unknown type name 'time_t'; did you mean 'size_t'?
:info:build void calctime(time_t t, float calc);
:info:build               ^~~~~~
:info:build               size_t

time_t is defined in time.h, which is #included in common.h.

The port builds for me on Sierra. I haven't tested on High Sierra yet.

comment:2 Changed 7 years ago by mf2k (Frank Schima)

Builds fine for me:

$ port -v installed aircrack-ng
The following ports are currently installed:
  aircrack-ng @1.2-rc4_0 (active) platform='darwin 17' archs='x86_64' date='2018-03-11T09:08:45-0600'

comment:3 Changed 7 years ago by Stefanofr84

maybe is an issue related to High Sierra? I can't figure it out why I come across this error...

comment:4 Changed 7 years ago by Stefanofr84

Cc: Stefanofr84 added

comment:5 in reply to:  3 ; Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: Stefanofr84 removed

Replying to Stefanofr84:

maybe is an issue related to High Sierra? I can't figure it out why I come across this error...

Obviously not, since Frank showed it built fine for him on High Sierra.

I did notice from your log that you don't appear to have Xcode installed; you only have the Xcode command line tools. Many ports can be built with only the command line tools, but maybe aircrack-ng is one of those that can't. Could you try installing Xcode 9.2 (and open it and agree to the license, and use xcode-select to select it), then sudo port clean aircrack-ng and try again?

comment:6 in reply to:  5 Changed 7 years ago by Stefanofr84

Hi Ryan,

thanks for your reply. I have checked and Xcode appears to be installed:

xcodebuild -version
Xcode 9.2
Build version 9C40b

I have also accepted the licence (sudo xcodebuild -license accept). Checking the log, I still see

:warn:main Xcode does not appear to be installed

I really do not understand why it still appear not to be installed...

Still, I have the same problem

Replying to ryandesign:

Replying to Stefanofr84:

maybe is an issue related to High Sierra? I can't figure it out why I come across this error...

Obviously not, since Frank showed it built fine for him on High Sierra.

I did notice from your log that you don't appear to have Xcode installed; you only have the Xcode command line tools. Many ports can be built with only the command line tools, but maybe aircrack-ng is one of those that can't. Could you try installing Xcode 9.2 (and open it and agree to the license, and use xcode-select to select it), then sudo port clean aircrack-ng and try again?

Last edited 7 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

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

What's the output of:

xcode-select -p

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

Do you see the same problem with aircrack-ng @1.2-rc5? (Run sudo port selfupdate to get it.)

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

Resolution: worksforme
Status: assignedclosed

Closing, since there was no reply to my question, and aircrack-ng @1.3 builds fine for us on OS X 10.8 Mountain Lion and later.

Note: See TracTickets for help on using tickets.