ssh.o: In function `main': ssh.c:(.text+0x1f9e): undefined reference to `__stack_chk_fail' readconf.o: In function `process_config_line': readconf.c:(.text+0x17ef): undefined reference to `__stack_chk_fail' readconf.o: In function `read_config_file': readconf.c:(.text+0x20b4): undefined reference to `__stack_chk_fail' clientloop.o: In function `client_status_confirm': clientloop.c:(.text+0x6b5): undefined reference to `__stack_chk_fail' clientloop.o: In function `client_wait_until_can_do_something': clientloop.c:(.text+0x15fb): undefined reference to `__stack_chk_fail' clientloop.o:clientloop.c:(.text+0x20bc): more undefined references to `__stack_chk_fail' follow collect2: ld returned 1 exit status make: *** [ssh] Error 1 make: *** Waiting for unfinished jobs.... ssh-add.o: In function `do_file': ssh-add.c:(.text+0x365): undefined reference to `__stack_chk_fail' ssh-add.o: In function `main': ssh-add.c:(.text+0xa01): undefined reference to `__stack_chk_fail' ./libssh.a(authfd.o): In function `ssh_request_reply': authfd.c:(.text+0x18b): undefined reference to `__stack_chk_fail' ./libssh.a(authfd.o): In function `ssh_get_authentication_socket': authfd.c:(.text+0xedc): undefined reference to `__stack_chk_fail' and the like...masking it on linux for now.
Created attachment 170120 [details] build log
Seems '-fstack-protector' is not part of the linker flags. Why is it part of the compiler flags?
i have same problem
ive fixed this in cvs as it broke my uClibc build http://sources.gentoo.org/net-misc/openssh/files/openssh-5.1_p1-better-ssp-check.patch?rev=1.1 http://sources.gentoo.org/net-misc/openssh/openssh-5.1_p1-r1.ebuild?r1=1.10&r2=1.11 http://sources.gentoo.org/net-misc/openssh/openssh-5.1_p1-r2.ebuild?r1=1.2&r2=1.3
(In reply to comment #4) > ive fixed this in cvs as it broke my uClibc build > > http://sources.gentoo.org/net-misc/openssh/files/openssh-5.1_p1-better-ssp-check.patch?rev=1.1 > http://sources.gentoo.org/net-misc/openssh/openssh-5.1_p1-r1.ebuild?r1=1.10&r2=1.11 > http://sources.gentoo.org/net-misc/openssh/openssh-5.1_p1-r2.ebuild?r1=1.2&r2=1.3 > Confirmed and lifted mask in Gentoo Prefix. Thanks!