Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 860081 - www-apache/mod_fcgid-2.3.9-r2 - /.../sh: .../libtool: No such file or directory
Summary: www-apache/mod_fcgid-2.3.9-r2 - /.../sh: .../libtool: No such file or directory
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 903648 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-07-22 12:24 UTC by Toralf Förster
Modified: 2024-04-11 00:48 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,21.74 KB, text/plain)
2022-07-22 12:24 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,121.30 KB, application/x-bzip)
2022-07-22 12:24 UTC, Toralf Förster
Details
environment (environment,34.66 KB, text/plain)
2022-07-22 12:24 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,31.79 KB, application/x-bzip)
2022-07-22 12:24 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,741 bytes, application/x-bzip)
2022-07-22 12:24 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,11.01 KB, application/x-bzip)
2022-07-22 12:24 UTC, Toralf Förster
Details
www-apache:mod_fcgid-2.3.9-r2:20220722-095031.log (www-apache:mod_fcgid-2.3.9-r2:20220722-095031.log,4.67 KB, text/plain)
2022-07-22 12:24 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-07-22 12:24:46 UTC
too long lines were shrinked:

/bin/sh /usr/lib64/apache2/libtool --mode=compile x86_64-pc-linux-gnu-gcc    -pipe -march=native -fno-diagnostics-color -O2 -DFCGID_APXS_BUILD   -DLINUX -D_REENTRANT -D_GNU_SOURCE    -I/var/tmp/portage/www-apache/mod_fcgid-2.3.9-r2/work/mod_fcgid-2.3.9/modules/fcgid -I/var/tmp/portage/www-apache/mod
/bin/sh /usr/lib64/apache2/libtool --mode=compile x86_64-pc-linux-gnu-gcc    -pipe -march=native -fno-diagnostics-color -O2 -DFCGID_APXS_BUILD   -DLINUX -D_REENTRANT -D_GNU_SOURCE    -I/var/tmp/portage/www-apache/mod_fcgid-2.3.9-r2/work/mod_fcgid-2.3.9/modules/fcgid -I/var/tmp/portage/www-apache/mod
/bin/sh /usr/lib64/apache2/libtool --mode=compile x86_64-pc-linux-gnu-gcc    -pipe -march=native -fno-diagnostics-color -O2 -DFCGID_APXS_BUILD   -DLINUX -D_REENTRANT -D_GNU_SOURCE    -I/var/tmp/portage/www-apache/mod_fcgid-2.3.9-r2/work/mod_fcgid-2.3.9/modules/fcgid -I/var/tmp/portage/www-apache/mod
/bin/sh /usr/lib64/apache2/libtool --mode=compile x86_64-pc-linux-gnu-gcc    -pipe -march=native -fno-diagnostics-color -O2 -DFCGID_APXS_BUILD   -DLINUX -D_REENTRANT -D_GNU_SOURCE    -I/var/tmp/portage/www-apache/mod_fcgid-2.3.9-r2/work/mod_fcgid-2.3.9/modules/fcgid -I/var/tmp/portage/www-apache/mod
/bin/sh: /usr/lib64/apache2/libtool: No such file or directory
/bin/sh: /usr/lib64/apache2/libtool: No such file or directory
/bin/sh: /usr/lib64/apache2/libtool: No such file or directory

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-j4-20220711-180014

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.1.1 *
clang/llvm (if any):
clang version 14.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/14/bin
/usr/lib/llvm/14
14.0.6
Python 3.10.5
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.62.1 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.21.0 [icedtea-8]
2)	IcedTea JDK 3.16.0 [icedtea-bin-8]
3)	OpenJDK 17.0.3_p7 [openjdk-17]
4)	Eclipse Temurin JDK 11.0.15_p10 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.3_p7 [openjdk-bin-17]
6)	Eclipse Temurin JDK 8.332_p09 [openjdk-bin-8]
7)	Eclipse Temurin JRE 17.0.3_p7 [openjdk-jre-bin-17]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   icedtea-bin-8 
  [3]   openjdk-17 
  [4]   openjdk-bin-8 
  [5]   openjdk-bin-11 
  [6]   openjdk-bin-17  system-vm
  [7]   openjdk-jre-bin-17 

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:
  [1]   php7.4
  [2]   php8.0 *
  [3]   php8.1

  HEAD of ::gentoo
commit 8ccafa549f30d23bf56aa11b5a69de5628b7d20d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Jul 22 09:16:42 2022 +0000

    2022-07-22 09:16:41 UTC

