Opened 10 months ago

Last modified 8 months ago

#64135 new defect

grep +universal: configure: error: Cannot find a type to use in place of socklen_t

Reported by: jgrg (James Gilbert) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: monterey universal arm64 x86_64 Cc: hmeine (Hans Meine)
Port: grep

Description (last modified by ryandesign (Ryan Schmidt))

Installing "grep +universal" on my M1 Pro MacBook Pro (Monterey) fails at the configure stage:

:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_grep/grep/work/grep-3.7" && ./configure --prefix=/opt/local --disable-dependency-tracking --disable-silent-rules --program-prefix=g

If I run that failed configure command in the directory, it succeeds (exit 0).

I can install either the arm64 or x86_64 port without problems.

Attachments (2)

config.log (1.8 MB) - added by jgrg (James Gilbert) 10 months ago.
main.log (57.0 KB) - added by jgrg (James Gilbert) 10 months ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 10 months ago by ryandesign (Ryan Schmidt)

Description: modified (diff)

Please attach the main.log and config.log files from the failed attempt so that we can see how it failed.

Changed 10 months ago by jgrg (James Gilbert)

Attachment: config.log added

Changed 10 months ago by jgrg (James Gilbert)

Attachment: main.log added

comment:2 Changed 10 months ago by ryandesign (Ryan Schmidt)

Summary: Configure of grep +universal failsgrep +universal: configure: error: Cannot find a type to use in place of socklen_t

Among other things, the config.log says:

error: redefinition of '_OSSwapInt16'
_OSSwapInt16(
^

This is similar to #61858, #62013, and #62822. Per one of those, this may be a bug in gnulib. We should probably report it to the gnulib mailing list.

If you want to try a workaround, you could edit the grep Portfile and add the line PortGroup muniversal 1.0 below the PortSystem line.

comment:3 Changed 10 months ago by jgrg (James Gilbert)

Thanks Ryan, but adding PortGroup muniversal 1.0 it still fails at config.

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

Cc: hmeine added

Has duplicate #64598.

Note: See TracTickets for help on using tickets.