Changes between Initial Version and Version 1 of Ticket #2599


Ignore:
Timestamp:
02/09/24 01:08:02 (10 months ago)
Author:
Maxim Dounin
Comment:

Compilation of nginx with PCRE2 is supported staring with nginx 1.21.5. And the NGX_PCRE macro is defined for both PCRE and PCRE2, see auto/lib/pcre/conf.

The gcc arguments as shown, notably -I/home/umarsam/projectwork/nginx/../pcre/src/include and -I /home/umarsam/projectwork/nginx/../pcre/prod/include, suggest you are doing something wrong with the configure arguments. Please show configure arguments you are using and configure output.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2599 – Description

    initial v1  
    88Getting the below compilation issues using the above configuration:
    99
     10{{{
    1011 make -f objs/Makefile
    1112gcc -c -fPIC -I/home/umarsam/projectwork/nginx/../pcre/src/include -I/home/umarsam/projectwork/nginx/../zlib/prod/include -I/home/umarsam/projectwork/nginx/../gd/prod/include -I/home/umarsam/projectwork/nginx/../openssl/prod/include -I.  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /home/umarsam/projectwork/nginx/../pcre/prod/include -I /home/umarsam/projectwork/nginx/../openssl/prod/include -I /home/umarsam/projectwork/nginx/../zlib/prod/include -I /home/umarsam/projectwork/gd/prod/include -I objs -I src/http -I src/http/modules -I src/http/v2 \
     
    160161  781 |             regex->name = value[last];
    161162      |                  ^~
    162 
     163}}}
    163164
    164165**************************************************************************
    165166After having a look in the code the below 2 structures causing this are defined in teh directives with PCRE only and not with PCRE2
    166167
     168{{{
    167169#if (NGX_PCRE)
    168170
     
    204206#endif
    205207
     208}}}
     209
    206210Could you please let me know if this is the right way of compiling or niginx1.24 does not support PCRE2 library on Ubuntu....
    207211