https://bz.apache.org/bugzilla/show_bug.cgi?id=66562
Bug ID: 66562
Summary: apxs does not respect slibtool
Product: Apache httpd-2
Version: 2.4.56
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Build
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 38536
--> https://bz.apache.org/bugzilla/attachment.cgi?id=38536&action=edit
Build fix workaround for mod_musicindex
When building a project that depends upon apxs it will call
/usr/lib/apache2/build/instdso.sh and then /usr/share/apr/build/libtool. This
is a problem when the user is also using slibtool as mixing and matching
libtool implementations is not going to work.
For example in an arbitrary example of mod_musicindex it will build the project
with slibtool and then fail during the install target because it calls
/usr/share/apr/build/libtool instead.
/usr/sbin/apxs -S
LIBEXECDIR="/var/tmp/portage/www-apache/mod_musicindex-1.4.1-r3/image/usr/lib/apache2/modules"
-i -n musicindex mod_musicindex.la
/usr/lib/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apr/build/libtool'
mod_musicindex.la
/var/tmp/portage/www-apache/mod_musicindex-1.4.1-r3/image/usr/lib/apache2/modules
/usr/share/apr/build/libtool --mode=install install mod_musicindex.la
/var/tmp/portage/www-apache/mod_musicindex-1.4.1-r3/image/usr/lib/apache2/modules/
libtool: install: install .libs/mod_musicindex.so
/var/tmp/portage/www-apache/mod_musicindex-1.4.1-r3/image/usr/lib/apache2/modules/mod_musicindex.so
libtool: install: install .libs/mod_musicindex.lai
/var/tmp/portage/www-apache/mod_musicindex-1.4.1-r3/image/usr/lib/apache2/modules/mod_musicindex.la
libtool: install: install .libs/libmod_musicindex.a
/var/tmp/portage/www-apache/mod_musicindex-1.4.1-r3/image/usr/lib/apache2/modules/libmod_musicindex.a
install: cannot stat '.libs/libmod_musicindex.a': No such file or directory
install-xattr: failed to stat
/var/tmp/portage/www-apache/mod_musicindex-1.4.1-r3/image/usr/lib/apache2/modules/libmod_musicindex.a:
No such file or directory
apxs:Error: Command failed with rc=65536
.
make[1]: *** [Makefile:766: install] Error 1
In this case simply using the default autotools install target works easily
enough, but perhaps it would be better if apxs allowed using slibtool when its
set?
Ideally it should be respected as part of the MAKEFLAGS env variable, for
example:
export MAKEFLAGS='LIBTOOL=rlibtool'
Where rlibtool should be the default slibtool symlink that correctly respects
the --enable/disable-shared/static flags as set in the libtool generated by
autotools.
As I don't know perl I would greatly appreciate any help that can be offered
here.
One of the bug reports made for Gentoo can be seen here.
https://bugs.gentoo.org/778566
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]