- 1. 概要
- 2. 状況
- 3. 対処
- 4. 参考サイト
1. 概要
2026年8月6日に発生。
「FreeBSD 15.1 RELEASE-p1」上でのことです。
2. 状況
事情がありまして。
cd /usr/ports/security/p5-Authen-Libwrap
make clean
make NO_DIALOG=yes
すると、下記で止まります。
===> License ART10 GPLv1+ accepted by the user
===> p5-Authen-Libwrap-0.23 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by p5-Authen-Libwrap-0.23 for building
===> Extracting for p5-Authen-Libwrap-0.23
=> SHA256 Checksum OK for Authen-Libwrap-0.23.tar.gz.
===> Patching for p5-Authen-Libwrap-0.23
===> Applying FreeBSD patches for p5-Authen-Libwrap-0.23 from /usr/ports/security/p5-Authen-Libwrap/files
===> p5-Authen-Libwrap-0.23 depends on package: p5-Module-Build>=0.4234 - found
===> p5-Authen-Libwrap-0.23 depends on package: perl5>=5.44.r<5.45 - found
===> Configuring for p5-Authen-Libwrap-0.23
Checking prerequisites...
build_requires:
! Test::Exception is not installed
ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions
of the modules indicated above before proceeding with this installation
Run 'Build installdeps' to install missing prerequisites.
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Authen-Libwrap' version '0.23'
===> Building for p5-Authen-Libwrap-0.23
Building Authen-Libwrap
Error: unrecognised line: '/ * EOF * /' in Libwrap.xs, line 32
(possible start of a truncated XSUB definition?)
*** Error code 1
Stop.
make: stopped making "all" in /usr/ports/security/p5-Authen-Libwrap
「Gemini」伍長に尋ねてみると。
Error: unrecognised line: '/ * EOF * /'
は。
Perl の XS(C言語とPerlを接続するコード)を変換するツール xsubpp は、関数の区切りなどを解析します。以前のバージョンでは末尾の /* EOF */ コメントを無視してくれていましたが、新しい Perl(5.40以降)の xsubpp ではこれを未知の関数構文の開始とみなしてエラーを吐くようになりました。末尾のコメントを削除・空行化することで正常にコンパイルが通るようになります。
ちゅうことだそうです。
よく理解できておりませんが・・・。
3. 対処
「Gemini」伍長の提案に沿って、何度か失敗しましたが。
最終的にうまくいったのは、次の手順です。
cd /usr/ports/security/p5-Authen-Libwrap
make clean
make extract
find work -name "Libwrap.xs" -exec sed -i '' -e 's/\/\* EOF \*\///g' {} +
make NO_DIALOG=yes
make reinstall
途中で、問題の発生しているファイルにパッチをあてて、「make」を通しています。
4. 参考サイト
本ページは、「Gemini」伍長を参考にさせていただきました。
|
|