From: William Xu <william.xwl@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: trunk build failure on Solaris 2.6
Date: Sun, 21 Oct 2007 14:46:14 +0900 [thread overview]
Message-ID: <m2sl45ggux.fsf@gmail.com> (raw)
In-Reply-To: wlk5phm4sf.wl%mituharu@math.s.chiba-u.ac.jp
YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> writes:
> The intention of the `res_init' call before getaddrinfo is, as
> mentioned in configure.in, to detect /etc/resolv.conf changes by
> initializing some internal states of the resolver routine executed in
> the Emacs process. But on Mac OS X, and possibly also on some other
> platforms, the actual resolution is performed by an external process,
> and thus the Emacs process is not responsible to detect the
> /etc/resolv.conf changes. On such platforms, the `res_init' call does
> not make sense whether or not the configure script detects the
> existence of that symbol.
BTW, I think this may be related.
I added -lresolv manually to make emacs compile, and with the newly
built emacs, it hangs when i try to `gnus-group-get-new-news' in Gnus
Group buffer. (See backtrace in the end)
And i find if i revert the following changes in process.c, then no problem.
,----[ process.c ]
| Link to libs for calling res_init() if available.
| (Fmake_network_process): Call res_init() before getaddrinfo or
| gethostbyname, if possible.
`----
---------------------------------8<-------------------------------------
^Z
Program received signal SIGTSTP, Stopped (user).
0xffff8390 in ___gettimeofday () at /System/Library/Frameworks/System.framework/PrivateHeaders/ppc/cpu_capabilities.h:182
182 /System/Library/Frameworks/System.framework/PrivateHeaders/ppc/cpu_capabilities.h: No such file or directory.
in /System/Library/Frameworks/System.framework/PrivateHeaders/ppc/cpu_capabilities.h
(gdb) bt
#0 0xffff8390 in ___gettimeofday () at /System/Library/Frameworks/System.framework/PrivateHeaders/ppc/cpu_capabilities.h:182
#1 0x90005278 in gettimeofday ()
#2 0x00134d80 in wait_reading_process_output (time_limit=0, microsecs=100000, read_kbd=-1, do_display=0, wait_for_cell=58721289, wait_proc=0x8666180, just_wait_proc=0) at /Users/william/repo/cvs/emacs/src/process.c:4370
#3 0x001372cc in Faccept_process_output (process=113491, seconds=0, millisec=1578, just_this_one=1464069094) at /Users/william/repo/cvs/emacs/src/process.c:3986
#4 0x000fa36c in Ffuncall (nargs=-1073756032, args=0xbfffcbe0) at /Users/william/repo/cvs/emacs/src/eval.c:3027
#5 0x0012c54c in Fbyte_code (bytestr=113491, vector=-1073754992, maxdepth=56) at /Users/william/repo/cvs/emacs/src/bytecode.c:679
#6 0x000f9dac in funcall_lambda (fun=34852084, nargs=1, arg_vector=0xbfffce84) at /Users/william/repo/cvs/emacs/src/eval.c:3204
#7 0x000fa4bc in Ffuncall (nargs=-1073756032, args=0x2ea65d9) at /Users/william/repo/cvs/emacs/src/eval.c:3074
#8 0x0012c54c in Fbyte_code (bytestr=113491, vector=-1073754496, maxdepth=40) at /Users/william/repo/cvs/emacs/src/bytecode.c:679
#9 0x000f9dac in funcall_lambda (fun=141105348, nargs=1, arg_vector=0xbfffd074) at /Users/william/repo/cvs/emacs/src/eval.c:3204
...
Lisp Backtrace:
"accept-process-output" (0xbfffcc94)
"nnheader-accept-process-output" (0xbfffce84)
"nntp-accept-process-output" (0xbfffd074)
"nntp-open-connection" (0xbfffd264)
"nntp-open-server" (0xbfffd454)
"byte-code" (0xbfffd524)
"gnus-open-server" (0xbfffdb44)
"byte-code" (0xbfffdc14)
"gnus-activate-group" (0xbfffe244)
"gnus-get-unread-articles" (0xbfffe444)
"gnus-group-get-new-news" (0xbfffe590)
0x20d609d Lisp type 5
"call-interactively" (0xbfffea38)
(gdb)
---------------------------------8<-------------------------------------
--
William
http://williamxu.net9.org
next prev parent reply other threads:[~2007-10-21 5:46 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-19 0:45 trunk build failure on Solaris 2.6 Katsumi Yamaoka
2007-10-19 2:50 ` William Xu
2007-10-19 3:12 ` Chong Yidong
2007-10-19 3:51 ` William Xu
2007-10-19 4:22 ` Chong Yidong
2007-10-19 5:47 ` William Xu
2007-10-19 15:29 ` Chong Yidong
2007-10-19 16:20 ` William Xu
2007-10-19 19:48 ` Chong Yidong
2007-10-19 20:31 ` Dan Nicolaescu
2007-10-19 20:42 ` Chong Yidong
2007-10-20 1:42 ` YAMAMOTO Mitsuharu
2007-10-20 17:05 ` Chong Yidong
2007-10-21 5:10 ` YAMAMOTO Mitsuharu
2007-10-21 5:46 ` William Xu [this message]
2007-10-22 14:46 ` Chong Yidong
2007-11-05 11:12 ` Mark Aufflick
2007-11-06 2:15 ` Richard Stallman
2007-10-21 2:22 ` William Xu
2007-10-20 0:31 ` Evil Boris
2007-10-19 7:10 ` Cyrus Harmon
2007-10-19 4:33 ` Katsumi Yamaoka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2sl45ggux.fsf@gmail.com \
--to=william.xwl@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.