apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 61417] apr-util MUST NOT use buildflags of installed apr
Date Mon, 16 Apr 2018 16:55:40 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=61417

--- Comment #10 from Reindl Harald <h.reindl@thelounge.net> ---
that all because 3 depending projects can't leave the CFALGS of the prevvious
built ones in peace as every other library-package does 

if they only would support "--extra-cflags" and "-extra-ldflags" like ffmpeg
does and add that at the right end so that you can simply ovverride
-march/-mtune and be done


trying to package that stuff below /usr/local/lib64 just don't work because
--libdir=/usr/local/lib64 leads in all sort of problems for out-of-tree modules
like mod_dav_svn/mod_security linked against system apr

Apr 16 18:19:49 testserver httpd[76888]: httpd: Syntax error on line 10 of
/etc/httpd/conf/httpd.conf: Syntax error on line 4 of
/etc/httpd/conf/httpd-modules.conf: Syntax error on line 3 of
/etc/httpd/modsecurity.d/mod_security.conf: Cannot load
/usr/lib64/httpd/modules/mod_security2.so into server:
/usr/lib64/httpd/modules/mod_security2.so: undefined symbol:
apr_crypto_passphrase
____________________________

[root@testserver:~]$ ldd /usr/sbin/httpd
 linux-vdso.so.1 (0x00007ffdb6fce000)
 libpcre.so.1 => /lib64/libpcre.so.1 (0x00007fa9dcdcb000)
 libz.so.1 => /lib64/libz.so.1 (0x00007fa9dcbb4000)
 libaprutil-1.so.0 => /usr/local/lib64/libaprutil-1.so.0 (0x00007fa9dd14c000)
 libapr-1.so.0 => /usr/local/lib64/libapr-1.so.0 (0x00007fa9dd11b000)

[root@testserver:~]$ ldd /usr/lib64/httpd/modules/mod_security2.so
 linux-vdso.so.1 (0x00007fff98ff1000)
 libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f3698e7b000)
 libexpat.so.1 => /lib64/libexpat.so.1 (0x00007f3698c49000)
 libapr-1.so.0 => /lib64/libapr-1.so.0 (0x00007f36991ae000)
 libaprutil-1.so.0 => /lib64/libaprutil-1.so.0 (0x00007f3699186000)
____________________________

try to rebuild mod_security as long as apr-devel/apr-util-devel are installed
parallel to the new httpd-devel package fails

-I/usr/include/apr-1 -c acmp.c -o mod_security2_la-acmp.o >/dev/null 2>&1
In file included from re.h:42:0,
 from msc_util.h:29,
 from modsecurity.h:40,
 from msc_crypt.h:18,
 from msc_crypt.c:15:
apache2.h:18:10: fatal error: http_core.h: No such file or directory
 #include "http_core.h"
 ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:836: mod_security2_la-msc_crypt.lo] Error 1
In file included from re.h:42:0,
 from msc_util.h:29,
 from modsecurity.h:40,
 from msc_pcre.h:33,
 from msc_status_engine.h:22,
 from msc_status_engine.c:15:
apache2.h:18:10: fatal error: http_core.h: No such file or directory
 #include "http_core.h"
____________________________

rebukld mod_security without them fails too because "/usr/bin/apxs" has wrong
paths the files are below /usr/local/lib64/httpd/build

cannot open /usr/lib64/httpd/build/config_vars.mk: No such file or directory at
/usr/bin/apxs line 203.
cannot open /usr/lib64/httpd/build/config_vars.mk: No such file or directory at
/usr/bin/apxs line 203.
cannot open /usr/lib64/httpd/build/config_vars.mk: No such file or directory at
/usr/bin/apxs line 203.
cannot open /usr/lib64/httpd/build/config_vars.mk: No such file or directory at
/usr/bin/apxs line 203.
cannot open /usr/lib64/httpd/build/config_vars.mk: No such file or directory at
/usr/bin/apxs line 203.
cannot open /usr/lib64/httpd/build/config_vars.mk: No such file or directory at
/usr/bin/apxs line 203.
cannot open /usr/lib64/httpd/build/config_vars.mk: No such file or directory at
/usr/bin/apxs line 203.
cannot open /usr/lib64/httpd/build/config_vars.mk: No such file or directory at
/usr/bin/apxs line 203.
cannot open /usr/lib64/httpd/build/config_vars.mk: No such file or directory at
/usr/bin/apxs line 203.
cannot open /usr/lib64/httpd/build/config_vars.mk: No such file or directory at
/usr/bin/apxs line 203.
cannot open /usr/lib64/httpd/build/config_vars.mk: No such file or directory at
/usr/bin/apxs line 203.
cannot open /usr/lib64/httpd/build/config_vars.mk: No such file or directory at
/usr/bin/apxs line 203.
cannot open /usr/lib64/httpd/build/config_vars.mk: No such file or directory at
/usr/bin/apxs line 203.
cannot open /usr/lib64/httpd/build/config_vars.mk: No such file or directory at
/usr/bin/apxs line 203.
cannot open /usr/lib64/httpd/build/config_vars.mk: No such file or directory at
/usr/bin/apxs line 203.
checking for libpcre config script... /usr/bin/pcre-config
configure: using pcre v8.42
checking for libapr config script... no
configure: *** apr library not found.
configure: error: apr library is required
error: Bad exit status from /var/tmp/rpm-tmp.Eh5Etr (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.Eh5Etr (%build)
[builduser@testserver:/rpmbuild/SPECS]$ cat /usr/bin/apxs | grep config_vars.mk
get_config_vars("$installbuilddir/config_vars.mk",\%config_vars);

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message