Bug #67700 [Asn->Opn]: Compile fails when -lcrypt is missing
| From: | kalle@php.net | Date: | Tue, 24 Oct 2017 06:55:52 +0000 |
| Subject: | Bug #67700 [Asn->Opn]: Compile fails when -lcrypt is missing | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-212031@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67700&edit=1
ID: 67700
Updated by: kalle@php.net
Reported by: thekid@php.net
Summary: Compile fails when -lcrypt is missing
-Status: Assigned
+Status: Open
Type: Bug
Package: Compile Failure
Operating System: Linux
PHP Version: 5.5.15
-Assigned To: ircmaxell
+Assigned To:
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2017-09-28 02:30:30] dapphp at sonic dot net
Ran into this building PHP 5.6.31. Spent quite a bit of time trying different combinations until I
finally found this post.
Thanks much to alcione who suggested adding -lcrypt which at least works around it.
------------------------------------------------------------------------
[2015-05-04 11:56:19] alcione dot sombra at gmail dot com
Para resolver o problema acima descrito utilizei um recurso de alimentar as variáveis do ambiente
LDFLAGS e LIBS antes de executar o script de configure, da seguinte forma:
$ LDFLAGS="$LDFLAGS -lcrypt" LIBS="$LIBS -lcrypt" ./configure <opcoes>
Espero ter ajudado
---
To solve the problem described above used a resource to feed the variables LDFLAGS and LIBS
environment before running the configure script, as follows:
$ LDFLAGS = "$ LDFLAGS -lcrypt" LIBS = "$ LIBS -lcrypt" ./configure
<options>
I hope this helps
------------------------------------------------------------------------
[2014-07-28 16:24:41] thekid@php.net
Description:
------------
The linking fails with "undefined reference to zm_startup_password".
Test script:
---------------
Configure PHP, run make.
Expected result:
----------------
Either configure bail and PHP states it depends on
-lcrypt or the password functions
are non-core.
See also https://github.com/php/php-src/pull/703
Actual result:
--------------
The whole of password.c is inside a #if HAVE_CRYPT conditional, but basic_functions.c
unconditionally initializes the password module and tries to declares its functions, leading to this
error.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=67700&edit=1