security/libssh ISSUE undefined reference to `__stack_chk_fail_local'

John Marino freebsdml at marino.st
Wed Jan 9 18:12:29 UTC 2013


It is pointless to post about every instance of __stack_chk_fail_local.
The problem, as I mentioned before, is really with every gcc compiler in 
ports (with the possible exception of gcc-aux, it may or may not be 
patched yet).  If the compiler is patched, all the 
__stack_chk_fail_local failures disappear.

I still think these posts belong in a PR, not on a mail list.  We are 
all aware a PR takes some time to write and it takes 10 seconds to blast 
out an email.  But the PR system exists for a reason.

John


On 1/9/2013 19:04, awarecons wrote:
> FreeBSD 9.0-Release i386 for i386
>
> GCC 4.6.3:
>
> Linking C shared library libssh.so
> CMakeFiles/ssh_shared.dir/agent.c.o: In function `agent_talk':
> agent.c:(.text+0x3c9): undefined reference to `__stack_chk_fail_local'
> CMakeFiles/ssh_shared.dir/channels.c.o: In function `ssh_channel_request_x11':
> channels.c:(.text+0x3638): undefined reference to `__stack_chk_fail_local'
> CMakeFiles/ssh_shared.dir/channels.c.o: In function `channel_read_buffer':
> channels.c:(.text+0x44d3): undefined reference to `__stack_chk_fail_local'
> CMakeFiles/ssh_shared.dir/client.c.o: In function `ssh_send_banner':
> client.c:(.text+0x590): undefined reference to `__stack_chk_fail_local'
> CMakeFiles/ssh_shared.dir/config.c.o: In function `.L46':
> config.c:(.text+0x8c7): undefined reference to `__stack_chk_fail_local'
> CMakeFiles/ssh_shared.dir/connect.c.o:connect.c:(.text+0xf7): more
> undefined references to `__stack_chk_fail_local' follow
> collect2: ld returned 1 exit status
> *** Error code 1
> 1 error
> *** Error code 2
> [100%] Building C object src/CMakeFiles/ssh.dir/bind.c.o
> Linking C static library libssh.a
> [100%] Built target ssh
> 1 error
> *** Error code 2
> 1 error
> *** Error code 1
>
> Stop in /usr/ports/security/libssh.
> *** Error code 1
>
> Stop in /usr/ports/security/libssh.
>
> GCC 4.2: fine.
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"


More information about the freebsd-ports mailing list