libtool:版本不匹配错误。php8-pecl-zmq 软件包和 OpenWrt 22.03

libtool: Version mismatch error. php8-pecl-zmq package with OpenWrt 22.03

提问人:FLSill 提问时间:7/25/2023 更新时间:7/25/2023 访问量:36

问:

我目前在尝试从 OpenWrt 19.07 过渡到 OpenWrt 22.03 时遇到了一个问题。具体来说,我正在尝试使用 OpenWrt 22.03 构建一个名为 php8-pecl-zmq 的包。但是,在构建过程中,我遇到了以下错误:

/builder/openwrt-22.03/build_dir/target-mipsel_24kc_musl/pecl-php8/zmq-1.1.3/libtool: line 482: CDPATH: command not found
libtool: Version mismatch error. This is libtool 2.4.2, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4.2
libtool: and run autoconf again.
make[4]: *** [Makefile:209: zmq.lo] Error 63
make[4]: Leaving directory '/builder/openwrt-22.03/build_dir/target-mipsel_24kc_musl/pecl-php8/zmq-1.1.3'
make[3]: *** [Makefile:47: /builder/openwrt-22.03/build_dir/target-mipsel_24kc_musl/pecl-php8/zmq-1.1.3/.built] Error 2
make[3]: Leaving directory '/builder/openwrt-22.03/feeds/packages/lang/php8-pecl-zmq'
time: package/feeds/packages/php8-pecl-zmq/compile#0.08#0.01#0.09
ERROR: package/feeds/packages/php8-pecl-zmq failed to build.
make[2]: *** [package/Makefile:120: package/feeds/packages/php8-pecl-zmq/compile] Error 1
make[2]: Leaving directory '/builder/openwrt-22.03'
make[1]: *** [package/Makefile:114: /builder/openwrt-22.03/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/builder/openwrt-22.03'
make: *** [/builder/openwrt-22.03/include/toplevel.mk:230: world] Error 2

我想寻求帮助来解决这个问题。

以下是我正在使用的 Makefile 的详细信息:

# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.

include $(TOPDIR)/rules.mk

PECL_NAME:=zmq
PECL_LONGNAME:=PHP extension for ZeroMQ software library
PKG_VERSION:=1.1.3
PKG_RELEASE:=1
PKG_HASH:=c492375818bd51b355352798fb94f04d6828c6aeda41ba813849624af74144ce

PKG_NAME:=php8-pecl-zmq
PKG_SOURCE:=$(PECL_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://pecl.php.net/get/

define Package/php8-pecl-zmq
    TITLE:=PHP ZeroMQ Extension
endef

define Package/php8-pecl-zmq/description
    PHP ZeroMQ Extension description
endef


PKG_MAINTAINER:=Michael Heimpold <[email protected]>

PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE

PKG_BUILD_DIR:=$(BUILD_DIR)/pecl-php8/$(PECL_NAME)-$(PKG_VERSION)
PKG_BUILD_PARALLEL:=1

PKG_FIXUP:=autoreconf

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
include ../php8/pecl.mk

CONFIGURE_ARGS+= \
        --with-zmq=yes \
        --with-czmq=no

$(eval $(call PHP8PECLPackage,$(PECL_NAME),$(PECL_LONGNAME),+libzmq))
$(eval $(call BuildPackage,$(PKG_NAME)))

值得注意的是,我想强调的是,这个软件包的构建过程在OpenWrt 19.07中是成功的。关于如何解决此问题并使用 OpenWrt 22.03 成功构建 php8-pecl-zmq 软件包的任何指导或建议将不胜感激。

感谢您的支持。

makefile zeromq openwrt php-8 libtool

评论

0赞 John Bollinger 7/25/2023
当你说“包”时,你指的是OpenWrt的打包系统吗?因为从我所看到的,你所依赖的构建基础设施可能不是PHP本身附带的,但另一方面,我在OpenWrt的官方PHP包中没有看到。如果是第三方软件包(或您自己的自定义软件包),那么问题可能是我们几乎看不到的打包对于 OpenWrt 22.03 来说是不正确的。php8-pecl-zmq

答: 暂无答案