php.net |  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 language-parser.tab.c -o language-parser.tab.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: *** [language-parser.tab.o] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-02-10 16:24 UTC] andi
Fixed in the latest CVS tree!
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC