marlam / msmtp

SMTP client with sendmail compatible interface
https://marlam.de/msmtp
GNU General Public License v3.0
175 stars 36 forks source link

how compile please? #176

Closed Owned67 closed 4 weeks ago

Owned67 commented 4 weeks ago

hello,

can someone explain what il need for build the source please?

Using debian 11 x64 on VPS

Thanks very much

Owned67 commented 4 weeks ago

Ive try on debian 11 but fail: `cd /opt root@rusty-familly:/opt# git clone https://github.com/marlam/msmtp.git Cloning into 'msmtp'... remote: Enumerating objects: 5951, done. remote: Counting objects: 100% (838/838), done. remote: Compressing objects: 100% (268/268), done. remote: Total 5951 (delta 596), reused 664 (delta 567), pack-reused 5113 (from 1) Receiving objects: 100% (5951/5951), 2.66 MiB | 9.32 MiB/s, done. Resolving deltas: 100% (4543/4543), done. root@rusty-familly:/opt# cd msmtp root@rusty-familly:/opt/msmtp# apt install build-essential autoconf automake libssl-dev Reading package lists... Done Building dependency tree... Done Reading state information... Done autoconf is already the newest version (2.69-14). autoconf set to manually installed. automake is already the newest version (1:1.16.3-2). build-essential is already the newest version (12.9). libssl-dev is already the newest version (1.1.1w-0+deb11u1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@rusty-familly:/opt/msmtp# autoreconf -fi autoreconf: configure.ac: AM_GNU_GETTEXT is used, but not AM_GNU_GETTEXT_VERSION configure.ac:32: installing 'build-aux/compile' configure.ac:31: installing 'build-aux/config.guess' configure.ac:31: installing 'build-aux/config.sub' configure.ac:34: installing 'build-aux/install-sh' configure.ac:34: installing 'build-aux/missing' Makefile.am: installing './INSTALL' doc/Makefile.am:6: installing 'build-aux/mdate-sh' src/Makefile.am: installing 'build-aux/depcomp' parallel-tests: installing 'build-aux/test-driver' root@rusty-familly:/opt/msmtp# ./configure checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define EXTENSIONS... yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports the include directive... yes (GNU style) checking whether make supports nested variables... yes checking dependency style of gcc... gcc3 checking whether make supports nested variables... (cached) yes checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking for a sed that does not truncate output... /usr/bin/sed checking whether NLS is requested... yes checking for msgfmt... /usr/bin/msgfmt checking for gmsgfmt... /usr/bin/msgfmt checking for xgettext... /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for shared library run path origin... done checking 32-bit host C ABI... no checking for ELF binary format... yes checking for the common suffixes of directories in the library search path... lib,lib,lib64 checking for CFPreferencesCopyAppValue... no checking for CFLocaleCopyPreferredLanguages... no checking for GNU gettext in libc... yes checking whether to use NLS... yes checking where the gettext function comes from... libc checking fnmatch.h usability... yes checking fnmatch.h presence... yes checking for fnmatch.h... yes checking sysexits.h usability... yes checking sysexits.h presence... yes checking for sysexits.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking langinfo.h usability... yes checking langinfo.h presence... yes checking for langinfo.h... yes checking for fmemopen... yes checking for fseeko... yes checking for fseeko64... yes checking for getpass... yes checking for link... yes checking for signal... yes checking for strndup... yes checking for syslog... yes checking for vasprintf... yes checking for library containing nanosleep... none required checking for library containing socket... none required checking for library containing res_query... -lresolv checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for gnutls >= 3.7.2... no configure: WARNING: library libgnutls not found: configure: WARNING: Requested 'gnutls >= 3.7.2' but version of GnuTLS is 3.7.1 You may find new versions of GnuTLS at https://www.gnutls.org/ configure: WARNING: libgnutls is provided by GnuTLS configure: WARNING: Disabling TLS support, which is very bad. Consider using GnuTLS! checking whether AI_IDN is declared... yes checking whether getaddrinfo accepts AI_IDN... yes checking whether libidn is needed for IDN support... no checking for libsecret-1... no configure: WARNING: library libsecret not found: configure: WARNING: No package 'libsecret-1' found configure: WARNING: libsecret is provided by Gnome checking for SecKeychainGetVersion... no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating po/Makefile.in config.status: creating tests/Makefile config.status: creating doc/Makefile config.status: creating scripts/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing po-directories commands config.status: creating po/POTFILES config.status: creating po/Makefile

Install prefix ......... : /usr/local NLS support ............ : yes TLS support ............ : no (Library: none) IDN support ............ : yes (no library required) GNU SASL support ....... : no Libsecret support (GNOME): no MacOS X Keychain support : no Build msmtpd ............: yes root@rusty-familly:/opt/msmtp# make make all-recursive make[1]: Entering directory '/opt/msmtp' Making all in src make[2]: Entering directory '/opt/msmtp/src' CC conf.o CC eval.o CC list.o CC md5.o CC md5-apps.o CC msgid.o CC msmtp.o CC net.o CC netrc.o CC readbuf.o CC smtp.o CC stream.o CC tools.o CC xalloc.o CC aliases.o CC password.o CC base64.o CCLD msmtp CC msmtpd.o CCLD msmtpd make[2]: Leaving directory '/opt/msmtp/src' Making all in po make[2]: Entering directory '/opt/msmtp/po' make msmtp.pot-update make[3]: Entering directory '/opt/msmtp/po' sed -e '/^#/d' remove-potcdate.sin > t-remove-potcdate.sed mv t-remove-potcdate.sed remove-potcdate.sed package_gnu="no"; \ test -n "$package_gnu" || { \ if { if (LC_ALL=C find --version) 2>/dev/null | grep GNU >/dev/null; then \ LC_ALL=C find -L .. -maxdepth 1 -type f -size -10000000c -exec grep -i 'GNU msmtp' /dev/null '{}' ';' 2>/dev/null; \ else \ LC_ALL=C grep -i 'GNU msmtp' ../ 2>/dev/null; \ fi; \ } | grep -v 'libtool:' >/dev/null; then \ package_gnu=yes; \ else \ package_gnu=no; \ fi; \ }; \ if test "$package_gnu" = "yes"; then \ package_prefix='GNU '; \ else \ package_prefix=''; \ fi; \ if test -n 'marlam@marlam.de' || test 'marlam@marlam.de' = '@'PACKAGE_BUGREPORT'@'; then \ msgid_bugs_address='marlam@marlam.de'; \ else \ msgid_bugs_address='marlam@marlam.de'; \ fi; \ case `/usr/bin/xgettext --version | sed 1q | sed -e 's,^[^0-9],,'in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \ /usr/bin/xgettext --default-domain=msmtp --directory=.. \ --add-comments=TRANSLATORS: \ --files-from=./POTFILES.in \ --copyright-holder='Martin Lambers <marlam@marlam.de>' \ --msgid-bugs-address="$msgid_bugs_address" \ --keyword=_ --keyword=N_ --flag=asprintf:2:c-format --flag=vasprintf:2:c-format --flag=xasprintf:1:c-format \ ;; \ *) \ /usr/bin/xgettext --default-domain=msmtp --directory=.. \ --add-comments=TRANSLATORS: \ --files-from=./POTFILES.in \ --copyright-holder='Martin Lambers <marlam@marlam.de>' \ --package-name="${package_prefix}msmtp" \ --package-version='1.8.27' \ --msgid-bugs-address="$msgid_bugs_address" \ --keyword=_ --keyword=N_ --flag=asprintf:2:c-format --flag=vasprintf:2:c-format --flag=xasprintf:1:c-format \ ;; \ esac test ! -f msmtp.po || { \ if test -f ./msmtp.pot-header; then \ sed -e '1,/^#$/d' < msmtp.po > msmtp.1po && \ cat ./msmtp.pot-header msmtp.1po > msmtp.po && \ rm -f msmtp.1po \ || exit 1; \ fi; \ if test -f ./msmtp.pot; then \ sed -f remove-potcdate.sed < ./msmtp.pot > msmtp.1po && \ sed -f remove-potcdate.sed < msmtp.po > msmtp.2po && \ if cmp msmtp.1po msmtp.2po >/dev/null 2>&1; then \ rm -f msmtp.1po msmtp.2po msmtp.po; \ else \ rm -f msmtp.1po msmtp.2po ./msmtp.pot && \ mv msmtp.po ./msmtp.pot; \ fi; \ else \ mv msmtp.po ./msmtp.pot; \ fi; \ } make[3]: Leaving directory '/opt/msmtp/po' test ! -f ./msmtp.pot || \ test -z "de.gmo eo.gmo es.gmo fr.gmo pt_BR.gmo ro.gmo ru.gmo sr.gmo sv.gmo ta.gmo uk.gmo" || make de.gmo eo.gmo es.gmo fr.gmo pt_BR.gmo ro.gmo ru.gmo sr.gmo sv.gmo ta.gmo uk.gmo make[3]: Entering directory '/opt/msmtp/po' /usr/bin/msgmerge --update --lang=de --previous de.po msmtp.pot .................................. done. rm -f de.gmo && /usr/bin/msgmerge --for-msgfmt -o de.1po de.po msmtp.pot && /usr/bin/msgfmt -c --statistics --verbose -o de.gmo de.1po && rm -f de.1po de.1po: 327 translated messages. /usr/bin/msgmerge --update --lang=eo --previous eo.po msmtp.pot .................................. done. rm -f eo.gmo && /usr/bin/msgmerge --for-msgfmt -o eo.1po eo.po msmtp.pot && /usr/bin/msgfmt -c --statistics --verbose -o eo.gmo eo.1po && rm -f eo.1po eo.1po: 327 translated messages. /usr/bin/msgmerge --update --lang=es --previous es.po msmtp.pot .................................. done. rm -f es.gmo && /usr/bin/msgmerge --for-msgfmt -o es.1po es.po msmtp.pot && /usr/bin/msgfmt -c --statistics --verbose -o es.gmo es.1po && rm -f es.1po es.1po: 327 translated messages. /usr/bin/msgmerge --update --lang=fr --previous fr.po msmtp.pot .................................. done. rm -f fr.gmo && /usr/bin/msgmerge --for-msgfmt -o fr.1po fr.po msmtp.pot && /usr/bin/msgfmt -c --statistics --verbose -o fr.gmo fr.1po && rm -f fr.1po fr.1po: 327 translated messages. /usr/bin/msgmerge --update --lang=pt_BR --previous pt_BR.po msmtp.pot .................................. done. rm -f pt_BR.gmo && /usr/bin/msgmerge --for-msgfmt -o pt_BR.1po pt_BR.po msmtp.pot && /usr/bin/msgfmt -c --statistics --verbose -o pt_BR.gmo pt_BR.1po && rm -f pt_BR.1po pt_BR.1po: 318 translated messages. /usr/bin/msgmerge --update --lang=ro --previous ro.po msmtp.pot .................................. done. rm -f ro.gmo && /usr/bin/msgmerge --for-msgfmt -o ro.1po ro.po msmtp.pot && /usr/bin/msgfmt -c --statistics --verbose -o ro.gmo ro.1po && rm -f ro.1po ro.1po: 327 translated messages. /usr/bin/msgmerge --update --lang=ru --previous ru.po msmtp.pot .................................. done. rm -f ru.gmo && /usr/bin/msgmerge --for-msgfmt -o ru.1po ru.po msmtp.pot && /usr/bin/msgfmt -c --statistics --verbose -o ru.gmo ru.1po && rm -f ru.1po ru.1po: 327 translated messages. /usr/bin/msgmerge --update --lang=sr --previous sr.po msmtp.pot .................................. done. rm -f sr.gmo && /usr/bin/msgmerge --for-msgfmt -o sr.1po sr.po msmtp.pot && /usr/bin/msgfmt -c --statistics --verbose -o sr.gmo sr.1po && rm -f sr.1po sr.1po: 326 translated messages. /usr/bin/msgmerge --update --lang=sv --previous sv.po msmtp.pot .................................. done. rm -f sv.gmo && /usr/bin/msgmerge --for-msgfmt -o sv.1po sv.po msmtp.pot && /usr/bin/msgfmt -c --statistics --verbose -o sv.gmo sv.1po && rm -f sv.1po sv.1po: 327 translated messages. /usr/bin/msgmerge --update --lang=ta --previous ta.po msmtp.pot .................................. done. rm -f ta.gmo && /usr/bin/msgmerge --for-msgfmt -o ta.1po ta.po msmtp.pot && /usr/bin/msgfmt -c --statistics --verbose -o ta.gmo ta.1po && rm -f ta.1po ta.1po: 92 translated messages. /usr/bin/msgmerge --update --lang=uk --previous uk.po msmtp.pot .................................. done. rm -f uk.gmo && /usr/bin/msgmerge --for-msgfmt -o uk.1po uk.po msmtp.pot && /usr/bin/msgfmt -c --statistics --verbose -o uk.gmo uk.1po && rm -f uk.1po uk.1po: 327 translated messages. make[3]: Leaving directory '/opt/msmtp/po' touch ./stamp-po make[2]: Leaving directory '/opt/msmtp/po' Making all in tests make[2]: Entering directory '/opt/msmtp/tests' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/opt/msmtp/tests' Making all in doc make[2]: Entering directory '/opt/msmtp/doc' Updating ./version.texi MAKEINFO msmtp.info /opt/msmtp/build-aux/missing: line 81: makeinfo: command not found WARNING: 'makeinfo' is missing on your system. You should only need it if you modified a '.texi' file, or any other file indirectly affecting the aspect of the manual. You might want to install the Texinfo package: <https://www.gnu.org/software/texinfo/> The spurious makeinfo call might also be the consequence of using a buggy 'make' (AIX, DU, IRIX), in which case you might want to install GNU make: <https://www.gnu.org/software/make/> make[2]: *** [Makefile:376: msmtp.info] Error 127 make[2]: Leaving directory '/opt/msmtp/doc' make[1]: *** [Makefile:412: all-recursive] Error 1 make[1]: Leaving directory '/opt/msmtp' make: *** [Makefile:353: all] Error 2

Owned67 commented 4 weeks ago

Solved : apt install texinfo