php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64642 fpm_sockets.c struct tcp_info has no member tcpi_sacked or tcpi_unsacked
Submitted: 2013-04-13 09:55 UTC Modified: 2013-06-26 18:11 UTC
From: mario at xenji dot com Assigned: felipe (profile)
Status: Closed Package: Compile Failure
PHP Version: 5.5.0beta3 OS: FreeBSD 9.1-RELEASE
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mario at xenji dot com
New email:
PHP Version: OS:

 

 [2013-04-13 09:55 UTC] mario at xenji dot com
Description:
------------
The configure call: 

env COPTFLAGS="-O2 -pipe -funroll-loops -ffast-math -fno-strict-aliasing" 
CC=clang CXX=clang++ CPP=clang-cpp CFLAGS="-O2 -pipe -fno-strict-aliasing" 
./configure --enable-fpm --with-fpm-user=www --with-fpm-group=www --disable-cgi 
--with-config-file-path=/usr/local/etc --with-config-file-scan-
dir=/usr/local/etc/php.d --with-openssl --with-zlib --enable-bcmath --enable-
calendar --with-curl --with-curlwrappers --enable-exif --enable-ftp --with-gd --
with-t1lib --enable-gd-native-ttf --with-mhash --enable-intl --enable-mbstring -
-with-mcrypt --with-mysqli --enable-pcntl --with-pdo-mysql --enable-soap --
enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-xsl --
enable-zip --enable-mysqlnd --with-pear

I've created a gist with more information https://gist.github.com/xenji/5377738

The gist has infos about:
- clang configure output
- the clang excerpt of the error
- a gcc version of the build attempt

I've attached the clang output in the backtrace field, too.

Please feel free to contact me for more information. As this server is not 
business critical, I could provide limited ssh access for further debugging.




Actual result:
--------------
/bin/sh /root/builds/php/php-5.5.0beta3/libtool --silent --preserve-dup-deps --
mode=compile clang -I/root/builds/php/php-5.5.0beta3/sapi/fpm -Isapi/fpm/ -
I/root/builds/php/php-5.5.0beta3/sapi/fpm/ -DPHP_ATOM_INC -
I/root/builds/php/php-5.5.0beta3/include -I/root/builds/php/php-5.5.0beta3/main 
-I/root/builds/php/php-5.5.0beta3 -I/root/builds/php/php-5.5.0beta3/ext/date/lib 
-I/root/builds/php/php-5.5.0beta3/ext/ereg/regex -I/usr/local/include/libxml2 -
I/usr/local/include -I/root/builds/php/php-5.5.0beta3/ext/mbstring/oniguruma -
I/root/builds/php/php-5.5.0beta3/ext/mbstring/libmbfl -I/root/builds/php/php-
5.5.0beta3/ext/mbstring/libmbfl/mbfl -I/root/builds/php/php-
5.5.0beta3/ext/sqlite3/libsqlite -I/root/builds/php/php-5.5.0beta3/TSRM -
I/root/builds/php/php-5.5.0beta3/Zend    -I/usr/local/include -O2 -pipe -fno-
strict-aliasing  -c /root/builds/php/php-5.5.0beta3/sapi/fpm/fpm/fpm_status.c -o 
sapi/fpm/fpm/fpm_status.lo
/bin/sh /root/builds/php/php-5.5.0beta3/libtool --silent --preserve-dup-deps --
mode=compile clang -I/root/builds/php/php-5.5.0beta3/sapi/fpm -Isapi/fpm/ -
I/root/builds/php/php-5.5.0beta3/sapi/fpm/ -DPHP_ATOM_INC -
I/root/builds/php/php-5.5.0beta3/include -I/root/builds/php/php-5.5.0beta3/main 
-I/root/builds/php/php-5.5.0beta3 -I/root/builds/php/php-5.5.0beta3/ext/date/lib 
-I/root/builds/php/php-5.5.0beta3/ext/ereg/regex -I/usr/local/include/libxml2 -
I/usr/local/include -I/root/builds/php/php-5.5.0beta3/ext/mbstring/oniguruma -
I/root/builds/php/php-5.5.0beta3/ext/mbstring/libmbfl -I/root/builds/php/php-
5.5.0beta3/ext/mbstring/libmbfl/mbfl -I/root/builds/php/php-
5.5.0beta3/ext/sqlite3/libsqlite -I/root/builds/php/php-5.5.0beta3/TSRM -
I/root/builds/php/php-5.5.0beta3/Zend    -I/usr/local/include -O2 -pipe -fno-
strict-aliasing  -c /root/builds/php/php-5.5.0beta3/sapi/fpm/fpm/fpm_stdio.c -o 
sapi/fpm/fpm/fpm_stdio.lo
/root/builds/php/php-5.5.0beta3/sapi/fpm/fpm/fpm_sockets.c:404:11: error: no 
member named 'tcpi_sacked' in 'struct tcp_info'; did you mean '__tcpi_sacked'?
        if (info.tcpi_sacked == 0) {
                 ^~~~~~~~~~~
                 __tcpi_sacked
/usr/include/netinet/tcp.h:203:12: note: '__tcpi_sacked' declared here
        u_int32_t       __tcpi_sacked;
                        ^
/root/builds/php/php-5.5.0beta3/sapi/fpm/fpm/fpm_sockets.c:409:18: error: no 
member named 'tcpi_unacked' in 'struct tcp_info'; did you mean '__tcpi_unacked'?
                *cur_lq = info.tcpi_unacked;
                               ^~~~~~~~~~~~
                               __tcpi_unacked
/usr/include/netinet/tcp.h:202:12: note: '__tcpi_unacked' declared here
        u_int32_t       __tcpi_unacked;
                        ^
/root/builds/php/php-5.5.0beta3/sapi/fpm/fpm/fpm_sockets.c:413:18: error: no 
member named 'tcpi_sacked' in 'struct tcp_info'; did you mean '__tcpi_sacked'?
                *max_lq = info.tcpi_sacked;
                               ^~~~~~~~~~~
                               __tcpi_sacked
/usr/include/netinet/tcp.h:203:12: note: '__tcpi_sacked' declared here
        u_int32_t       __tcpi_sacked;
                        ^
3 errors generated.
*** [sapi/fpm/fpm/fpm_sockets.lo] Error code 1
1 error

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-04-13 14:55 UTC] mario at xenji dot com
I've added a list of installed ports to the gist, maybe it's a library issue...
 [2013-04-16 14:16 UTC] mario at xenji dot com
I found this one: http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2011-
November/222806.html

Seems like it is "just" a naming thing.
 [2013-04-23 03:21 UTC] laruence@php.net
yeah, seems FreeBSD has their own definition of the tcp_info names:
http://www.leidinger.net/FreeBSD/dox/netinet/html/d8/da5/tcp_8h_source.html
 [2013-04-23 03:21 UTC] laruence@php.net
-Assigned To: +Assigned To: fat
 [2013-06-26 18:11 UTC] felipe@php.net
-Status: Assigned +Status: Closed -Assigned To: fat +Assigned To: felipe
 [2013-06-26 18:11 UTC] felipe@php.net
The bug has been fixed on bug #63983, thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 00:01:29 2024 UTC