Bug #18097 Updated: conflicting types for `socklen_t' - previous declaration of `socklen_t'

From: Date: Fri, 12 Jul 2002 17:20:11 +0000
Subject: Bug #18097 Updated: conflicting types for `socklen_t' - previous declaration of `socklen_t'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-13999@lists.php.net to get a copy of this message
ID: 18097 Updated by: robneville73@hotmail.com Reported By: marcos@penosaco.com.br Status: Open Bug Type: Compile Failure Operating System: HP-UX 11.11 PHP Version: 4.3.0-dev New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ [2002-07-02 13:48:10] marcos@penosaco.com.br email sent :) ------------------------------------------------------------------------ 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 (#13999) next »