Bug 64252 - Upgrade PCRE to PCRE2
Summary: Upgrade PCRE to PCRE2
Status: REOPENED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.4-HEAD
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-21 06:18 UTC by 1.1.1998
Modified: 2022-05-24 19:12 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 1.1.1998 2020-03-21 06:18:57 UTC

    
Comment 1 Joe Orton 2022-04-04 07:20:58 UTC
This was done in r1898399
Comment 2 mpepito13 2022-05-24 19:12:06 UTC
Hello,

When I try to compile httpd 2.4.53 with pcre2, I have the following error :
gcc    -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10     -I. -I/Webserver/sources/httpd-2.4.53/os/unix -I/Webserver/sources/httpd-2.4.53/include -I/Webserver/sources/httpd-2.4.53/srclib/apr/include -I/Webserver/sources/httpd-2.4.53/srclib/apr-util/include -I/Webserver/ext/pcre2-10.40/include -I/Webserver/sources/httpd-2.4.53/modules/aaa -I/Webserver/sources/httpd-2.4.53/modules/cache -I/Webserver/sources/httpd-2.4.53/modules/core -I/Webserver/sources/httpd-2.4.53/modules/database -I/Webserver/sources/httpd-2.4.53/modules/filters -I/Webserver/sources/httpd-2.4.53/modules/ldap -I/Webserver/sources/httpd-2.4.53/modules/loggers -I/Webserver/sources/httpd-2.4.53/modules/lua -I/Webserver/sources/httpd-2.4.53/modules/proxy -I/Webserver/sources/httpd-2.4.53/modules/http2 -I/Webserver/sources/httpd-2.4.53/modules/session -I/Webserver/sources/httpd-2.4.53/modules/ssl -I/Webserver/sources/httpd-2.4.53/modules/test -I/Webserver/sources/httpd-2.4.53/server -I/Webserver/sources/httpd-2.4.53/modules/md -I/Webserver/sources/httpd-2.4.53/modules/arch/unix -I/Webserver/sources/httpd-2.4.53/modules/dav/main -I/Webserver/sources/httpd-2.4.53/modules/generators -I/Webserver/sources/httpd-2.4.53/modules/mappers  -c /Webserver/sources/httpd-2.4.53/server/buildmark.c
/Webserver/sources/httpd-2.4.53/srclib/apr/libtool --silent --mode=link gcc    -DSQLITE_ENABLE_COLUMN_METADATA=1       -o httpd  modules.lo buildmark.o -export-dynamic server/libmain.la modules/core/libmod_so.la modules/http/libmod_http.la server/mpm/event/libevent.la os/unix/libos.la -L/Webserver/ext/pcre2-10.40/lib -lpcre2-8     /Webserver/sources/httpd-2.4.53/srclib/apr-util/libaprutil-1.la -lexpat -liconv /Webserver/sources/httpd-2.4.53/srclib/apr/libapr-1.la -lpthread 
Undefined symbols for architecture x86_64:
  "_pcre_compile2", referenced from:
      _ap_regcomp in libmain.a(util_pcre.o)
  "_pcre_exec", referenced from:
      _ap_regexec_len in libmain.a(util_pcre.o)
  "_pcre_free", referenced from:
      _ap_regfree in libmain.a(util_pcre.o)
  "_pcre_fullinfo", referenced from:
      _ap_regcomp in libmain.a(util_pcre.o)
      _ap_regname in libmain.a(util_pcre.o)
  "_pcre_version", referenced from:
      _ap_pcre_version_string in libmain.a(util_pcre.o)
     (maybe you meant: _ap_hack_ap_pcre_version_string, _ap_pcre_version_string )
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [httpd] Error 1
make: *** [all-recursive] Error 1

(no error with pcre 8.45)

I use this configure :
./configure --prefix=/Webserver/ext/httpd-2.4.53 --with-pcre=/Webserver/ext/pcre2-10.40/bin/pcre2-config --with-ssl=/Webserver/ext/openssl-1.1.1h --with-included-apr --with-socache_shmcb --enable-setenvif --enable-rewrite --disable-a-lot-of-things

I'd like to find the source of the problem but I wouldn't know where to start…

Thanks
Arnaud