Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find libmilter library #182

Open
Torxed opened this issue Sep 27, 2024 · 0 comments
Open

Cannot find libmilter library #182

Torxed opened this issue Sep 27, 2024 · 0 comments

Comments

@Torxed
Copy link

Torxed commented Sep 27, 2024

Expectation:

RUN cmake .. -DWITH_MILTER=ON should produce a binary that is happy to have milter enabled.
However, when attempting to run it outputs:

[root@f2f03071d763 build]# /usr/bin/postsrsd -C /etc/postsrsd/postsrsd.conf
postsrsd: error: no milter support

This used to work, so not entirely sure what changed.
Here's the full build traceback (pardon the docker padding and stuff, trying to isolate the build):

#18 [postsrsd 13/30] RUN cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DGENERATE_SRS_SECRET=OFF -DCONFIG_DIR=/etc/postsrsd -DINIT_FLAVOR=systemd -DWITH_MILTER=ON -DDEVELOPER_BUILD=ON
#18 0.552 -- The C compiler identification is GNU 14.2.1
#18 0.587 -- Detecting C compiler ABI info
#18 0.762 -- Detecting C compiler ABI info - done
#18 0.777 -- Check for working C compiler: /usr/sbin/cc - skipped
#18 0.778 -- Detecting C compile features
#18 0.779 -- Detecting C compile features - done
#18 0.807 -- Looking for alloca.h
#18 0.901 -- Looking for alloca.h - found
#18 0.902 -- Looking for errno.h
#18 1.004 -- Looking for errno.h - found
#18 1.005 -- Looking for fcntl.h
#18 1.172 -- Looking for fcntl.h - found
#18 1.181 -- Looking for grp.h
#18 1.322 -- Looking for grp.h - found
#18 1.323 -- Looking for netdb.h
#18 1.429 -- Looking for netdb.h - found
#18 1.430 -- Looking for poll.h
#18 1.528 -- Looking for poll.h - found
#18 1.528 -- Looking for pwd.h
#18 1.626 -- Looking for pwd.h - found
#18 1.627 -- Looking for signal.h
#18 1.737 -- Looking for signal.h - found
#18 1.738 -- Looking for sys/file.h
#18 1.834 -- Looking for sys/file.h - found
#18 1.835 -- Looking for sys/inotify.h
#18 1.926 -- Looking for sys/inotify.h - found
#18 1.927 -- Looking for sys/socket.h
#18 2.029 -- Looking for sys/socket.h - found
#18 2.030 -- Looking for sys/stat.h
#18 2.215 -- Looking for sys/stat.h - found
#18 2.216 -- Looking for sys/time.h
#18 2.312 -- Looking for sys/time.h - found
#18 2.313 -- Looking for sys/types.h
#18 2.411 -- Looking for sys/types.h - found
#18 2.412 -- Looking for sys/un.h
#18 2.511 -- Looking for sys/un.h - found
#18 2.511 -- Looking for sys/wait.h
#18 2.699 -- Looking for sys/wait.h - found
#18 2.700 -- Looking for syslog.h
#18 2.875 -- Looking for syslog.h - found
#18 2.876 -- Looking for time.h
#18 2.974 -- Looking for time.h - found
#18 2.975 -- Looking for unistd.h
#18 3.072 -- Looking for unistd.h - found
#18 3.073 -- Looking for chroot
#18 3.174 -- Looking for chroot - found
#18 3.175 -- Looking for close_range
#18 3.270 -- Looking for close_range - found
#18 3.271 -- Looking for setgroups
#18 3.367 -- Looking for setgroups - found
#18 3.368 -- Looking for strcasecmp
#18 3.464 -- Looking for strcasecmp - found
#18 3.465 -- Looking for _stricmp
#18 3.516 -- Looking for _stricmp - not found
#18 3.517 -- Looking for strncasecmp
#18 3.614 -- Looking for strncasecmp - found
#18 3.615 -- Looking for _strnicmp
#18 3.665 -- Looking for _strnicmp - not found
#18 3.666 -- Looking for stdint.h
#18 3.760 -- Looking for stdint.h - found
#18 3.761 -- Looking for stddef.h
#18 3.873 -- Looking for stddef.h - found
#18 3.874 -- Check size of unsigned long
#18 3.972 -- Check size of unsigned long - done
#18 6.121 -- Missing support for Linux for LibMilter
#18 7.260 -- Turned off installing because Check is a subproject.
#18 7.266 -- Turned off building tests because Check is a subproject.
#18 7.267 CMake Deprecation Warning at build/_deps/check-src/CMakeLists.txt:42 (cmake_policy):
#18 7.267   The OLD behavior for policy CMP0076 will be removed from a future version
#18 7.267   of CMake.
#18 7.267
#18 7.267   The cmake-policies(7) manual explains that the OLD behaviors of all
#18 7.267   policies are deprecated and that a policy should be set to OLD only under
#18 7.267   specific short-term circumstances.  Projects should be ported to the NEW
#18 7.267   behavior and not rely on setting a policy to OLD.
#18 7.267
#18 7.268
#18 7.283 -- Looking for 3 include files sys/types.h, ..., inttypes.h
#18 7.431 -- Looking for 3 include files sys/types.h, ..., inttypes.h - found
#18 7.434 -- Looking for 4 include files sys/types.h, ..., limits.h
#18 7.595 -- Looking for 4 include files sys/types.h, ..., limits.h - found
#18 7.596 -- Looking for 5 include files sys/types.h, ..., regex.h
#18 7.694 -- Looking for 5 include files sys/types.h, ..., regex.h - found
#18 7.694 -- Looking for 7 include files sys/types.h, ..., stdarg.h
#18 7.911 -- Looking for 7 include files sys/types.h, ..., stdarg.h - found
#18 7.913 -- Looking for 9 include files sys/types.h, ..., stdlib.h
#18 8.036 -- Looking for 9 include files sys/types.h, ..., stdlib.h - found
#18 8.037 -- Looking for 10 include files sys/types.h, ..., string.h
#18 8.139 -- Looking for 10 include files sys/types.h, ..., string.h - found
#18 8.140 -- Looking for 11 include files sys/types.h, ..., strings.h
#18 8.250 -- Looking for 11 include files sys/types.h, ..., strings.h - found
#18 8.251 -- Looking for 15 include files sys/types.h, ..., pthread.h
#18 8.360 -- Looking for 15 include files sys/types.h, ..., pthread.h - found
#18 8.361 -- Looking for 16 include files sys/types.h, ..., windows.h
#18 8.426 -- Looking for 16 include files sys/types.h, ..., windows.h - not found
#18 8.427 -- Looking for fork
#18 8.520 -- Looking for fork - found
#18 8.521 -- Looking for getline
#18 8.613 -- Looking for getline - found
#18 8.614 -- Looking for getpid
#18 8.707 -- Looking for getpid - found
#18 8.707 -- Looking for gettimeofday
#18 8.802 -- Looking for gettimeofday - found
#18 8.802 -- Looking for localtime_r
#18 8.897 -- Looking for localtime_r - found
#18 8.897 -- Looking for malloc
#18 8.992 -- Looking for malloc - found
#18 8.992 -- Looking for mkstemp
#18 9.090 -- Looking for mkstemp - found
#18 9.091 -- Looking for realloc
#18 9.187 -- Looking for realloc - found
#18 9.187 -- Looking for setenv
#18 9.281 -- Looking for setenv - found
#18 9.282 -- Looking for sigaction
#18 9.374 -- Looking for sigaction - found
#18 9.375 -- Looking for strdup
#18 9.469 -- Looking for strdup - found
#18 9.470 -- Looking for strsignal
#18 9.565 -- Looking for strsignal - found
#18 9.566 -- Looking for _getpid
#18 9.660 -- Looking for _getpid - not found
#18 9.661 -- Looking for _strdup
#18 9.756 -- Looking for _strdup - not found
#18 9.757 -- Looking for alarm
#18 9.859 -- Looking for alarm - found
#18 9.860 -- Looking for regcomp
#18 9.954 -- Looking for regcomp - found
#18 9.954 -- Looking for regexec
#18 10.05 -- Looking for regexec - found
#18 10.05 -- Looking for snprintf
#18 10.15 -- Looking for snprintf - found
#18 10.15 -- Looking for vsnprintf
#18 10.25 -- Looking for vsnprintf - found
#18 10.25 -- Looking for snprintf
#18 10.35 -- Looking for snprintf - found
#18 10.35 -- Looking for vsnprintf
#18 10.45 -- Looking for vsnprintf - found
#18 10.45 -- Performing Test HAVE_PTHREADS_FLAG
#18 10.56 -- Performing Test HAVE_PTHREADS_FLAG - Success
#18 10.56 -- Looking for INT64_MAX
#18 10.76 -- Looking for INT64_MAX - found
#18 10.76 -- Looking for INT64_MIN
#18 10.86 -- Looking for INT64_MIN - found
#18 10.86 -- Looking for UINT32_MAX
#18 10.96 -- Looking for UINT32_MAX - found
#18 10.96 -- Looking for UINT64_MAX
#18 11.06 -- Looking for UINT64_MAX - found
#18 11.06 -- Looking for SIZE_MAX
#18 11.16 -- Looking for SIZE_MAX - found
#18 11.16 -- Looking for SSIZE_MAX
#18 11.26 -- Looking for SSIZE_MAX - found
#18 11.26 -- Performing Test HAVE_STRUCT_ITIMERSPEC_IT_VALUE
#18 11.31 -- Performing Test HAVE_STRUCT_ITIMERSPEC_IT_VALUE - Failed
#18 11.31 -- Check size of short
#18 11.42 -- Check size of short - done
#18 11.42 -- Check size of int
#18 11.52 -- Check size of int - done
#18 11.52 -- Check size of long
#18 11.62 -- Check size of long - done
#18 11.62 -- Check size of long long
#18 11.72 -- Check size of long long - done
#18 11.72 -- Check size of unsigned short
#18 11.82 -- Check size of unsigned short - done
#18 11.82 -- Check size of unsigned
#18 11.92 -- Check size of unsigned - done
#18 11.92 -- Check size of unsigned long
#18 12.02 -- Check size of unsigned long - done
#18 12.02 -- Check size of unsigned long long
#18 12.12 -- Check size of unsigned long long - done
#18 12.12 -- Check size of __int64
#18 12.18 -- Check size of __int64 - failed
#18 12.18 -- Check size of unsigned __int64
#18 12.24 -- Check size of unsigned __int64 - failed
#18 12.24 -- Check size of int16_t
#18 12.43 -- Check size of int16_t - done
#18 12.43 -- Check size of int32_t
#18 12.53 -- Check size of int32_t - done
#18 12.53 -- Check size of int64_t
#18 12.63 -- Check size of int64_t - done
#18 12.63 -- Check size of intmax_t
#18 12.73 -- Check size of intmax_t - done
#18 12.73 -- Check size of uint8_t
#18 12.87 -- Check size of uint8_t - done
#18 12.87 -- Check size of uint16_t
#18 13.08 -- Check size of uint16_t - done
#18 13.08 -- Check size of uint32_t
#18 13.18 -- Check size of uint32_t - done
#18 13.18 -- Check size of uint64_t
#18 13.28 -- Check size of uint64_t - done
#18 13.28 -- Check size of uintmax_t
#18 13.38 -- Check size of uintmax_t - done
#18 13.39 -- Check size of clock_t
#18 13.48 -- Check size of clock_t - done
#18 13.48 -- Check size of clockid_t
#18 13.58 -- Check size of clockid_t - done
#18 13.59 -- Check size of size_t
#18 13.69 -- Check size of size_t - done
#18 13.69 -- Check size of ssize_t
#18 13.90 -- Check size of ssize_t - done
#18 13.90 -- Check size of pid_t
#18 14.00 -- Check size of pid_t - done
#18 14.00 -- Check size of timer_t
#18 14.10 -- Check size of timer_t - done
#18 14.11 -- Looking for floor in m
#18 14.21 -- Looking for floor in m - found
#18 14.21 -- Looking for clock_gettime in rt
#18 14.30 -- Looking for clock_gettime in rt - found
#18 14.30 -- Looking for subunit_test_start in subunit
#18 14.38 -- Looking for subunit_test_start in subunit - not found
#18 14.42 -- The following features have been enabled:
#18 14.42
#18 14.42  * WITH_MILTER, run PostSRSd as milter
#18 14.42  * INSTALL_SYSTEMD_SERVICE, install the systemd postsrsd.service unit
#18 14.42
#18 14.42 -- The following features have been disabled:
#18 14.42
#18 14.42  * WITH_SQLITE, use SQLite as database backend
#18 14.42  * WITH_REDIS, use Redis as database backend
#18 14.42  * GENERATE_SRS_SECRET, generate missing /etc/postsrsd.secret on install
#18 14.42
#18 14.43 -- Configuring done (14.1s)
#18 14.47 -- Generating done (0.0s)
#18 14.48 CMake Warning:
#18 14.48   Manually-specified variables were not used by the project:
#18 14.48
#18 14.48     CONFIG_DIR
#18 14.48     INIT_FLAVOR
#18 14.48
#18 14.48
#18 14.48 -- Build files have been written to: /build/postsrsd/build
#18 DONE 14.5s

