Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 244776 - >=net-misc/openssh-5.0* has linking issues on linux
Summary: >=net-misc/openssh-5.0* has linking issues on linux
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-28 15:27 UTC by Jeremy Olexa (darkside) (RETIRED)
Modified: 2008-11-20 21:02 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,182.41 KB, text/plain)
2008-10-28 15:28 UTC, Jeremy Olexa (darkside) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-10-28 15:27:31 UTC
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.
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-10-28 15:28:03 UTC
Created attachment 170120 [details]
build log
Comment 2 Michael Haubenwallner (RETIRED) gentoo-dev 2008-10-28 15:32:39 UTC
Seems '-fstack-protector' is not part of the linker flags.

Why is it part of the compiler flags?
Comment 3 Vasil Kanev 2008-11-12 10:53:35 UTC
i have same problem
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-11-20 21:02:27 UTC
(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!