|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49 Conflicting defines for strndup
Submitted: 1998-02-10 13:04 UTC Modified: 1998-02-10 16:24 UTC
From: thomas at fivemile dot org Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0b4 OS: Redhat Linux 4.2 Alpha-AXP Versi
Private report: No CVE-ID: None
 [1998-02-10 13:04 UTC] thomas at fivemile dot org
[root@stargate php-3.0b4]# make
gcc -O2 -I.   -I/root/apache_1.2.5/src      -I/usr/local/Hughes/include    -g -Wall     -c -o
In file included from parser.h:120,
                 from language-parser.y:49:
/usr/include/string.h:96: conflicting types for `strndup'
alloc.h:52: previous declaration of `strndup'
make: *** [] Error 1
[root@stargate php-3.0b4]#

the declaration in /usr/include/string.h is as follows:

extern char *strndup __P ((__const char *__string, size_t __n));

i configured PHP with 

./configure --with-system-regex --with-apache=/root/apache_1.2.5 --with-msql=/usr/local/Hughes


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-02-10 16:24 UTC] andi
Fixed in the latest CVS tree!
 [2020-02-28 10:40 UTC]
Automatic comment from SVN on behalf of nikic
Log: var_export: Mention 7.3.0 change for stdClass

Patch by hikari-no-yume.

Closes php/doc-en#49.
 [2021-02-24 21:09 UTC]
Automatic comment on behalf of
Log: Merge pull request #49: Fix #75523: stream_set_timeout(): No support for ssh2 stream timeout
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Dec 06 21:05:51 2022 UTC