You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2023/04/09 19:22:09 UTC

[Bug 66562] New: apxs does not respect slibtool

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: bugs@httpd.apache.org
          Reporter: orbea@riseup.net
  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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 66562] apxs does not respect slibtool

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66562

--- Comment #1 from orbea@riseup.net ---
Created attachment 38537
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=38537&action=edit
mod_musicindex build log

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


[Bug 66562] apxs does not respect slibtool

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66562

Sam James <sa...@gentoo.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sam@gentoo.org

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


[Bug 66562] apxs does not respect slibtool

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66562

Michael Orlitzky <mi...@orlitzky.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |michael@orlitzky.com

--- Comment #2 from Michael Orlitzky <mi...@orlitzky.com> ---
This is a problem for PHP as well. I spent the day yesterday trying to simplify
the way we install PHP on Gentoo by using more of the upstream install targets.
But the PHP build system uses apxs to install mod_php, so I eventually ran into
this wall: when slibtool is used to build PHP, the call to apxs eventually
fails.

The alternative is to manually find and install the module (a libtool library),
which can be done, but is over-complicated because we have to worry about some
implementation details that libtool would otherwise handle for us. In that
regard it would be nice if we could just "make install" and have apxs do its
thing.

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