#19 [postsrsd 14/30] RUN make VERBOSE=ON all
#19 0.370 /usr/bin/cmake -S/build/postsrsd -B/build/postsrsd/build --check-build-system CMakeFiles/Makefile.cmake 0
#19 0.398 /usr/bin/cmake -E cmake_progress_start /build/postsrsd/build/CMakeFiles /build/postsrsd/build//CMakeFiles/progress.marks
#19 0.417 make  -f CMakeFiles/Makefile2 all
#19 0.424 make[1]: Entering directory '/build/postsrsd/build'
#19 0.426 make  -f CMakeFiles/ExtConfuse.dir/build.make CMakeFiles/ExtConfuse.dir/depend
#19 0.430 make[2]: Entering directory '/build/postsrsd/build'
#19 0.432 cd /build/postsrsd/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/postsrsd /build/postsrsd /build/postsrsd/build /build/postsrsd/build /build/postsrsd/build/CMakeFiles/ExtConfuse.dir/DependInfo.cmake "--color="
#19 0.458 make[2]: Leaving directory '/build/postsrsd/build'
#19 0.458 make  -f CMakeFiles/ExtConfuse.dir/build.make CMakeFiles/ExtConfuse.dir/build
#19 0.464 make[2]: Entering directory '/build/postsrsd/build'
#19 0.487 [  1%] Creating directories for 'ExtConfuse'
#19 0.489 /usr/bin/cmake -Dcfgdir= -P /build/postsrsd/build/ExtConfuse-prefix/tmp/ExtConfuse-mkdirs.cmake
#19 0.513 /usr/bin/cmake -E touch /build/postsrsd/build/ExtConfuse-prefix/src/ExtConfuse-stamp/ExtConfuse-mkdir
#19 0.561 [  3%] No download step for 'ExtConfuse'
#19 0.563 /usr/bin/cmake -E echo_append
#19 0.581 /usr/bin/cmake -E touch /build/postsrsd/build/ExtConfuse-prefix/src/ExtConfuse-stamp/ExtConfuse-download
#19 0.599 [  5%] No update_disconnected step for 'ExtConfuse'
#19 0.601 /usr/bin/cmake -E echo_append
#19 0.608 /usr/bin/cmake -E touch /build/postsrsd/build/ExtConfuse-prefix/src/ExtConfuse-stamp/ExtConfuse-update_disconnected
#19 0.626 [  7%] No patch_disconnected step for 'ExtConfuse'
#19 0.627 /usr/bin/cmake -E echo_append
#19 0.635 /usr/bin/cmake -E touch /build/postsrsd/build/ExtConfuse-prefix/src/ExtConfuse-stamp/ExtConfuse-patch_disconnected
#19 0.651 [  9%] Performing configure step for 'ExtConfuse'
#19 0.653 cd /build/postsrsd/build/ExtConfuse-prefix/src/ExtConfuse-build && /build/postsrsd/build/_deps/confuse-src/configure --disable-shared --prefix=/build/postsrsd/build/ExtConfuse-prefix CC=/usr/sbin/cc AR=/usr/sbin/gcc-ar RANLIB=/usr/sbin/ranlib MAKE=/usr/sbin/make "CFLAGS= -O3 -DNDEBUG"
#19 0.732 checking for a BSD-compatible install... /usr/bin/install -c
#19 0.740 checking whether build environment is sane... yes
#19 0.751 checking for a thread-safe mkdir -p... /usr/sbin/mkdir -p
#19 0.753 checking for gawk... gawk
#19 0.754 checking whether /usr/sbin/make sets $(MAKE)... yes
#19 0.764 checking whether /usr/sbin/make supports nested variables... yes
#19 0.774 checking whether /usr/sbin/make supports nested variables... (cached) yes
#19 0.776 checking for gcc... /usr/sbin/cc
#19 0.796 checking whether the C compiler works... yes
#19 0.841 checking for C compiler default output file name... a.out
#19 0.843 checking for suffix of executables...
#19 0.886 checking whether we are cross compiling... no
#19 0.937 checking for suffix of object files... o
#19 0.968 checking whether we are using the GNU C compiler... yes
#19 0.995 checking whether /usr/sbin/cc accepts -g... yes
#19 1.021 checking for /usr/sbin/cc option to accept ISO C89... none needed
#19 1.063 checking whether /usr/sbin/cc understands -c and -o together... yes
#19 1.105 checking whether /usr/sbin/make supports the include directive... yes (GNU style)
#19 1.115 checking dependency style of /usr/sbin/cc... gcc3
#19 1.148 checking the archiver (/usr/sbin/gcc-ar) interface... ar
#19 1.168 checking for flex... no
#19 1.169 checking for lex... no
#19 1.179 checking build system type... x86_64-pc-linux-gnu
#19 1.224 checking host system type... x86_64-pc-linux-gnu
#19 1.225 checking how to print strings... printf
#19 1.227 checking for a sed that does not truncate output... /usr/sbin/sed
#19 1.232 checking for grep that handles long lines and -e... /usr/sbin/grep
#19 1.235 checking for egrep... /usr/sbin/grep -E
#19 1.237 checking for fgrep... /usr/sbin/grep -F
#19 1.239 checking for ld used by /usr/sbin/cc... /usr/sbin/ld
#19 1.244 checking if the linker (/usr/sbin/ld) is GNU ld... yes
#19 1.247 checking for BSD- or MS-compatible name lister (nm)... /usr/sbin/nm -B
#19 1.251 checking the name lister (/usr/sbin/nm -B) interface... BSD nm
#19 1.273 checking whether ln -s works... yes
#19 1.274 checking the maximum length of command line arguments... 1572864
#19 1.281 checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
#19 1.282 checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
#19 1.283 checking for /usr/sbin/ld option to reload object files... -r
#19 1.283 checking for objdump... objdump
#19 1.284 checking how to recognize dependent libraries... pass_all
#19 1.285 checking for dlltool... no
#19 1.286 checking how to associate runtime and link libraries... printf %s\n
#19 1.287 checking for archiver @FILE support... @
#19 1.319 checking for strip... strip
#19 1.320 checking for ranlib... /usr/sbin/ranlib
#19 1.321 checking command to parse /usr/sbin/nm -B output from /usr/sbin/cc object... ok
#19 1.400 checking for sysroot... no
#19 1.401 checking for a working dd... /usr/sbin/dd
#19 1.406 checking how to truncate binary pipes... /usr/sbin/dd bs=4096 count=1
#19 1.429 checking for mt... no
#19 1.430 checking if : is a manifest tool... no
#19 1.435 checking how to run the C preprocessor... /usr/sbin/cc -E
#19 1.494 checking for ANSI C header files... yes
#19 1.632 checking for sys/types.h... yes
#19 1.667 checking for sys/stat.h... yes
#19 1.701 checking for stdlib.h... yes
#19 1.736 checking for string.h... yes
#19 1.774 checking for memory.h... yes
#19 1.810 checking for strings.h... yes
#19 1.847 checking for inttypes.h... yes
#19 1.886 checking for stdint.h... yes
#19 1.923 checking for unistd.h... yes
#19 1.961 checking for dlfcn.h... yes
#19 1.995 checking for objdir... .libs
#19 2.063 checking if /usr/sbin/cc supports -fno-rtti -fno-exceptions... no
#19 2.085 checking for /usr/sbin/cc option to produce PIC... -fPIC -DPIC
#19 2.086 checking if /usr/sbin/cc PIC flag -fPIC -DPIC works... yes
#19 2.106 checking if /usr/sbin/cc static flag -static works... yes
#19 2.206 checking if /usr/sbin/cc supports -c -o file.o... yes
#19 2.238 checking if /usr/sbin/cc supports -c -o file.o... (cached) yes
#19 2.239 checking whether the /usr/sbin/cc linker (/usr/sbin/ld -m elf_x86_64) supports shared libraries... yes
#19 2.252 checking dynamic linker characteristics... GNU/Linux ld.so
#19 2.331 checking how to hardcode library paths into programs... immediate
#19 2.332 checking whether stripping libraries is possible... yes
#19 2.335 checking if libtool supports shared libraries... yes
#19 2.335 checking whether to build shared libraries... no
#19 2.336 checking whether to build static libraries... yes
#19 2.337 checking whether NLS is requested... yes
#19 2.341 checking for msgfmt... /usr/sbin/msgfmt
#19 2.362 checking for gmsgfmt... /usr/sbin/msgfmt
#19 2.429 checking for xgettext... /usr/sbin/xgettext
#19 2.481 checking for msgmerge... /usr/sbin/msgmerge
#19 2.491 checking for ld used by /usr/sbin/cc... /usr/sbin/ld -m elf_x86_64
#19 2.498 checking if the linker (/usr/sbin/ld -m elf_x86_64) is GNU ld... yes
#19 2.504 checking for shared library run path origin... done
#19 2.565 checking for CFPreferencesCopyAppValue... no
#19 2.585 checking for CFLocaleCopyCurrent... no
#19 2.606 checking for GNU gettext in libc... yes
#19 2.655 checking whether to use NLS... yes
#19 2.655 checking where the gettext function comes from... libc
#19 2.656 checking for ANSI C header files... (cached) yes
#19 2.661 checking for unistd.h... (cached) yes
#19 2.669 checking for string.h... (cached) yes
#19 2.677 checking for strings.h... (cached) yes
#19 2.685 checking for sys/stat.h... (cached) yes
#19 2.693 checking windows.h usability... no
#19 2.727 checking windows.h presence... no
#19 2.744 checking for windows.h... no
#19 2.744 checking for an ANSI C-conforming const... yes
#19 2.774 checking for fmemopen... yes
#19 2.830 checking for funopen... no
#19 2.953 checking for reallocarray... yes
#19 3.014 checking for strcasecmp... yes
#19 3.070 checking for strdup... yes
#19 3.126 checking for strndup... yes
#19 3.182 checking for setenv... yes
#19 3.235 checking for unsetenv... yes
#19 3.287 checking for _putenv... no
#19 3.386 checking that generated files are newer than configure... done
#19 3.388 configure: creating ./config.status
#19 4.014 config.status: creating Makefile
#19 4.028 config.status: creating src/Makefile
#19 4.045 config.status: creating examples/Makefile
#19 4.064 config.status: creating po/Makefile.in
#19 4.084 config.status: creating m4/Makefile
#19 4.101 config.status: creating tests/Makefile
#19 4.120 config.status: creating doc/Makefile
#19 4.139 config.status: creating doc/Doxyfile
#19 4.161 config.status: creating libconfuse.pc
#19 4.176 config.status: creating libconfuse.spec
#19 4.190 config.status: creating config.h
#19 4.200 config.status: executing depfiles commands
#19 4.361 config.status: executing libtool commands
#19 4.375 config.status: executing po-directories commands
#19 4.382 config.status: creating po/POTFILES
#19 4.387 config.status: creating po/Makefile
#19 4.426 cd /build/postsrsd/build/ExtConfuse-prefix/src/ExtConfuse-build && /usr/bin/cmake -E touch /build/postsrsd/build/ExtConfuse-prefix/src/ExtConfuse-stamp/ExtConfuse-configure
#19 4.446 [ 11%] Performing build step for 'ExtConfuse'
#19 4.447 cd /build/postsrsd/build/ExtConfuse-prefix/src/ExtConfuse-build && /usr/sbin/make -j
#19 4.452 make[3]: Entering directory '/build/postsrsd/build/ExtConfuse-prefix/src/ExtConfuse-build'
#19 4.452 CDPATH="${ZSH_VERSION+.}:" && cd /build/postsrsd/build/_deps/confuse-src && /bin/sh /build/postsrsd/build/_deps/confuse-src/support/missing aclocal-1.16 -I m4
#19 4.456 /build/postsrsd/build/_deps/confuse-src/support/missing: line 81: aclocal-1.16: command not found
#19 4.460 WARNING: 'aclocal-1.16' is missing on your system.
#19 4.460          You should only need it if you modified 'acinclude.m4' or
#19 4.460          'configure.ac' or m4 files included by 'configure.ac'.
#19 4.460          The 'aclocal' program is part of the GNU Automake package:
#19 4.460          <https://www.gnu.org/software/automake>
#19 4.460          It also requires GNU Autoconf, GNU m4 and Perl in order to run:
#19 4.460          <https://www.gnu.org/software/autoconf>
#19 4.460          <https://www.gnu.org/software/m4/>
#19 4.460          <https://www.perl.org/>
#19 4.461 make[3]: *** [Makefile:440: /build/postsrsd/build/_deps/confuse-src/aclocal.m4] Error 127
#19 4.461 make[3]: Leaving directory '/build/postsrsd/build/ExtConfuse-prefix/src/ExtConfuse-build'
#19 4.462 make[2]: *** [CMakeFiles/ExtConfuse.dir/build.make:87: ExtConfuse-prefix/src/ExtConfuse-stamp/ExtConfuse-build] Error 2
#19 4.462 make[2]: Leaving directory '/build/postsrsd/build'
#19 4.463 make[1]: *** [CMakeFiles/Makefile2:970: CMakeFiles/ExtConfuse.dir/all] Error 2
#19 4.463 make[1]: Leaving directory '/build/postsrsd/build'
#19 4.463 make: *** [Makefile:166: all] Error 2
#19 ERROR: process "/bin/sh -c make VERBOSE=ON all" did not complete successfully: exit code: 2
------
 > [postsrsd 14/30] RUN make VERBOSE=ON all:
