Justtechjobs.com Find a programming school near you






Online Campus Both


php4-beta | 199912

Re: [PHP4BETA] -lbind missing now From: Andrei Zmievski (andrei <email protected>)
Date: 12/07/99

On Tue, 07 Dec 1999, Sascha Schumann wrote:
> On Tue, Dec 07, 1999 at 11:23:03AM -0600, Andrei Zmievski wrote:
> > On Tue, 07 Dec 1999, Sascha Schumann wrote:
> > > On Tue, Dec 07, 1999 at 09:39:51AM -0600, Andrei Zmievski wrote:
> > > > gcc -g -Wall -O2 -o php stub.o .libs/libphp4.a -L/usr/ucblib
> > > > -L/projects/compile/gd1.3 -L/usr/local/etc/mysql/lib/mysql -lpam -lexpat
> > > > -lmysqlclient -lgd -lresolv -lresolv -lm -lcrypt -lsocket -lnsl -lsocket
> > > > -Wl,--export-dynamic -Wl,--rpath -Wl,/usr/ucblib -Wl,--rpath
> > > > -Wl,/projects/compile/gd1.3 -Wl,--rpath
> > > > -Wl,/usr/local/etc/mysql/lib/mysql -Wl,--rpath -Wl,/usr/ucblib
> > > > -Wl,--rpath -Wl,/projects/compile/gd1.3 -Wl,--rpath
> > > > -Wl,/usr/local/etc/mysql/lib/mysql
> > > > .libs/libphp4.a(dns.o): In function `php3_checkdnsrr':
> > > > /export/projects/zend-php/php4/ext/standard/dns.c:203: undefined
> > > > reference to `__res_search'
> > > > .libs/libphp4.a(dns.o): In function `php3_getmxrr':
> > > > /export/projects/zend-php/php4/ext/standard/dns.c:272: undefined
> > > > reference to `__res_search'
> > > > /export/projects/zend-php/php4/ext/standard/dns.c:299: undefined
> > > > reference to `__dn_expand'
> > > > .libs/libphp4.a(fsock.o): In function `lookup_hostname':
> > > > /export/projects/zend-php/php4/ext/standard/fsock.c:135: undefined
> > > > reference to `__inet_aton'
> > > >
> > > > On Solaris this is broken now.
> > >
> > > libbind does not exist on Solaris at all. Are you using a
> > > custom installation of Bind?
> >
> > Hmm, libbind.a here is in /usr/local/lib. Why did make fail then?
>
> Did it -I/usr/local/include? Maybe you have custom Bind
> headers there which reference __res_search (which is
> Bind 8-specific AFAIK).

Here's the compilation line for fsock.c:

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libzend -I../..
-I../../libzend -I/projects/compile/gd1.3
-I/usr/local/etc/mysql/include/mysql -I/usr/local/include/xml
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g -Wall -O2 -c fsock.c -o
fsock.o

Looking further: /usr/local/include/arpa/inet.h has

#define inet_aton __inet_aton

But there is also /usr/include/arpa/inet.h which doesn't have it.
Similarly, resolv.h is in both directories.

-Andrei

Give a man a fish; you have fed him for today. Teach a man to fish;
and you can sell him fishing equipment.
                                        -Author unknown

-- 
PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
To unsubscribe, e-mail: php4beta-unsubscribe <email protected>
For additional commands, e-mail: php4beta-help <email protected>
To contact the list administrators, e-mail: php4beta-admin <email protected>