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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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 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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-02-10 16:24 UTC] andi
Fixed in the latest CVS tree!
 [2020-02-28 10:40 UTC] nikic@php.net
Automatic comment from SVN on behalf of nikic
Revision: http://svn.php.net/viewvc/?view=revision&revision=349259
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] langemeijer@php.net
Automatic comment on behalf of casper.langemeijer@procurios.nl
Revision: http://git.php.net/?p=pecl/networking/ssh2.git;a=commit;h=6af6094d5977efb7d2a2af727f8bde91cf359026
Log: Merge pull request #49: Fix #75523: stream_set_timeout(): No support for ssh2 stream timeout
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 03:01:28 2024 UTC