[uClibc]libc conflict with libbind???

phamhuyvu vuph at vn.quick.net.tw
Mon Feb 17 00:26:08 UTC 2003


Hi all,
I compiled Postfix with uClibc and  libbind 8.1 OK, but I can't send email
to internet.
After checking /var/log/maillog, i see my smtp client didn't connect to mail
server.
------------------------------------------------
/var/log/maillog
Feb 14 05:24:14 localhost postfix/smtp[2522]: smtp_parse_destination:
cable.net.tw smtp
Feb 14 05:24:14 localhost postfix/smtp[2522]: connecting to cable.net.tw
port 25
Feb 14 05:24:14 localhost postfix/qmgr[2508]: private/smtp socket: wanted
attribute: reason
Feb 14 05:24:14 localhost postfix/qmgr[2508]: warning: premature
end-of-input on private/smtp socket while reading input attribute name
Feb 14 05:24:14 localhost postfix/qmgr[2508]: warning: private/smtp socket:
malformed response
Feb 14 05:24:14 localhost postfix/qmgr[2508]: qmgr_transport_throttle:
transport smtp: reason: unknown mail transport error
Feb 14 05:24:14 localhost postfix/qmgr[2508]: warning: transport smtp
failure -- see a previous warning/fatal/panic logfile record for the problem
description
Feb 14 05:24:14 localhost postfix/master[2481]: warning: process
/usr/libexec/postfix/smtp pid 2522 killed by signal 11
Feb 14 05:24:14 localhost postfix/master[2481]: warning:
/usr/libexec/postfix/smtp: bad command startup -- throttling
---------------------------------------------
I think that is memory error  while "dns_lookuping" ,  I use gdb tool and
test_dns_lookup program in
Postfix/src/dns/ directory to check this error:
---------------------------------------------
[root at devel dns]# make test
gcc -W -Wformat -Wimplicit -Wmissing-prototypes -Wparentheses -Wstrict-proto
types -Wswitch -Wuninitialized -Wunused  -DUSE_SASL_AUTH -I/usr/i386-linux-u
clibc/include/sasl/ -I/usr/i386-linux-uclibc/include -g -O -I. -I../../inclu
de -DLINUX2 -ggdb -o test_dns_lookup test_dns_lookup.c libdns.a
../../lib/libutil.a -L/usr/i386-linux-uclibc/lib -lsasl2 -L/usr/i386-linux-u
clibc/lib/ -ldb -lresolv -lbind
test_dns_lookup.c: In function `print_rr':
test_dns_lookup.c:49: warning: implicit declaration of function `memcpy'
[root at devel dns]# gdb test_dns_lookup
GNU gdb Red Hat Linux (5.1.90CVS-5)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
(gdb) run ANY mail.ayhoo.com
Starting program:
/mnt/xwares/projects/thinserver/thinserver/version.1.1/smtpauth/sasl/postfix
-2.0.0.2.test/src/dns/test_dns_lookup ANY mail.ayhoo.com
/mnt/xwares/projects/thinserver/thinserver/version.1.1/smtpauth/sasl/postfix
-2.0.0.2.test/src/dns/test_dns_lookup: lookup mail.ayhoo.com type 255 flags
130

Program received signal SIGSEGV, Segmentation fault.
0x08049287 in dns_query (name=0xbffffa97 "mail.ayhoo.com", type=255,
flags=130, reply=0xbfffe430, why=0x805cfc8)
    at dns_lookup.c:148
148         if ((_res.options & RES_INIT) == 0 && res_init() < 0) {
(gdb)
----------------------------------------
i think libbind and libc is conflict when link to res_.... functions, is it
true or not?
I don't know how to fix this, can anybody help me, please?!

-Pham Huy Vu-






More information about the uClibc mailing list