Summary: | www-servers/nginx-1.21.6: fails to link with pcre2? | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Zdravko Spoljar <zdravko.spoljar> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | captaincrutches, gentoo, haven, hydrapolic, linder.gabriel, marcin.deranek, markgomersbach |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://github.com/gentoo/gentoo/pull/24436 https://bugs.gentoo.org/show_bug.cgi?id=850571 https://bugs.gentoo.org/show_bug.cgi?id=852953 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log upload |
Description
Zdravko Spoljar
2022-01-26 22:30:37 UTC
Pleas attach the full build.log. Created attachment 763688 [details]
build.log upload
according to this data: https://github.com/openresty/lua-nginx-module/issues/1984 how to add -lpcre in current ebuild? Same here : $ ebuild nginx-1.21.6.ebuild clean install [...] /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: objs/addon/src/ngx_http_lua_pcrefix.o: in function `ngx_http_lua_pcre_malloc_done': ngx_http_lua_pcrefix.c:(.text+0xfa): undefined reference to `pcre_malloc' /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: ngx_http_lua_pcrefix.c:(.text+0x108): undefined reference to `pcre_free' collect2: error: ld returned 1 exit status make[1]: *** [objs/Makefile:382: objs/nginx] Error 1 make: *** [Makefile:10: build] Error 2 This trick works : $ env EXTRA_ECONF="--with-ld-opt='-lpcre'" ebuild nginx-1.21.6.ebuild clean install [...] >>> Install www-servers/nginx-1.21.6 into /var/tmp/portage/www-servers/nginx-1.21.6/image make --jobs=8 --quiet DESTDIR=/var/tmp/portage/www-servers/nginx-1.21.6/image install >>> Completed installing www-servers/nginx-1.21.6 into /var/tmp/portage/www-servers/nginx-1.21.6/image * Final size of build directory: 22264 KiB (21.7 MiB) * Final size of installed tree: 3472 KiB ( 3.3 MiB) Same here Added sample patch (see linked MR) to address this. Had to drop naxsi from my module list as that requires pcre2, once that was done the example above worked for me: env EXTRA_ECONF="--with-ld-opt='-lpcre'" ebuild nginx-1.21.6-r1.ebuild clean install Thanks. The lua module only works with pcre, while nginx 1.21.5 switched to building with pcre2 by default. Ebuild for 1.23.0 now has a pcre2 USE flag that needs to be disabled for the lua module. |