* 23.0.50; Undefined symbol: _res_9_init
@ 2007-10-19 15:38 Peter Dyballa
2007-10-19 22:51 ` Peter Dyballa
2007-10-21 15:36 ` Peter Dyballa
0 siblings, 2 replies; 6+ messages in thread
From: Peter Dyballa @ 2007-10-19 15:38 UTC (permalink / raw)
To: emacs-pretest-bug
Hello!
Since some hours of CVS updating a 'make bootstrap' ends reliably with:
gcc -I/sw/include -L/sw/lib -prebind -Xlinker -headerpad -Xlinker
690 -dead_strip -multiply_defined suppress -bind_at_load -L/sw/lib/
freetype219/lib -L/sw/lib/fontconfig2/lib -L/sw/lib/ncurses -L/usr/
local/lib -L/sw/lib -L/usr/X11R6/lib -o temacs pre-crt0.o dispnew.o
frame.o scroll.o xdisp.o xmenu.o window.o charset.o coding.o
category.o ccl.o cm.o term.o terminal.o xfaces.o xterm.o xfns.o
xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o emacs.o
keyboard.o macros.o keymap.o sysdep.o buffer.o filelock.o insdel.o
marker.o minibuf.o fileio.o dired.o filemode.o cmds.o casetab.o
casefiddle.o indent.o search.o regex.o undo.o alloc.o data.o doc.o
editfns.o callint.o eval.o floatfns.o fns.o print.o lread.o abbrev.o
syntax.o unexmacosx.o bytecode.o process.o callproc.o region-cache.o
sound.o atimer.o doprnt.o strftime.o intervals.o textprop.o
composite.o md5.o terminfo.o lastfile.o widget.o ../lwlib/
liblw.a -L/usr/X11R6/lib -lXaw3d -lXmu -lXt -lSM -lICE -lXext -ltiff -
ljpeg -lpng -lz -lm -lgif -lXpm -lX11 -L/sw/lib -lrsvg-2 -
lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -
liconv -lncurses
/sw/lib/odcctools/bin/ld: Undefined symbols:
_res_9_init
collect2: ld returned 1 exit status
make[2]: *** [temacs] Error 1
make[2]: Target `bootstrap' not remade because of errors.
make[1]: *** [bootstrap-build] Error 2
make: *** [bootstrap] Error 2
And I have no idea what res_9_init might be ... ahh: it's in
resolv.h! Never had a problem before with this:
#ifndef __BIND_NOSTATIC
...
#define res_init res_9_init
...
Used from src/process.c only:
gcc -I/sw/include -L/sw/lib -c -DMAC_OSX -H -no-cpp-precomp -I/usr/
include/openssl - I/sw/include/pango-1.0 -I/sw/lib/freetype219/
include -I/sw/lib/freetype219/include/freetype2 -I/sw/lib/fontconfig2/
include -I/sw/include/libpng12 -I/usr/local/include -I/sw/include -
Demacs -DHAVE_CONFIG_H -DUSE_LUCID -I. -I/Users/pete/Quellen/
Emacs_CVS/emacs/src -DMAC_OSX -I/usr/X11R6/include -Dtemacs -I/sw/
include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/gtk-2.0 -I/
sw/include/librsvg-2 -H -pipe -bind_at_load -fPIC -mcpu=7450 -
mtune=7450 -fast -mpim-altivec -ftree-vectorize -foptimize-register-
move -freorder-blocks -freorder-blocks-and-partition -fthread-jumps -
fpeephole -fno-crossjumping process.c
. ./config.h
.. ./s/darwin.h
.. ./m/powermac.h
.. /usr/include/string.h
... /usr/include/_types.h
.... /usr/include/sys/_types.h
..... /usr/include/sys/cdefs.h
..... /usr/include/machine/_types.h
...... /usr/include/ppc/_types.h
.. /usr/include/strings.h
.. /usr/include/stdlib.h
... /usr/include/sys/wait.h
.... /usr/include/sys/signal.h
..... /usr/include/sys/appleapiopts.h
..... /usr/include/machine/signal.h
...... /usr/include/ppc/signal.h
.... /usr/include/sys/resource.h
.... /usr/include/machine/endian.h
..... /usr/include/ppc/endian.h
...... /usr/include/sys/_endian.h
....... /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/stdint.h
....... /usr/include/libkern/OSByteOrder.h
........ /usr/include/libkern/ppc/OSByteOrder.h
... /usr/include/alloca.h
... /usr/include/machine/types.h
.... /usr/include/ppc/types.h
. /usr/include/signal.h
. /usr/include/stdio.h
. /usr/include/errno.h
.. /usr/include/sys/errno.h
. /usr/include/setjmp.h
.. /usr/include/machine/setjmp.h
... /usr/include/ppc/setjmp.h
. /usr/include/sys/types.h
. /usr/include/sys/file.h
.. /usr/include/sys/fcntl.h
.. /usr/include/sys/unistd.h
.. /usr/include/sys/queue.h
. /usr/include/sys/stat.h
. /usr/include/unistd.h
.. /usr/include/sys/select.h
... /usr/include/sys/time.h
.... /usr/include/time.h
..... /usr/include/machine/_limits.h
...... /usr/include/ppc/_limits.h
. /usr/include/sys/socket.h
.. /usr/include/machine/param.h
... /usr/include/ppc/param.h
. /usr/include/netdb.h
.. /usr/include/netinet/in.h
... /usr/include/netinet6/in6.h
. /usr/include/arpa/inet.h
.. /usr/include/sys/param.h
... /usr/include/sys/syslimits.h
... /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/limits.h
.... /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/syslimits.h
..... /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/limits.h
...... /usr/include/limits.h
....... /usr/include/machine/limits.h
........ /usr/include/ppc/limits.h
. /usr/include/sys/un.h
. /usr/include/sys/ioctl.h
.. /usr/include/sys/ttycom.h
... /usr/include/sys/ioccom.h
.. /usr/include/sys/filio.h
.. /usr/include/sys/sockio.h
. /usr/include/net/if.h
.. /usr/include/net/if_var.h
. /usr/include/arpa/nameser.h
. /usr/include/resolv.h
. lisp.h
. systime.h
. systty.h
.. /usr/include/termios.h
... /usr/include/sys/termios.h
.... /usr/include/sys/ttydefaults.h
.. /usr/include/fcntl.h
. window.h
.. dispextern.h
... /usr/X11R6/include/X11/Xlib.h
.... /usr/X11R6/include/X11/X.h
.... /usr/X11R6/include/X11/Xfuncproto.h
.... /usr/X11R6/include/X11/Xosdefs.h
.... /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/stddef.h
... /usr/X11R6/include/X11/Intrinsic.h
.... /usr/X11R6/include/X11/Xutil.h
.... /usr/X11R6/include/X11/Xresource.h
.... /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/stddef.h
.... /usr/X11R6/include/X11/Core.h
.... /usr/X11R6/include/X11/Composite.h
.... /usr/X11R6/include/X11/Constraint.h
.... /usr/X11R6/include/X11/Object.h
.... /usr/X11R6/include/X11/RectObj.h
. buffer.h
. charset.h
. coding.h
.. ccl.h
. process.h
. frame.h
. termhooks.h
. termopts.h
. commands.h
. keyboard.h
. blockinput.h
.. atimer.h
. composite.h
. syssignal.h
. syswait.h
. sysselect.h
process.c: In function ‘Fmake_network_process’:
process.c:3037: warning: pointer targets in passing argument 2 of
‘strncpy’ differ in signedness
process.c:3082: warning: pointer targets in assignment differ in
signedness
process.c:3097: warning: pointer targets in passing argument 1 of
‘getaddrinfo’ differ in signedness
process.c:3122: warning: pointer targets in passing argument 1 of
‘getservbyname’ differ in signedness
process.c:3273: warning: pointer targets in passing argument 3 of
‘getsockname’ differ in signedness
process.c:3371: warning: pointer targets in passing argument 3 of
‘getsockname’ differ in signedness
process.c: In function ‘Fnetwork_interface_info’:
process.c:3737: warning: pointer targets in passing argument 2 of
‘strncpy’ differ in signedness
process.c: In function ‘server_accept_connection’:
process.c:4021: warning: pointer targets in passing argument 3 of
‘accept’ differ in signedness
process.c:4149: warning: pointer targets in passing argument 3 of
‘getsockname’ differ in signedness
process.c: In function ‘wait_reading_process_output’:
process.c:4919: warning: pointer targets in passing argument 3 of
‘getpeername’ differ in signedness
process.c: In function ‘read_process_output’:
process.c:5064: warning: pointer targets in passing argument 6 of
‘recvfrom’ differ in signedness
process.c: In function ‘send_process’:
process.c:5516: warning: pointer targets in passing argument 2 of
‘encode_coding’ differ in signedness
process.c: In function ‘emacs_get_tty_pgrp’:
process.c:5850: warning: pointer targets in passing argument 1 of
‘emacs_open’ differ in signedness
process.c: In function ‘Fsignal_process’:
process.c:6293: warning: pointer targets in passing argument 1 of
‘strncmp’ differ in signedness
process.c:6293: warning: pointer targets in passing argument 1 of
‘strncmp’ differ in signedness
process.c:6299: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6302: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6305: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6308: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6311: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6314: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6317: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6320: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6323: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6326: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6329: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6332: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6335: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6338: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6341: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6344: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6347: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6350: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6353: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6356: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6359: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6362: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6365: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6368: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6371: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6374: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6377: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6380: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6383: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
process.c:6386: warning: pointer targets in passing argument 2 of
‘xstricmp’ differ in signedness
In GNU Emacs 23.0.50.1 (powerpc-apple-darwin8.10.0, X toolkit, Xaw3d
scroll bars)
of 2007-10-15 on localhost
Windowing system distributor `The XFree86 Project, Inc', version
11.0.40400000
configured using `configure '--without-gtk' '--without-sound' '--
without-pop' '--with-x-toolkit=lucid' '--with-xpm' '--with-jpeg' '--
with-tiff' '--with-gif' '--with-png' '--enable-locallisppath=/Library/
Application Support/Emacs/calendar22:/Library/Application Support/
Emacs/caml:/Library/Application Support/Emacs:/sw/share/emacs21/site-
lisp/elib' 'CPPFLAGS=-no-cpp-precomp -I/usr/include/openssl -I/sw/
include/pango-1.0 -I/sw/lib/freetype219/include -I/sw/lib/freetype219/
include/freetype2 -I/sw/lib/fontconfig2/include -I/sw/include/
libpng12 -I/usr/local/include -I/sw/include' 'CXXFLAGS=-no-cpp-
precomp -I/usr/include/openssl -I/sw/include/pango-1.0 -I/sw/lib/
freetype219/include -I/sw/lib/freetype219/include/freetype2 -I/sw/lib/
fontconfig2/include -I/sw/include/libpng12 -I/usr/local/include -I/sw/
include' 'CFLAGS=-pipe -bind_at_load -fPIC -mcpu=7450 -mtune=7450 -
fast -mpim-altivec -ftree-vectorize -foptimize-register-move -
freorder-blocks -freorder-blocks-and-partition -fthread-jumps -
fpeephole -fno-crossjumping' 'LDFLAGS=-dead_strip -multiply_defined
suppress -bind_at_load -L/sw/lib/freetype219/lib -L/sw/lib/
fontconfig2/lib -L/sw/lib/ncurses -L/usr/local/lib -L/sw/lib''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: de_DE.UTF-8
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: de_DE.UTF-8
locale-coding-system: utf-8
default-enable-multibyte-characters: t
Major mode: Compilation
Minor modes in effect:
TeX-PDF-mode: t
shell-dirtrack-mode: t
show-paren-mode: t
display-time-mode: t
desktop-save-mode: t
tooltip-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
unify-8859-on-encoding-mode: t
utf-translate-cjk-mode: t
auto-compression-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
--
Mit friedvollen Grüßen
Pete
"A lot of people mistake a short memory for a clear conscience."
Doug Larson
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: 23.0.50; Undefined symbol: _res_9_init
2007-10-19 15:38 23.0.50; Undefined symbol: _res_9_init Peter Dyballa
@ 2007-10-19 22:51 ` Peter Dyballa
2007-10-21 6:45 ` Stephen J. Turnbull
2007-10-21 15:36 ` Peter Dyballa
1 sibling, 1 reply; 6+ messages in thread
From: Peter Dyballa @ 2007-10-19 22:51 UTC (permalink / raw)
To: emacs-pretest-bug
Am 19.10.2007 um 17:38 schrieb Peter Dyballa:
> /sw/lib/odcctools/bin/ld: Undefined symbols:
> _res_9_init
Compiling src/process.c with -E -dD I get in the output:
#define HAVE_GETADDRINFO 1
...
#define HAVE_RES_INIT 1
...
#define res_init res_9_init /* from resolv.h */
...
int res_9_init (void); /* from resolv.h */
...
res_9_init (); /* line #3094 src/process.c in
"make_network_process" */
/* could also happen on line #3144 when HAVE_GETADDRINFO is 0 */
Nm tells about libc:
/usr/lib/libc.dylib(res_init.o):
9004561c T _res_init
so it's obviously a mistake to re-define res_init as res_9_init. This
re-definition happens in resolv.h in:
#ifndef __BIND_NOSTATIC
...
#define res_init res_9_init
...
__BEGIN_DECLS
...
int res_init __P((void));
...
__END_DECLS
#endif
In the Fink project for compilation of netcat 0.6.1 CFLAGS is set to
-D__BIND_NOSTATIC
Re-configuring with this among the CPPFLAGS used allows to create
temacs. /usr/include/resolv.h is the only file that uses
__BIND_NOSTATIC, src/process.c is the only file that includes
resolv.h (found by compiling with -H), so on (some ?) Mac OS X src/
process.c should be compiled with an extra CPPFLAG or CFLAG -
D__BIND_NOSTATIC when HAVE_RES_INIT is 1.
--
Greetings
Pete
The future will be much better tomorrow.
-- George W. Bush
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: 23.0.50; Undefined symbol: _res_9_init
2007-10-19 22:51 ` Peter Dyballa
@ 2007-10-21 6:45 ` Stephen J. Turnbull
2007-10-21 10:21 ` Peter Dyballa
0 siblings, 1 reply; 6+ messages in thread
From: Stephen J. Turnbull @ 2007-10-21 6:45 UTC (permalink / raw)
To: Peter Dyballa; +Cc: emacs-pretest-bug
Peter Dyballa writes:
> so it's obviously a mistake to re-define res_init as res_9_init. This
> re-definition happens in resolv.h in:
Be careful. There's some tricky stuff in Mac OS X having to do with
this. It was a galaxy long long ago and far far away, so I forget
details and even the problem project, but probably what's happening is
that you really want to pull in a BIND-specific library because libc
doesn't have it but that library does. IIRC, of course. YMMV.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: 23.0.50; Undefined symbol: _res_9_init
2007-10-21 6:45 ` Stephen J. Turnbull
@ 2007-10-21 10:21 ` Peter Dyballa
2007-10-21 15:39 ` Peter Dyballa
0 siblings, 1 reply; 6+ messages in thread
From: Peter Dyballa @ 2007-10-21 10:21 UTC (permalink / raw)
To: Stephen J. Turnbull; +Cc: emacs-pretest-bug
Am 21.10.2007 um 08:45 schrieb Stephen J. Turnbull:
> Peter Dyballa writes:
>
>> so it's obviously a mistake to re-define res_init as res_9_init. This
>> re-definition happens in resolv.h in:
>
> Be careful. There's some tricky stuff in Mac OS X having to do with
> this. It was a galaxy long long ago and far far away, so I forget
> details and even the problem project, but probably what's happening is
> that you really want to pull in a BIND-specific library because libc
> doesn't have it but that library does. IIRC, of course. YMMV.
>
The library that has res_9_init is /usr/lib/libresolv.9.dylib. I
don't know what the purpose of res_init (or res_9_init) in GNU Emacs
is. If it's needed with some real and needful functionality then /usr/
lib/libresolv.9.dylib is probably the right choice and the Fink
team's "hack" with -D__BIND_NOSTATIC should be omitted. /usr/lib/
libresolv.9.dylib has 180 functions. Programmes that use /usr/lib/
libresolv.9.dylib:
/usr/sbin/kadmin /usr/sbin/krb5kdc
/usr/sbin/kadmin.local /usr/sbin/ktutil
/usr/sbin/kadmind /usr/sbin/lookupd
/usr/sbin/kdb5_util /usr/sbin/nmbd
/usr/sbin/kprop /usr/sbin/smbd
/usr/sbin/kpropd /usr/sbin/swat
/usr/sbin/krb524d /usr/sbin/winbindd
--
Greetings
Pete
You can learn many things from children. How much patience you have,
for instance.
-- Franklin P. Jones
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: 23.0.50; Undefined symbol: _res_9_init
2007-10-21 10:21 ` Peter Dyballa
@ 2007-10-21 15:39 ` Peter Dyballa
0 siblings, 0 replies; 6+ messages in thread
From: Peter Dyballa @ 2007-10-21 15:39 UTC (permalink / raw)
To: Stephen J. Turnbull; +Cc: emacs-pretest-bug
Am 21.10.2007 um 12:21 schrieb Peter Dyballa:
> The library that has res_9_init is /usr/lib/libresolv.9.dylib.
A sym-link /usr/lib/libresolv.dylib exists. So I am starting to think
that the cause for the undefined symbol _res_9_init must be a
different one ...
--
Greetings
Pete
"If we don't succeed, we run the risk of failure."
George W. Bush
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: 23.0.50; Undefined symbol: _res_9_init
2007-10-19 15:38 23.0.50; Undefined symbol: _res_9_init Peter Dyballa
2007-10-19 22:51 ` Peter Dyballa
@ 2007-10-21 15:36 ` Peter Dyballa
1 sibling, 0 replies; 6+ messages in thread
From: Peter Dyballa @ 2007-10-21 15:36 UTC (permalink / raw)
To: emacs-pretest-bug
Hello!
Comparing old configure.in with the recent version, I see that from
res_init was removed from a for loop:
for ac_func in gethostname ... res_init ...
do
...
done
The recent version of configure.in does not have res_init. Does this
mean that no tests for res_init() are performed?
--
Greetings
Pete
Genius may have its limitations, but stupidity is not thus handicapped.
-- Elbert Hubbard
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-10-21 15:39 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-19 15:38 23.0.50; Undefined symbol: _res_9_init Peter Dyballa
2007-10-19 22:51 ` Peter Dyballa
2007-10-21 6:45 ` Stephen J. Turnbull
2007-10-21 10:21 ` Peter Dyballa
2007-10-21 15:39 ` Peter Dyballa
2007-10-21 15:36 ` Peter Dyballa
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.