php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30205 Missing <unistd.h> in some configure test
Submitted: 2004-09-23 04:37 UTC Modified: 2004-09-28 22:43 UTC
From: on at cs dot ait dot ac dot th Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4CVS, 5CVS (20040928) OS: FreeBSD 5.3-BETA2
Private report: No CVE-ID: None
 [2004-09-23 04:37 UTC] on at cs dot ait dot ac dot th
Description:
------------
In the configure script, regarding the part that test the crytography (DES, MD5, Blowfish...) the generated test C code is missing #include <unistd.h> so the test will core dump.

After adding unistd.h, the cryptography is properly detected.

The compile has no problem, only configure has.

From crypt(3) man page:

CRYPT(3)               FreeBSD Library Functions Manual               

NAME
     crypt -- Trapdoor encryption

LIBRARY
     Crypt Library (libcrypt, -lcrypt)

SYNOPSIS
>>>  #include <unistd.h>
               
     char *
     crypt(const char *key, const char *salt);




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-28 22:43 UTC] sniper@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 10:01:30 2025 UTC