php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49110 redefinition of socklen_t
Submitted: 2009-07-30 12:58 UTC Modified: 2009-07-31 16:11 UTC
From: hendrik dot schmieder at jedox dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.3.0 OS: win32 only
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: hendrik dot schmieder at jedox dot com
New email:
PHP Version: OS:

 

 [2009-07-30 12:58 UTC] hendrik dot schmieder at jedox dot com
Description:
------------
Compiling a PHP extension under Windows with PHP 5.3.0 results in
'socklen_t' : redefinition; different basic types.

With PHP 5.2.10 this error doesn't occur.


Reproduce code:
---------------
<https://palo.svn.sourceforge.net/svnroot/palo/molap/client>

In directory libraries palo-libraries.sln and there Project PHPPalo.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-30 15:07 UTC] jani@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2009-07-30 15:29 UTC] pajoye@php.net
You are doing something wrong, it is not redefined.

 [2009-07-30 15:40 UTC] hendrik dot schmieder at jedox dot com
I'm not doing something wrong,
just replace the php 5.2.10 source tree by the one of PHP 5.3.0)
 [2009-07-31 14:29 UTC] hendrik dot schmieder at jedox dot com
OK,
found the problem.
It is a consequence of bug 49111.
Since the config.w32,h is missing in the main subdirectory of
the PHP 5.3.0 Source tree the compiler took the one from PHP 5.2.10.

Copying config.w32.h.in from win32\build as config.w32.h to main solved the problem.

This step shouldn't be necessary.)
 [2009-07-31 15:37 UTC] pajoye@php.net
You are still doing it wrong. This file must be generated at configure time to be used correctly.
 [2009-07-31 15:53 UTC] hendrik dot schmieder at jedox dot com
I needn't do this step if you would supply the config.w32.h as you should and also have done until PHP 5.3.0.

There's no need for configure on Windows.
It is a well defined environment.)
 [2009-07-31 16:11 UTC] pajoye@php.net
It is not. Many options are configured by the scripts.

Anyway, not a bug. If you need further support to compile your custom extensions on windows, we can provide it either using our mailing list or on irc (see http://wiki.php.net/internals/windows).
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Aug 02 12:00:03 2025 UTC