[Bug 3168] libssh.a(utf8.o): undefined reference to symbol 'strcasestr@@GLIBC_2.17'

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sat May 23 17:46:12 AEST 2020


https://bugzilla.mindrot.org/show_bug.cgi?id=3168

--- Comment #4 from Darren Tucker <dtucker at dtucker.net> ---
(In reply to sukesh gowda from comment #2)
> You are correct HAVE_STRCASESTR is set in config.h But when I do a
> cross compile its giving error. Because I am doing autoreconf on the
> host system(x86) and compiling for ARM64.

How are you configuring it?

> Can you please tell me How do I cross compile for a different target
> which doesn't support autoconf/autoreconf. Without autoreconf I
> don't get configure for file.
[...]
> Sorry for the previous message, I got confused.
> I downloaded a package from
> https://github.com/openssh/openssh-portable/releases/V_8_2_P1.tar.gz
> Extracted it.
> Do autoreconf.

You're downloading the source code by release tag, which is fine but it
doesn't have generated files such as configure.  If you download the
release tarball (eg
https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.2p1.tar.gz)
it'll have them.

> Then run it on docker with cross-compiler settings.

Exactly what "cross-compiler settings"?

> I can see from the log “checking for strcasestr... yes”
> So in config.h I can see 
> #define HAVE_STRCASESTR 1
> 
> What else could be the reason for undefined reference to symbol
> 'strcasestr@@GLIBC_2.17'
> 
> I was getting few loader errors so moved libssh.a inside
> openbsd-compat folder, its just for testing

Every thing that you do without mentioning it here makes it harder to
figure out what's going on.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list