emerge -qpvO www-apache/mod_fcgid
[ebuild  N    ] www-apache/mod_fcgid-2.3.9-r2
Comment 1 Toralf Förster gentoo-dev 2022-07-22 12:24:47 UTC
Created attachment 793169 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-07-22 12:24:48 UTC
Created attachment 793172 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2022-07-22 12:24:50 UTC
Created attachment 793175 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-07-22 12:24:51 UTC
Created attachment 793178 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-07-22 12:24:52 UTC
Created attachment 793181 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-07-22 12:24:53 UTC
Created attachment 793184 [details]
temp.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-07-22 12:24:54 UTC
Created attachment 793187 [details]
www-apache:mod_fcgid-2.3.9-r2:20220722-095031.log
Comment 8 Martin Kolleck 2023-02-10 13:40:51 UTC
I triggered this same failure when rebuilding world as suggested by news item 2023-01-01-hardening-fortify-assertions.

According to my logs, this package was last successfully built on 2022-02-26 when I updated from 2.3.9-r1 to 2.3.9-r2. www-servers/apache was at version 2.4.52 back then. It is at version 2.4.54-r7 now.

I installed 2.4.52 using a historic ebuild. This allowed me to install mod_fcgid, again. I tracked the problem to a change in /usr/lib64/apache2/build/config_vars.mk.

> --- 2.4.52/usr/lib64/apache2/build/config_vars.mk
> +++ 2.4.54/usr/lib64/apache2/build/config_vars.mk
> @@ -88,7 +88,7 @@
>  EXTRA_LIBS =
>  EXTRA_INCLUDES = -I$(includedir) -I. -I/usr/include/apr-1
>  INTERNAL_CPPFLAGS =
> -LIBTOOL = /usr/share/apr/build/libtool --silent
> +LIBTOOL = $(SHELL) $(top_builddir)/libtool
>  SHELL = /bin/sh
>  RSYNC = /usr/bin/rsync
>  SVN = /usr/bin/svn

The older version uses the libtool from apr instead of a non-existent file. Not applying www-servers/apache/files/apache-2.4.54-libtool.patch restores the original behaviour. The patch was introduced to solve #858836 so at this point I don't know how to go on, since I do not know what other implications there might be.
Comment 9 Toralf Förster gentoo-dev 2023-03-31 18:12:21 UTC
*** Bug 903648 has been marked as a duplicate of this bug. ***
Comment 10 orbea 2023-07-05 02:16:48 UTC
Regrettably my patch for apache breaks apxs in subtle ways which I have not known about until now, for example 'apxs -q LIBTOOL' is unable to print the path towards apr's libtool.

Removing the patch for now is probably the best course, www-apache/mod_fcgid has a build system that is not easy to workaround and who knows where else this is broken.
Comment 11 Larry the Git Cow gentoo-dev 2023-10-11 05:53:14 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=720178b72842ac243563e48541ae2e29aebd8af7

commit 720178b72842ac243563e48541ae2e29aebd8af7
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2023-10-11 05:52:27 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2023-10-11 05:52:27 +0000

    www-servers/apache: drop libtool patch
    
    The libtool patch we applied was causing issues for some modules.
    
    Closes: https://bugs.gentoo.org/860081
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 www-servers/apache/Manifest                |   1 +
 www-servers/apache/apache-2.4.57-r5.ebuild | 256 +++++++++++++++++++++++++++++
 2 files changed, 257 insertions(+)
Comment 12 Larry the Git Cow gentoo-dev 2023-10-11 05:54:15 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/apache.git/commit/?id=25a1eaafc964ef2e29cc663292a0bcddab7f43e5

commit 25a1eaafc964ef2e29cc663292a0bcddab7f43e5
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2023-10-11 05:48:11 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2023-10-11 05:54:04 +0000

    Drop 2.4 libtool patch
    
    Bug: https://bugs.gentoo.org/860081
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 2.4/patches/05_libtool.patch | 21 ---------------------
 1 file changed, 21 deletions(-)
Comment 13 Marc Schiffbauer gentoo-dev 2023-12-05 10:01:19 UTC
This bug just happened to me today. So assume its not yet fixed?

Workaround: ln -s /usr/bin/libtool /usr/lib64/apache2/libtool
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-05 10:14:25 UTC
(In reply to Marc Schiffbauer from comment #13)
> This bug just happened to me today. So assume its not yet fixed?
> 
> Workaround: ln -s /usr/bin/libtool /usr/lib64/apache2/libtool

with what version of apache?
Comment 15 Fabio Rossi 2023-12-05 13:33:21 UTC
I am facing the same problem with apache-2.4.57 (installed) vs www-apache/mod_fcgid-2.3.9-r2 (to be installed)
Comment 16 Fabio Rossi 2023-12-06 09:55:37 UTC
I have just realized that the libtool patch has been removed from apache with version 2.4.57-r5. After upgrading apache to that version I have merged mod_fcgid successfully.