Opened 3 years ago
Closed 21 months ago
#64135 closed defect (fixed)
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 Carsten 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)
Change History (7)
comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|
Changed 3 years ago by jgrg (James Gilbert)
Attachment: | config.log added |
---|
Changed 3 years ago by jgrg (James Gilbert)
comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Summary: | Configure of grep +universal fails → grep +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 3 years ago by jgrg (James Gilbert)
Thanks Ryan, but adding PortGroup muniversal 1.0
it still fails at config.
comment:4 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | hmeine added |
---|
Has duplicate #64598.
comment:5 Changed 21 months ago by kencu (Ken)
Resolution: | → fixed |
---|---|
Status: | new → closed |
[97cf17c350a02266e5a52316c808088d6a1126ff/macports-ports]
% port -v installed grep The following ports are currently installed: grep @3.8_1+universal requested_variants='+universal' platform='darwin 22' archs='arm64 x86_64' date='2023-01-04T11:44:40-0800'
Please attach the main.log and config.log files from the failed attempt so that we can see how it failed.