i686-apple-darwin10-gcc -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wno-pointer-sign -Wformat-security -fno-builtin-memset -I. -I. -DSSHDIR=\"/Volumes/Shared/gentoo-prefix/etc/ssh\" -D_PATH_SSH_PROGRAM=\"/Volumes/Shared/gentoo-prefix/usr/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/ssh-keysign\" -D_PATH_SSH_PIDDIR=\"/Volumes/Shared/gentoo-prefix/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/Volumes/Shared/gentoo-prefix/var/empty\" -DSSH_RAND_HELPER=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/ssh-rand-helper\" -DHAVE_CONFIG_H -c readconf.c cc1: warning: -Wuninitialized is not supported without -O i686-apple-darwin10-gcc -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wno-pointer-sign -Wformat-security -fno-builtin-memset -I. -I. -DSSHDIR=\"/Volumes/Shared/gentoo-prefix/etc/ssh\" -D_PATH_SSH_PROGRAM=\"/Volumes/Shared/gentoo-prefix/usr/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/ssh-keysign\" -D_PATH_SSH_PIDDIR=\"/Volumes/Shared/gentoo-prefix/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/Volumes/Shared/gentoo-prefix/var/empty\" -DSSH_RAND_HELPER=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/ssh-rand-helper\" -DHAVE_CONFIG_H -c clientloop.c cc1: warning: -Wuninitialized is not supported without -O i686-apple-darwin10-gcc -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wno-pointer-sign -Wformat-security -fno-builtin-memset -I. -I. -DSSHDIR=\"/Volumes/Shared/gentoo-prefix/etc/ssh\" -D_PATH_SSH_PROGRAM=\"/Volumes/Shared/gentoo-prefix/usr/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/ssh-keysign\" -D_PATH_SSH_PIDDIR=\"/Volumes/Shared/gentoo-prefix/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/Volumes/Shared/gentoo-prefix/var/empty\" -DSSH_RAND_HELPER=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/ssh-rand-helper\" -DHAVE_CONFIG_H -c sshtty.c cc1: warning: -Wuninitialized is not supported without -O i686-apple-darwin10-gcc -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wno-pointer-sign -Wformat-security -fno-builtin-memset -I. -I. -DSSHDIR=\"/Volumes/Shared/gentoo-prefix/etc/ssh\" -D_PATH_SSH_PROGRAM=\"/Volumes/Shared/gentoo-prefix/usr/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/ssh-keysign\" -D_PATH_SSH_PIDDIR=\"/Volumes/Shared/gentoo-prefix/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/Volumes/Shared/gentoo-prefix/var/empty\" -DSSH_RAND_HELPER=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/ssh-rand-helper\" -DHAVE_CONFIG_H -c sshconnect.c cc1: warning: -Wuninitialized is not supported without -O i686-apple-darwin10-gcc -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wno-pointer-sign -Wformat-security -fno-builtin-memset -I. -I. -DSSHDIR=\"/Volumes/Shared/gentoo-prefix/etc/ssh\" -D_PATH_SSH_PROGRAM=\"/Volumes/Shared/gentoo-prefix/usr/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/ssh-keysign\" -D_PATH_SSH_PIDDIR=\"/Volumes/Shared/gentoo-prefix/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/Volumes/Shared/gentoo-prefix/var/empty\" -DSSH_RAND_HELPER=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/ssh-rand-helper\" -DHAVE_CONFIG_H -c sshconnect1.c cc1: warning: -Wuninitialized is not supported without -O i686-apple-darwin10-gcc -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wno-pointer-sign -Wformat-security -fno-builtin-memset -I. -I. -DSSHDIR=\"/Volumes/Shared/gentoo-prefix/etc/ssh\" -D_PATH_SSH_PROGRAM=\"/Volumes/Shared/gentoo-prefix/usr/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/ssh-keysign\" -D_PATH_SSH_PIDDIR=\"/Volumes/Shared/gentoo-prefix/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/Volumes/Shared/gentoo-prefix/var/empty\" -DSSH_RAND_HELPER=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/ssh-rand-helper\" -DHAVE_CONFIG_H -c sshconnect2.c cc1: warning: -Wuninitialized is not supported without -O i686-apple-darwin10-gcc -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wno-pointer-sign -Wformat-security -fno-builtin-memset -I. -I. -DSSHDIR=\"/Volumes/Shared/gentoo-prefix/etc/ssh\" -D_PATH_SSH_PROGRAM=\"/Volumes/Shared/gentoo-prefix/usr/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/ssh-keysign\" -D_PATH_SSH_PIDDIR=\"/Volumes/Shared/gentoo-prefix/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/Volumes/Shared/gentoo-prefix/var/empty\" -DSSH_RAND_HELPER=\"/Volumes/Shared/gentoo-prefix/usr/lib/misc/ssh-rand-helper\" -DHAVE_CONFIG_H -c mux.c cc1: warning: -Wuninitialized is not supported without -O i686-apple-darwin10-gcc -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o sshconnect1.o sshconnect2.o mux.o -L. -Lopenbsd-compat/ -lssh -lopenbsd-compat -L/Volumes/Shared/gentoo-prefix/usr/lib -lssl -lcrypto -lz -lz -framework Security -framework Security -lpthread Undefined symbols: "_res_9_query", referenced from: _getrrsetbyname in libopenbsd-compat.a(getrrsetbyname.o) "_res_9_getshort", referenced from: _parse_dns_qsection in libopenbsd-compat.a(getrrsetbyname.o) _parse_dns_qsection in libopenbsd-compat.a(getrrsetbyname.o) _parse_dns_rrsection in libopenbsd-compat.a(getrrsetbyname.o) _parse_dns_rrsection in libopenbsd-compat.a(getrrsetbyname.o) _parse_dns_rrsection in libopenbsd-compat.a(getrrsetbyname.o) "_res_9_getlong", referenced from: _parse_dns_rrsection in libopenbsd-compat.a(getrrsetbyname.o) "_res_9_init", referenced from: _getrrsetbyname in libopenbsd-compat.a(getrrsetbyname.o) "_res_9_dn_expand", referenced from: _parse_dns_qsection in libopenbsd-compat.a(getrrsetbyname.o) _parse_dns_rrsection in libopenbsd-compat.a(getrrsetbyname.o) ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [ssh] Error 1 * ERROR: net-misc/openssh-5.2_p1-r03.2 failed: * compile problem * * Call stack: * ebuild.sh: 51: <call call-ebuildshell 'src_compile'> * environment: 584: <call src_compile> * environment:3379: emake || die "compile problem" * * If you need support, post the topmost build error, and the call stack if relevant. Reproducible: Always
emerge --info?
Snow Leopard bootstrap, I hit the same problem actually. Seems bind9 stuff is no longer around, and openssh assumes it is.
Created attachment 204443 [details, diff] _res_9_query undefined symbol patch The attached patch seems to fix the build problem for openssh-5.2_p1 (taken from http://lists.mindrot.org/pipermail/openssh-unix-dev/2009-September/027856.html)
thank you very much, committing as we speak
hopefully fixed, thanks all!