php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50352 error: structure has no member named `res_h_errno'
Submitted: 2009-12-01 13:25 UTC Modified: 2009-12-02 13:47 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: admin at phpcode dot us Assigned: scottmac (profile)
Status: Not a bug Package: Compile Failure
PHP Version: 5.3.1 OS: OpenBSD current
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: admin at phpcode dot us
New email:
PHP Version: OS:

 

 [2009-12-01 13:25 UTC] admin at phpcode dot us
Description:
------------
Compilation fail on /ext/standard/dns.c

Reproduce code:
---------------
$ ./configure --with-apxs=/usr/sbin/apxs \
            --without-mysql \
            --enable-xml \
            --enable-wddx \
            --enable-cli \
            --with-iconv=/usr/local \
            --with-gettext=/usr/local \
            --enable-bcmath \
            --enable-session \
            --enable-calendar \
            --enable-ctype \
            --enable-ftp \
            --with-pcre-regex \
            --enable-sockets \
            --enable-sysvmsg \
            --enable-sysvsem \
            --enable-sysvshm \
            --enable-exif \
            --enable-zend-multibyte \
            --without-sqlite \
            --without-pdo-sqlite \
            --without-sqlite3 \
            --disable-phar \
            --disable-fileinfo \
            --with-pear=/usr/local/share/php5 \
            --with-config-file-scan-dir=/var/www/conf/php5 \
            --enable-shared \
            --disable-static \
            --disable-rpath \
            --with-config-file-path=/var/www/conf \
            --enable-inline-optimization \
            --with-pic \
            --with-openssl \
            --with-zlib \
            --prefix=/usr/local \
            --sysconfdir=/etc \
            --mandir=/usr/local/man \
            --infodir=/usr/local/info
$ make

Expected result:
----------------
/bin/sh /usr/ports/pobj/php5-core-5.3.1/php-5.3.1/libtool --silent --preserve-dup-deps --mode=compile cc  -Iext/standard/ -I/usr/ports/pobj/php5-core-5.3.1/php-5.3.1/ext/standard/ -DPHP_ATOM_INC -I/usr/ports/pobj/php5-core-5.3.1/php-5.3.1/include -I/usr/ports/pobj/php5-core-5.3.1/php-5.3.1/main -I/usr/ports/pobj/php5-core-5.3.1/php-5.3.1 -I/usr/ports/pobj/php5-core-5.3.1/php-5.3.1/ext/date/lib -I/usr/ports/pobj/php5-core-5.3.1/php-5.3.1/ext/ereg/regex -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/ports/pobj/php5-core-5.3.1/php-5.3.1/TSRM -I/usr/ports/pobj/php5-core-5.3.1/php-5.3.1/Zend    -I/usr/local/include -O2 -pipe -I/usr/local/include -pthread  -prefer-pic -c /usr/ports/pobj/php5-core-5.3.1/php-5.3.1/ext/standard/dns.c -o ext/standard/dns.lo
/usr/ports/pobj/php5-core-5.3.1/php-5.3.1/ext/standard/dns.c: In function `zif_dns_get_record':
/usr/ports/pobj/php5-core-5.3.1/php-5.3.1/ext/standard/dns.c:813: error: structure has no member named `res_h_errno'
*** Error code 1

Stop in /usr/ports/pobj/php5-core-5.3.1/php-5.3.1 (line 751 of Makefile).
*** Error code 1



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-01 13:33 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-12-01 13:39 UTC] admin at phpcode dot us
I'm try it, error repeat!
 [2009-12-01 14:39 UTC] jani@php.net
Was the error on exactly same line as well? And what do you have for these in your main/php_config.h: HAVE_DNS_SEARCH, HAVE_RES_SEARCH and HAVE_RES_NSEARCH ? 
 [2009-12-01 14:40 UTC] jani@php.net
And also what is HAVE_RESOLV_H defined to?
 [2009-12-01 15:00 UTC] admin at phpcode dot us
HAVE_DNS_SEARCH, HAVE_RES_SEARCH and HAVE_RES_NSEARCH is not defined in main/php_config.h.

HAVE_RESOLV_H is defined as 1 in main/php_config.h.
 [2009-12-01 19:02 UTC] jani@php.net
On second though, assigning to Scott who broke this with his OSX "fixes".
 [2009-12-01 19:07 UTC] scottmac@php.net
It's fixed in 5.3.2 but was never backported to the 5.3.1 stable branch.
 [2009-12-01 19:10 UTC] admin at phpcode dot us
scottmac
Can i see diff between 5.3.1 and 5.3.2 what fixes this bug?
 [2009-12-01 19:54 UTC] jani@php.net
Scott, are you really sure it's fixed? He tried latest snapshot..or are those not from 5.3 branch anymore?
 [2009-12-01 21:29 UTC] scottmac@php.net
Well the structure isn't in the 5.3 snapshot any more so no error is 
possible.

Unless he did something different or didn't grab the correct snapshot?
 [2009-12-02 08:23 UTC] jani@php.net
Did you or did you not actually try the snapshot in the url? You can NOT get the same error if you did..
 [2009-12-02 13:03 UTC] admin at phpcode dot us
it is look like was my mistake with latest snapshot of php 5.3. I'm downloaded him, but compiled another version... Sorry. Latest snapshot realy fixied this bug. I am made patch for PHP 5.3.1 based on scottmac diff. Thanks!
 [2009-12-02 13:04 UTC] admin at phpcode dot us
Already fixed on lastest snapshot
 [2009-12-02 13:47 UTC] jani@php.net
Yeah..
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 07:01:30 2024 UTC