Opened 6 years ago

Last modified 6 years ago

#56971 assigned defect

kerberos5 @1.16.1: configure: error: cannot find output from flex; giving up

Reported by: sealinglip Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.5.3
Keywords: Cc:
Port: kerberos5

Description

Hi, I tried to clean kerberos5 and install kerberos5 by the following commands:

sudo port clean kerberos5
sudo port install kerberos5

I got

Error: Failed to configure kerberos5, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_kerberos5/kerberos5/work/krb5-1.16.1/src/config.log
Error: Failed to configure kerberos5: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_kerberos5/kerberos5/main.log for details.
Error: rev-upgrade failed: Error rebuilding cyrus-sasl2

The information about my installation is: System Version: macOS 10.13.6 (17G65) Kernel Version: Darwin 17.7.0 Xcode: 9.4.1 MacPorts version: 2.5.2

Attachments (2)

config.log (84.7 KB) - added by sealinglip 6 years ago.
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_kerberos5/kerberos5/work/krb5-1.16.1/src/config.log
main.log (25.5 KB) - added by sealinglip 6 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_kerberos5/kerberos5/main.log

Download all attachments as: .zip

Change History (6)

Changed 6 years ago by sealinglip

Attachment: config.log added

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_kerberos5/kerberos5/work/krb5-1.16.1/src/config.log

Changed 6 years ago by sealinglip

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_kerberos5/kerberos5/main.log

comment:1 Changed 6 years ago by mf2k (Frank Schima)

Keywords: configure kerberos5 removed
Owner: set to ryandesign
Status: newassigned

In the future, please add the port maintainer(s) to Cc (port info --maintainers kerberos5), if any.

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

Summary: Failed to configure kerberos5kerberos5 @1.16.1: configure: error: cannot find output from flex; giving up
Version: 2.5.22.5.3

The error in the log is:

configure: error: cannot find output from flex; giving up

We have some prior reports of this error with other ports, including #55200, where the cause was never found, and #55152, where the user reported that they had Homebrew installed and uninstalling Homebrew solved the problem.

Do you have Homebrew installed? If so, try uninstalling it.

Do you have the MacPorts m4 port installed? The log shows /usr/bin/flex was used; this suggests to me that you do not have the MacPorts flex port installed, otherwise it would have been used. Try installing the flex port with sudo port install flex.

comment:3 in reply to:  2 ; Changed 6 years ago by sealinglip

I tried the second suggestion. After executed

sudo port install flex

, the problem is gone.

Thanks a lot!

Replying to ryandesign:

The error in the log is:

configure: error: cannot find output from flex; giving up

We have some prior reports of this error with other ports, including #55200, where the cause was never found, and #55152, where the user reported that they had Homebrew installed and uninstalling Homebrew solved the problem.

Do you have Homebrew installed? If so, try uninstalling it.

Do you have the MacPorts m4 port installed? The log shows /usr/bin/flex was used; this suggests to me that you do not have the MacPorts flex port installed, otherwise it would have been used. Try installing the flex port with sudo port install flex.

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

Replying to sealinglip:

I tried the second suggestion. After executed

sudo port install flex

, the problem is gone.

Thanks a lot!

You're welcome, though I don't understand why that worked. The build succeeded on our buildbot infrastructure, on all versions of macOS from 10.5–10.13, using macOS flex (not needing MacPorts flex). I wonder if something unique is wrong with macOS flex on your computer. Could you show me the output of this command:

/usr/bin/flex --version
Note: See TracTickets for help on using tickets.