|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: thomas at fivemile dot org
New email:
PHP Version: OS:


 [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!
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Wed Oct 17 09:01:26 2018 UTC