[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inet_pton() bug



[*] ---- Shawn Robinson escribió ----
[*] It's included in the distribution's libresolv/inet_pton.c
[*] Isn't this used when you're compiling with-bundled-libresolv?

yes it is, and it's even compiled that way, the necessary .c files
are read during compilation (i've checked with 'ls -lu') and i have
tried today with both 2.7.2 and 2,8,1 on many Sun Sparcs to compile
it and i always get this:

while compiling '--with-bundled-resolv' i get:

checking for 'sa_len' in 'struct sockaddr'... (cached) no
checking for res_init... (cached) no
checking for res_mkquery... (cached) no
Using bundled (bind 4.9.4-REL) libresolv
Using bundled (bind 4.9.4-REL) libresolv
checking for connect... (cached) no
checking for gethostbyname... (cached) no
need -lsocket library (cached)

but then:
__inet_pton                         ../libs/libz.a(selfaddrs.o)
ld: fatal: Symbol referencing errors. No output written to smtpserver
gmake[1]: *** [smtpserver] Error 1


And of course i have erased previous config.h config.cache and config.status

Without '--with-bundled-resolv' it gets even worse (Matti suggested this)

gcc -Wall -g -O2  -DHAVE_CONFIG_H -I./../include -I../include -I..  -o smtpserver smtpserver.o rfc821scn.o debugreport.o fdstatfs.o wantconn.o policytest.o cfgread.o smtpdata.o smtpcmds.o smtphelp.o smtprouter.o smtpchild.o mxverify.o contentpolicy.o version.o -L../libs -lz -lzc -lident -lta  -lresolv -lsocket -lnsl
Undefined                       first referenced
 symbol                             in file
__dn_expand                         mxverify.o
__res_search                        ../libs/libzc.a(getaddrinfo.o)
__inet_pton                         ../libs/libz.a(selfaddrs.o)
__res_mkquery                       mxverify.o
ld: fatal: Symbol referencing errors. No output written to smtpserver
gmake[1]: *** [smtpserver] Error 1

[*] I've compiled it on Solaris 2.5.1 with no problems other than gcc
[*] peculiarities.

me too in the past, it's the oddest thing! i just need to recompile
so i get no more the "MAIL FROM" bug, it's annoying and users complain..

any ideas? Matti?

Enrique-

[*] At 01:32 AM 17/02/99 -0500, you wrote:
[*] >Hi all,
[*] >
[*] >As you all know Solaris 2.5.1 does not have inet_pton() and lately i
[*] >have noticed that compiling ZMailer versions 50-s4 or 50-s11 either
[*] >using gcc 2.7.2 or gcc 2.8.1 along with gmake 3.77 i get this:
[*] >
[*] >gmake[2]: Leaving directory `/usr/u/operador/zmailer/libs'
[*] >gcc -Wall -g -O2  -DHAVE_CONFIG_H -I./../include -I../include -I..
[*] -I../libresol
[*] >v  -o smtpserver smtpserver.o rfc821scn.o debugreport.o fdstatfs.o
[*] wantconn.o po
[*] >licytest.o cfgread.o smtpdata.o smtpcmds.o smtphelp.o smtprouter.o
[*] smtpchild.o m
[*] >xverify.o contentpolicy.o version.o -L../libs -lz -lzc -lident -lta
[*] -lresolv -l
[*] >socket -lnsl
[*] >Undefined                       first referenced
[*] > symbol                             in file
[*] >__inet_pton                         ../libs/libz.a(selfaddrs.o)
[*] >ld: fatal: Symbol referencing errors. No output written to smtpserver
[*] >gmake[1]: *** [smtpserver] Error 1
[*] >gmake[1]: Leaving directory `/usr/u/operador/zmailer/smtpserver'
[*] >gmake: *** [all] Error 1
[*] >
[*] >The configure options i use are:
[*] >
[*] >./configure --prefix=/usr/zmail --with-bundled-libresolv --with-gcc \
[*] >		--with-postoffice=/var/spool/zmail         \
[*] >                --with-mailbox=/var/mail                        \
[*] >                --with-logdir=/var/spool/zmail/log                     \
[*] >                --with-zmailer-conf=/etc/zmailer.conf
[*] >
[*] >Any ideas? Matti? Arnt? are Sparc Solaris users hopeless?
[*] >
[*] >Enrique-