From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11782 invoked from network); 2 Sep 2022 00:26:53 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 2 Sep 2022 00:26:53 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1662078414; b=ML5CFwIH2POPUXGG4naaECLBuH0XddVZUNriTZbXt9TIazqRTCZYXrKbBwNxWfLKRZWaZVORiU wksKRR3FnWH3QRnQIC8z7/pcHWLXAUbr1YPqhfuq4XZi5sUxZqQ1UrYHz2OAuXfqMgyxSng0qJ N5Sk94hbV43w8dSMgrYPovqn9a97L3HQ44OkH0xbXELsseGGkBsezSlAwKi4QskhMUSYrFTqsI 1MDaaF00lYbOq8bm/FNC31pa0VfwCOXjRQ9vPynt4DSFlNPf3NmXgawLGZeKNQeAQF91aBtKAV ifoEqaMqPVUHh0Aenb+aJosM7ds6BDdERXXfgX6o4d8/5w==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1662078414; bh=cSn5GKCfCjxKFGWOBxQdA1yHW9XOtPNav92nivo4oBI=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version: Message-ID:Subject:To:From:Date:DKIM-Signature; b=r30/nA3uzt0CNN9gisuHPE8BDrjGFQHfcToABxFbEY+DmQd+FvNxk5B88eOHmrVwsthpD2wE26 WaFDym/OXZASlabDV03cSSSTQNpgp4xhy5HdUONBZukOWvu+PRJC3l5LSc/ecIzjzwGU3gDVHg s+8aFC/AGm73HeZJYAG1meLE0z+06Y3EIOKfvSCGPBXauZMAaANgMOCgrncxNbmarsszxQnkgD eilnGdTmtBacXNVS2WRBxCcqxccf4YK2cYDeEfoQELzXBIP+ZpuSvTWM459sK2GSwHWJugXrDO snhvYsKb11qLwaO5NSWfR3a6i+Kwu+YwCjsGBgrdpu4dZQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Subject:To:From:Date:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=ORcXnhizrhcQt8w3ZopURvGBLdST1aurxbSRyZzcIAk=; b=AxXUsBRFCqFlwrcWpJrQItUIlR RR3jzOwAR1LEaLlqf7WPvcEjwjyGGEHWYqGtXHlIrAVEKLpYX5kv7Pmu9QO56eXiWxK2XsM8s2yBk nKa4r1HTmeepKdEmr1hDD5uaWaXSkEZAroUA8AKvi3j+ilXJt7NPAN/wgme7OzQxDEYN2XvuorSmY DMiUyTm31VfUIep73gNQMx+GRV8LMimtnaUrP9jYGzjxa/4Mk4WNPspnMKglc/4UZcNruQgQuc5u9 xaVlEymq7hWqSKZPEUHIqsop6WIvtOWhhmI5hFMQLLYvz7UT+Rr63qCAoLjvgF5tw0hspKz5pqFrX 6bm0YyhQ==; Received: from authenticated user by zero.zsh.org with local id 1oTuWL-000MSl-BZ; Fri, 02 Sep 2022 00:26:53 +0000 Authentication-Results: zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none Received: from joooj.vinc17.net ([155.133.131.76]:47584) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1oTuW4-000M7a-Jp; Fri, 02 Sep 2022 00:26:37 +0000 Received: from smtp-zira.vinc17.net (128.119.75.86.rev.sfr.net [86.75.119.128]) by joooj.vinc17.net (Postfix) with ESMTPSA id 5AFA2378; Fri, 2 Sep 2022 02:26:36 +0200 (CEST) Received: by zira.vinc17.org (Postfix, from userid 1000) id 1B5682800192; Fri, 2 Sep 2022 02:26:36 +0200 (CEST) Date: Fri, 2 Sep 2022 02:26:36 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: --enable-pcre doesn't fail when not supported / zsh should switch to PCRE2 Message-ID: <20220902002636.GC1046913@zira.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.2.7+32 (d84696f2) vl-149028 (2022-08-22) X-Seq: 50565 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: I've configured zsh with ./configure --enable-pcre --prefix=$HOME/opt/zsh-dev but I get the following error: zira:~,2> zmodload zsh/pcre zsh: failed to load module `zsh/pcre': /home/vinc17/opt/zsh-dev/lib/zsh/5.9.0.1-dev/zsh/pcre.so: cannot open shared object file: No such file or directory In config.log: configure:6170: checking for pcre-config configure:6205: result: no [...] configure:6401: checking for pcre.h configure:6401: gcc -c -Wall -Wmissing-prototypes -O2 conftest.c >&5 conftest.c:95:10: fatal error: pcre.h: No such file or directory 95 | #include | ^~~~~~~~ compilation terminated. [...] configure:6401: result: no [...] configure:9995: checking for pcre_compile configure:9995: gcc -o conftest -Wall -Wmissing-prototypes -O2 conftest.c -ldl -lncursesw -lrt -lm -lc >&5 /usr/bin/ld: /tmp/cc9sU4eV.o: in function `main': conftest.c:(.text.startup+0x7): undefined reference to `pcre_compile' collect2: error: ld returned 1 exit status configure:9995: $? = 1 [...] /usr/bin/ld: /tmp/ccuULZbN.o: in function `main': conftest.c:(.text.startup+0x7): undefined reference to `pcre_study' collect2: error: ld returned 1 exit status configure:10001: $? = 1 [...] etc. So, first, the configure script should have failed because of the --enable-pcre option, meaning that one wants PCRE. Moreover, the current PCRE version is PCRE2, and zsh should switch to it. https://en.wikipedia.org/wiki/Perl_Compatible_Regular_Expressions says: In 2015 a fork of PCRE was released with a revised programming interface (API). The original software, now called PCRE1 (the 1.xx–8.xx series), has had bugs mended, but no further development. As of 2020, it is considered obsolete, and the current 8.45 release is likely to be the last. The new PCRE2 code (the 10.xx series) has had a number of extensions and coding improvements and is where development takes place. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)