php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31790 Getting resolve error on make
Submitted: 2005-02-01 08:25 UTC Modified: 2005-02-28 20:49 UTC
From: jace dot freeman at iinet dot net dot au Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.0.2 OS: Solaris 2.10
Private report: No CVE-ID: None
 [2005-02-01 08:25 UTC] jace dot freeman at iinet dot net dot au
Description:
------------
Regardless of library settings ensuring that lresolv is 
available this will not make, no errors raised during 
config.  Could this be an incorrect bind procedure call 
problem?

Reproduce code:
---------------
CC=gcc CFLAGS=?-mcpu=v9 -m64 -fno-omit-frame-pointer? LDFLAGS=?-lsocket -lresolv -lnsl? \
 ./configure \
 --prefix=/usr/local/php \
 --bindir=/usr/local/bin \                                                                                     
 --sbindir=/usr/local/sbin \
 --with-apxs2=/usr/local/sbin/apxs \                                                                           
 --disable-cgi \
 --with-openssl=/usr/local/ssl \
 --with-mysql=/usr/local/mysql \
 --with-pear  

Expected result:
----------------
Clean compile of php

Actual result:
--------------
Zend/zend_default_classes.lo Zend/zend_reflection_api.lo 
Zend/zend_execute.lo sapi/cli/php_cli.lo sapi/cli/
getopt.lo main/internal_functions_cli.lo -lm -lgcc 
-lxml2 -lz -lm -lsocket -lnsl -lxml2 -lz -lm -lsocket 
-lnsl -lxml2 -lz -lm -lsocket -lnsl -lxml2 -lz -lm 
-lsocket -lnsl  -o sapi/cli/php
Undefined                       first referenced
 symbol                             in file
dn_skipname                         ext/standard/dns.lo
res_nmkquery                        ext/standard/dns.lo
dn_expand                           ext/standard/dns.lo
res_nclose                          ext/standard/dns.lo
res_search                          ext/standard/dns.lo
res_ninit                           ext/standard/dns.lo
res_nsend                           ext/standard/dns.lo
inet_aton                           main/network.lo
ld: fatal: Symbol referencing errors. No output written 
to sapi/cli/php
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-28 20:49 UTC] sniper@php.net
When you set your own LDFLAGS & CFLAGS -> you're on your own.
(don't try outsmarting the configure..)

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 20:01:32 2025 UTC