4.460          <https://www.gnu.org/software/autoconf>
4.460          <https://www.gnu.org/software/m4/>
4.460          <https://www.perl.org/>
4.461 make[3]: *** [Makefile:440: /build/postsrsd/build/_deps/confuse-src/aclocal.m4] Error 127
4.461 make[3]: Leaving directory '/build/postsrsd/build/ExtConfuse-prefix/src/ExtConfuse-build'
4.462 make[2]: *** [CMakeFiles/ExtConfuse.dir/build.make:87: ExtConfuse-prefix/src/ExtConfuse-stamp/ExtConfuse-build] Error 2
4.462 make[2]: Leaving directory '/build/postsrsd/build'
4.463 make[1]: *** [CMakeFiles/Makefile2:970: CMakeFiles/ExtConfuse.dir/all] Error 2
4.463 make[1]: Leaving directory '/build/postsrsd/build'
4.463 make: *** [Makefile:166: all] Error 2
------
failed to solve: process "/bin/sh -c make VERBOSE=ON all" did not complete successfully: exit code: 2

Here's the Dockerfile where I attempt to build postsrsd:

# syntax = docker/dockerfile:1.4

FROM archlinux/archlinux:latest

RUN pacman -Sy
RUN pacman -S --noconfirm gcc cmake automake make automake help2man glibc git tree libmilter diffutils

RUN mkdir -p /etc/postsrsd/
RUN mkdir -p /usr/share/doc
RUN dd if=/dev/urandom bs=18 count=1 status=none | base64 > /etc/postsrsd/postsrsd.secret

RUN mkdir -p /build/postsrsd
RUN git clone https://github.com/roehling/postsrsd.git /build/postsrsd

WORKDIR /build/postsrsd
RUN mkdir build fakeroot

WORKDIR /build/postsrsd/build

RUN cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DGENERATE_SRS_SECRET=OFF -DCONFIG_DIR=/etc/postsrsd -DINIT_FLAVOR=systemd -DWITH_MILTER=ON -DDEVELOPER_BUILD=ON
RUN make all

RUN make DESTDIR="/build/postsrsd/fakeroot/" install

Partial issue related to aclocal appears to be /postsrsd/src/postsrsd-2.0.10/build/_deps/confuse-src/ are generated for automake 1.16.

cd _deps/confuse-src/ 
autoreconf --force --install
cd ../..

appears to be a workaround

Any help would be grately appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant