Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 815265 - app-admin/apache-tools-2.4.48-r1: fails to build during libxcrypt transition (/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/ undefined reference to `crypt_r')
Summary: app-admin/apache-tools-2.4.48-r1: fails to build during libxcrypt transition ...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Apache Team - Bugzilla Reports
Depends on:
Blocks: 798963
  Show dependency tree
Reported: 2021-09-28 19:09 UTC by Sam James
Modified: 2021-12-29 01:51 UTC (History)
0 users

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

build.log (file_815265.txt,72.93 KB, text/plain)
2021-09-28 19:09 UTC, Sam James

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-28 19:09:17 UTC
Created attachment 741804 [details]

/usr/share/apr/build/libtool  --mode=link x86_64-pc-linux-gnu-gcc  -pthread  -march=core2 -freorder-blocks-and-partition -O2 -pipe      -Wl,-O1 -Wl,--as-needed -o htpasswd  htpasswd.lo passwd_common.lo       -laprutil-1 -lexpat -lapr-1 -luuid -lrt -lpthread -ldl -lcrypt
libtool: link: x86_64-pc-linux-gnu-gcc -pthread -march=core2 -freorder-blocks-and-partition -O2 -pipe -Wl,-O1 -o htdigest htdigest.o  -Wl,--as-needed -laprutil-1 -lexpat -lapr-1 -luuid -lrt -lpthread -ldl -pthread
/usr/share/apr/build/libtool  --mode=link x86_64-pc-linux-gnu-gcc  -pthread  -march=core2 -freorder-blocks-and-partition -O2 -pipe      -Wl,-O1 -Wl,--as-needed -o logresolve  logresolve.lo       -laprutil-1 -lexpat -lapr-1 -luuid -lrt -lpthread -ldl
libtool: link: x86_64-pc-linux-gnu-gcc -pthread -march=core2 -freorder-blocks-and-partition -O2 -pipe -Wl,-O1 -o httxt2dbm httxt2dbm.o  -Wl,--as-needed -laprutil-1 -lexpat -lapr-1 -luuid -lrt -lpthread -ldl -pthread
libtool: link: x86_64-pc-linux-gnu-gcc -pthread -march=core2 -freorder-blocks-and-partition -O2 -pipe -Wl,-O1 -o htdbm htdbm.o passwd_common.o  -Wl,--as-needed -laprutil-1 -lexpat -lapr-1 -luuid -lrt -lpthread -ldl -lcrypt -pthread
/usr/share/apr/build/libtool  --mode=link x86_64-pc-linux-gnu-gcc  -pthread  -march=core2 -freorder-blocks-and-partition -O2 -pipe      -Wl,-O1 -Wl,--as-needed -o rotatelogs  rotatelogs.lo       -laprutil-1 -lexpat -lapr-1 -luuid -lrt -lpthread -ldl
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/ undefined reference to `crypt_r'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:82: httxt2dbm] Error 1
make[1]: *** Waiting for unfinished jobs....
/usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.3.0/../../../../lib64/ undefined reference to `crypt_r'
libtool: link: x86_64-pc-linux-gnu-gcc -pthread -march=core2 -freorder-blocks-and-partition -O2 -pipe -Wl,-O1 -o htpasswd htpasswd.o passwd_common.o  -Wl,--as-needed -laprutil-1 -lexpat -lapr-1 -luuid -lrt -lpthread -ldl -lcrypt -pthread
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:44: htdigest] Error 1
libtool: link: x86_64-pc-linux-gnu-gcc -pthread -march=core2 -freorder-blocks-and-partition -O2 -pipe -Wl,-O1 -o logresolve logresolve.o  -Wl,--as-needed -laprutil-1 -lexpat -lapr-1 -luuid -lrt -lpthread -ldl -pthread
libtool: link: x86_64-pc-linux-gnu-gcc -pthread -march=core2 -freorder-blocks-and-partition -O2 -pipe -Wl,-O1 -o rotatelogs rotatelogs.o  -Wl,--as-needed -laprutil-1 -lexpat -lapr-1 -luuid -lrt -lpthread -ldl -pthread
make[1]: Leaving directory '/var/tmp/portage/app-admin/apache-tools-2.4.48-r1/work/httpd-2.4.48/support'
make: *** [/var/tmp/portage/app-admin/apache-tools-2.4.48-r1/work/httpd-2.4.48/build/ all-recursive] Error 1
make: Leaving directory '/var/tmp/portage/app-admin/apache-tools-2.4.48-r1/work/httpd-2.4.48/support'
 * ERROR: app-admin/apache-tools-2.4.48-r1::gentoo failed (compile phase):
 *   emake failed
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-28 19:12:26 UTC
I've noticed this a few times now on IRC (as well as infra), but first time I'd hit it myself.

Before libxcrypt migration:
$ pkg-config --libs libapr-1
-lapr-1 -luuid -lrt -lcrypt -lpthread -ldl

During (at the broken state):
$ pkg-config --libs libapr-1
-lapr-1 -luuid -lrt -lpthread -ldl

After re-emerging libapr:
$ pkg-config --libs libapr-1
-lapr-1 -luuid -lrt -lcrypt -lpthread -ldl

dev-libs/apr seems to embed information about the environment at build time which other packages like dev-libs/apr-util then pick up, even if the information has then become stale.
Comment 2 Larry the Git Cow gentoo-dev 2021-09-28 19:14:48 UTC
The bug has been closed via the following commit(s):

commit 1879cb6bf7e627f3667ab3b7d564cc11c5380e10
Author:     Sam James <>
AuthorDate: 2021-09-28 19:14:04 +0000
Commit:     Sam James <>
CommitDate: 2021-09-28 19:14:33 +0000

    dev-libs/apr: add libcrypt subslot dependency to force rebuilds
    Needed to ensure our pkgconfig files we install aren't stale.
    Signed-off-by: Sam James <>

 dev-libs/apr/{apr-1.6.3-r5.ebuild => apr-1.6.3-r6.ebuild} | 4 +++-
 dev-libs/apr/{apr-1.6.5-r2.ebuild => apr-1.6.5-r3.ebuild} | 4 +++-
 dev-libs/apr/{apr-1.7.0-r2.ebuild => apr-1.7.0-r3.ebuild} | 4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)
Comment 3 Larry the Git Cow gentoo-dev 2021-12-29 01:51:07 UTC Comment hidden (obsolete)