When building a static binary, the following warnings show up:
make[1]: Leaving directory '/home/gabriel-ibarra/fp/repo/endpoint/appv2/third-party/dropbear/source/libtommath'
gcc -static -o dropbearmulti dbmulti.o atomicio.o bignum.o buffer.o circbuffer.o common-algo.o common-channel.o common-chansession.o common-kex.o common-runopts.o common-session.o compat.o crypto_desc.o curve25519-donna.o dbhelpers.o dbrandom.o dbutil.o dh_groups.o dss.o ecc.o ecdsa.o fake-rfc2553.o gendss.o genrsa.o gensignkey.o list.o listener.o loginrec.o ltc_prng.o netio.o packet.o process-packet.o progressmeter.o queue.o rsa.o scp.o scpmisc.o signkey.o sshpty.o svr-agentfwd.o svr-auth.o svr-authpam.o svr-authpasswd.o svr-authpubkey.o svr-authpubkeyoptions.o svr-chansession.o svr-kex.o svr-main.o svr-runopts.o svr-service.o svr-session.o svr-tcpfwd.o svr-x11fwd.o tcp-accept.o termcodes.o libtomcrypt/libtomcrypt.a libtommath/libtommath.a -lutil -lcrypt
svr-auth.o: In function `recv_msg_userauth_request':
svr-auth.c:(.text+0x441): warning: Using 'getgrouplist' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
svr-chansession.o: In function `execchild':
svr-chansession.c:(.text+0x70b): warning: Using 'initgroups' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
sshpty.o: In function `pty_setowner':
sshpty.c:(.text+0x2dd): warning: Using 'getgrnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
common-session.o: In function `fill_passwd':
common-session.c:(.text+0x971): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
dbutil.o: In function `expand_homedir_path':
dbutil.c:(.text+0x9eb): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
netio.o: In function `connect_remote':
netio.c:(.text+0x12b): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
common-session.o: In function `fill_passwd':
common-session.c:(.text+0x9ca): warning: Using 'getspnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
Check if all these functions are needed. I don't think so, except for getaddrinfo.
When building a static binary, the following warnings show up:
Check if all these functions are needed. I don't think so, except for getaddrinfo.