FS#38385 - glibc FAILS with static compiles, glibc-static needed, missing package

Attached to Project: Arch Linux
Opened by GI Jack (GI_Jack) - Sunday, 05 January 2014, 00:50 GMT
Last edited by Allan McRae (Allan) - Tuesday, 07 January 2014, 07:10 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Allan McRae (Allan)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
when trying to make a static compile of busybox, it fails with the following message:

a little googling, and the recommended fix is to install glibc-static, a package which is refrenced by busybox, but no longer exists.

Additional info:
* package version(s)

glibc-

* config and/or log files etc.

jack@box$ make -j9

/usr/bin/ld: cannot find -lcrypt
collect2: error: ld returned 1 exit status
Makefile:716: recipe for target 'busybox_unstripped' failed
make: *** [busybox_unstripped] Error 1

Steps to reproduce:

download the busybox sources. type make menuconfig, select static build. save config, try to build with make
This task depends upon

Closed by  Allan McRae (Allan)
Tuesday, 07 January 2014, 07:10 GMT
Reason for closing:  Fixed
Additional comments about closing:  glibc 2.18-12
Comment by Allan McRae (Allan) - Sunday, 05 January 2014, 01:59 GMT
Is libcrypt.a the only needed extra static library?
Comment by Sergej Pupykin (sergej) - Sunday, 05 January 2014, 21:04 GMT
busybox depends on libpthread.a and libcrypt.a.
Comment by Sergej Pupykin (sergej) - Sunday, 05 January 2014, 21:20 GMT
Also qemu-static (from aur) makedepends on glibc-static. Don't remember exact libs.

I suggest to build glibc with staticlibs option.
Comment by Allan McRae (Allan) - Sunday, 05 January 2014, 21:58 GMT
I don't care about anything that is unnecessarily built static. busybox is a reasonable exception, qemu is not.
Comment by Sergej Pupykin (sergej) - Sunday, 05 January 2014, 22:15 GMT
qemu-static is required for cross-arch chrooting. Probably I will move it to community
Comment by Allan McRae (Allan) - Tuesday, 07 January 2014, 07:10 GMT
libpthread.a was already in the package. libcrpyt.a is added. None of the other libraries should be needed.

Loading...