#18097 [Opn->Bgs]: conflicting types for `socklen_t' - previous declaration of `socklen_t'

From: Date: Wed, 14 Aug 2002 02:36:31 +0000
Subject: #18097 [Opn->Bgs]: conflicting types for `socklen_t' - previous declaration of `socklen_t'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16682@lists.php.net to get a copy of this message
ID: 18097 Updated by: kalowsky@php.net Reported By: marcos@penosaco.com.br -Status: Open +Status: Bogus Bug Type: Compile Failure Operating System: HP-UX 11.11 PHP Version: 4.3.0-dev New Comment: Sorry, but the bug system is not the appropriate forum for asking support questions. Your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php Thank you for your interest in PHP. Okay so marking this closed as it sounds like a gcc bug, and not a PHP bug. Previous Comments: ------------------------------------------------------------------------ [2002-07-12 13:20:10] robneville73@hotmail.com OK... I think I know what the issue is. Another detail about the OS that I'm assuming is the case with Marcos as well is that he's using the 64-bit version of 11i as I am. The issue with gcc, not php. The problem is that the latest gcc was made for 11.0. gcc has its *own* set of include files that it uses. So when <sys/socket.h> is included, it's not using the OSes /usr/include/sys but something like /usr/local/lib/gccsomething/blah/include/sys. The issue is that this file does not contain typedefs for sbsize_t and bsize_t. If you go to sys/types.h (again gcc's copy) type in typedef int64_t sbsize_t; and then typedef uint64_t bsize_t it should be OK. ------------------------------------------------------------------------ [2002-07-10 16:12:02] robneville73@hotmail.com Actually, whatever was done in snapshot 200207100900 fixed the problem...sort of. main.c now compiles, but it seems that everything else that includes php_network.h falls over. (i.e. mysql, basic_functions, and some others). What was done to fix main.c? ------------------------------------------------------------------------ [2002-07-10 16:04:10] marcos@penosaco.com.br I'm still having trouble to compile too. I'm having some difficulties to get the error message from the HPUX server (it isn't directly connected to my network and my /dev/fd0 is broken) I will post the error here ASAP Marcos ------------------------------------------------------------------------ [2002-07-10 12:47:08] robneville73@hotmail.com That latest snapshot also does not seem to solve the problem, I'm on the same versions that marcos is on. Is this stuff for socket support? Does php really need it or is it only used if I explicitly want to use socket functions? Can I disable it somehow? I tried --disable-sockets to no avail. ------------------------------------------------------------------------ [2002-07-07 21:26:40] sniper@php.net Please try this snapshot: (some related stuff was fixed) http://snaps.php.net/php4-latest.tar.gz ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/18097 -- Edit this bug report at http://bugs.php.net/?id=18097&edit=1

« previous php.bugs (#16682) next »