su-shi / freeswitch-docker

基于 ubuntu:22.04 镜像,从源码开始构建 FreeSwitch 的容器镜像的脚本
4 stars 3 forks source link

run docker build error: cannot find input file: `packages/Makefile.in' #1

Open sandy53 opened 3 weeks ago

sandy53 commented 3 weeks ago

freeswitch-docker]# docker build -t freeswitch:1.10.11 . [+] Building 143.1s (21/48) docker:default => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 3.27kB 0.0s => [internal] load metadata for docker.io/library/ubuntu:22.04 15.7s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load build context 3.2s => => transferring context: 149.16MB 3.1s => [stage-1 1/13] FROM docker.io/library/ubuntu:22.04@sha256:f154feaf13b51d16e2b4b5575d69abc808da40c4b80e3a5055aaa4bcc5099d5b 4.4s => => resolve docker.io/library/ubuntu:22.04@sha256:f154feaf13b51d16e2b4b5575d69abc808da40c4b80e3a5055aaa4bcc5099d5b 0.0s => => sha256:9d28ccdc1fc782ec635c98e55ff68b05e6de1df2c7fcbbb4385f023368eec716 1.46kB / 1.46kB 0.0s => => sha256:aee1767db0dd7da5c30ffaef2282976fe8730cdb0a7b1ecda17cd3c85374fa57 29.89MB / 29.89MB 1.9s => => sha256:f154feaf13b51d16e2b4b5575d69abc808da40c4b80e3a5055aaa4bcc5099d5b 1.42kB / 1.42kB 0.0s => => sha256:3c3de9608507804525ff4303874525760ea36d62606e8105f515adaa761b80cb 529B / 529B 0.0s => => extracting sha256:aee1767db0dd7da5c30ffaef2282976fe8730cdb0a7b1ecda17cd3c85374fa57 2.2s => [stage-1 2/13] ADD sources.list /etc/apt/ 2.3s => [build 3/33] RUN apt update -y && apt install -y python2 wget curl cmake make pkg-config build-essential autoconf automake yasm libtool libtool-bin uuid-dev libssl-dev libtiff-dev libopus-dev unixodbc-dev 86.4s => [stage-1 3/13] RUN groupadd -r freeswitch --gid=999 && useradd -r -g freeswitch --uid=999 freeswitch 0.5s => [stage-1 4/13] RUN apt-get update -qq 10.8s => [stage-1 5/13] RUN apt-get install -y --no-install-recommends ca-certificates gnupg2 gosu locales wget curl libgumbo1 libspeex1 libspeexdsp1 libedit2 libtpl0 unixodbc libtiff5 libjpeg62 libavformat58 libsw 45.3s => [stage-1 6/13] RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 3.5s => [stage-1 7/13] COPY docker-entrypoint.sh / 0.1s => [build 4/33] COPY ./libks /sources/libks 0.1s => [build 5/33] WORKDIR /sources/libks 0.0s => [build 6/33] RUN mkdir build 0.3s => [build 7/33] RUN cp copyright build/copyright 0.4s => [build 8/33] RUN cd build && cmake .. && make && make install 18.1s => [build 9/33] COPY ./sofia-sip /sources/sofia-sip 0.3s => [build 10/33] WORKDIR /sources/sofia-sip 0.0s => [build 11/33] RUN ./bootstrap.sh 7.8s => ERROR [build 12/33] RUN ./configure 7.0s


[build 12/33] RUN ./configure:
0.381 checking build system type... x86_64-pc-linux-gnu
0.436 checking host system type... x86_64-pc-linux-gnu
0.436 checking target system type... x86_64-pc-linux-gnu
0.436 checking cached information... ok
0.436 checking for a BSD-compatible install... /usr/bin/install -c 0.443 checking whether build environment is sane... yes 0.453 checking for a race-free mkdir -p... /usr/bin/mkdir -p 0.455 checking for gawk... no 0.455 checking for mawk... mawk 0.456 checking whether make sets $(MAKE)... yes 0.465 checking whether make supports nested variables... yes 0.473 checking whether make supports the include directive... yes (GNU style) 0.482 checking for gcc... gcc 0.512 checking whether the C compiler works... yes 0.554 checking for C compiler default output file name... a.out 0.556 checking for suffix of executables... 0.598 checking whether we are cross compiling... no 0.644 checking for suffix of object files... o 0.666 checking whether the compiler supports GNU C... yes 0.692 checking whether gcc accepts -g... yes 0.709 checking for gcc option to enable C11 features... none needed 0.744 checking whether gcc understands -c and -o together... yes 0.780 checking dependency style of gcc... gcc3 0.819 checking for stdio.h... yes 0.839 checking for stdlib.h... yes 0.862 checking for string.h... yes 0.893 checking for inttypes.h... yes 0.919 checking for stdint.h... yes 0.948 checking for strings.h... yes 0.973 checking for sys/stat.h... yes 1.000 checking for sys/types.h... yes 1.027 checking for unistd.h... yes 1.057 checking for wchar.h... yes 1.094 checking for minix/config.h... no 1.124 checking for sys/time.h... yes 1.152 checking whether it is safe to define EXTENSIONS... yes 1.187 checking whether _XOPEN_SOURCE should be defined... no 1.212 checking for compilation environment... 1.215 checking for gcc... (cached) gcc 1.215 checking for gcc... (cached) gcc 1.241 checking whether the compiler supports GNU C... (cached) yes 1.241 checking whether gcc accepts -g... (cached) yes 1.241 checking for gcc option to enable C11 features... (cached) none needed 1.241 checking whether gcc understands -c and -o together... (cached) yes 1.241 checking dependency style of gcc... (cached) gcc3 1.241 checking for maximum warnings compiler flag... -Wall 1.241 checking how to run the C preprocessor... gcc -E 1.303 checking for etags... etags 1.303 checking for ar... ar 1.303 checking for ld... ld 1.304 checking how to print strings... printf 1.306 checking for a sed that does not truncate output... /usr/bin/sed 1.311 checking for grep that handles long lines and -e... /usr/bin/grep 1.313 checking for egrep... /usr/bin/grep -E 1.315 checking for fgrep... /usr/bin/grep -F 1.317 checking for ld used by gcc... ld 1.320 checking if the linker (ld) is GNU ld... yes 1.322 checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B 1.326 checking the name lister (/usr/bin/nm -B) interface... BSD nm 1.352 checking whether ln -s works... yes 1.352 checking the maximum length of command line arguments... 1572864 1.360 checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop 1.360 checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop 1.360 checking for ld option to reload object files... -r 1.361 checking for objdump... objdump 1.361 checking how to recognize dependent libraries... pass_all 1.362 checking for dlltool... no 1.363 checking how to associate runtime and link libraries... printf %s\n 1.363 checking for archiver @FILE support... @ 1.396 checking for strip... strip 1.396 checking for ranlib... ranlib 1.396 checking command to parse /usr/bin/nm -B output from gcc object... ok 1.469 checking for sysroot... no 1.469 checking for a working dd... /usr/bin/dd 1.473 checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 1.494 checking for mt... no 1.495 checking if : is a manifest tool... no 1.500 checking for dlfcn.h... yes 1.534 checking for objdir... .libs 1.603 checking if gcc supports -fno-rtti -fno-exceptions... no 1.626 checking for gcc option to produce PIC... -fPIC -DPIC 1.626 checking if gcc PIC flag -fPIC -DPIC works... yes 1.646 checking if gcc static flag -static works... yes 1.758 checking if gcc supports -c -o file.o... yes 1.793 checking if gcc supports -c -o file.o... (cached) yes 1.793 checking whether the gcc linker (ld -m elf_x86_64) supports shared libraries... yes 1.803 checking whether -lc should be explicitly linked in... no 1.833 checking dynamic linker characteristics... GNU/Linux ld.so 1.903 checking how to hardcode library paths into programs... immediate 1.903 checking whether stripping libraries is possible... yes 1.905 checking if libtool supports shared libraries... yes 1.905 checking whether to build shared libraries... yes 1.906 checking whether to build static libraries... yes 1.907 checking for doxygen... echo 1.907 checking for C compiler vendor... gnu 1.976 checking for egrep... (cached) /usr/bin/grep -E 1.976 checking return type of signal handlers... void 2.006 checking for long long... yes 2.078 checking whether IO functions support C99 size specifiers... yes 2.142 checking for an ANSI C-conforming const... yes 2.165 checking for inline... inline 2.180 checking for inline... (cached) inline 2.180 checking whether byte ordering is bigendian... no 2.258 checking whether gcc recognizes func... yes 2.288 checking whether gcc recognizes FUNCTION... yes 2.314 checking whether gcc recognizes field names in struct initialization... yes 2.333 checking for size_t... yes 2.407 checking for sa_len... no 2.431 checking /dev/urandom... yes 2.431 checking for gcc options needed to detect all undeclared functions... none needed 2.470 checking for sys/types.h... (cached) yes 2.472 checking for stdint.h... (cached) yes 2.473 checking for inttypes.h... (cached) yes 2.474 checking for pthread.h... yes 2.524 checking for stack suitable for tags... no 2.575 checking for graceful free(0)... yes 2.629 checking for sockaddr_in6... yes 2.647 checking for unistd.h... (cached) yes 2.647 checking for sys/time.h... (cached) yes 2.647 checking for fcntl.h... yes 2.678 checking for dirent.h... yes 2.712 checking for winsock2.h... no 2.750 checking for sys/socket.h... yes 2.788 checking for sys/ioctl.h... yes 2.820 checking for sys/filio.h... no 2.853 checking for sys/sockio.h... no 2.890 checking for sys/select.h... yes 2.921 checking for sys/epoll.h... yes 2.952 checking for sys/devpoll.h... no 2.985 checking for netinet/in.h... yes 3.009 checking for arpa/inet.h... yes 3.032 checking for netdb.h... yes 3.060 checking for net/if.h... yes 3.091 checking for net/if_types.h... no 3.112 checking for ifaddr.h... no 3.135 checking for netpacket/packet.h... yes 3.158 checking whether MSG_TRUNC is declared... yes 3.190 checking whether SO_RCVBUFFORCE is declared... yes 3.221 checking whether SO_SNDBUFFORCE is declared... yes 3.252 checking whether IP_ADD_MEMBERSHIP is declared... yes 3.291 checking whether IP_MULTICAST_LOOP is declared... yes 3.323 checking whether IP_MTU_DISCOVER is declared... yes 3.353 checking for struct addrinfo... yes 3.372 checking for struct sockaddr_storage... yes 3.392 checking for field ifr_index in struct ifreq... no 3.422 checking for field ifr_ifindex in struct ifreq... yes 3.451 checking for struct ifconf... yes 3.468 checking for ioctl SIOCGIFNUM... sys/sockio.h missing 3.468 checking for pthread_create in -lpthread... yes 3.512 checking for socketpair in -lsocket... no 3.544 checking for library containing clock_gettime... none required 3.590 checking for clock_gettime... yes 3.635 checking for clock_getcpuclockid... yes 3.685 checking whether CLOCK_MONOTONIC is declared... yes 3.712 checking for pkg-config... /usr/bin/pkg-config 3.714 checking for glib-2.0... checking for library containing socket... none required 3.763 checking for library containing inet_ntop... none required 3.809 checking for library containing getipnodebyname... no 3.968 checking for library containing gethostbyname... none required 4.015 checking for library containing getaddrinfo... none required 4.058 checking for working alloca.h... yes 4.105 checking for alloca... yes 4.106 checking for gettimeofday... yes 4.157 checking for strerror... yes 4.204 checking for random... yes 4.249 checking for initstate... yes 4.299 checking for tcsetattr... yes 4.352 checking for flock... yes 4.408 checking for socketpair... yes 4.470 checking for gethostname... yes 4.527 checking for gethostbyname... yes 4.597 checking for getipnodebyname... no 4.667 checking for poll... yes 4.742 checking for epoll_create... yes 4.802 checking for kqueue... no 4.875 checking for select... yes 4.943 checking for if_nameindex... yes 5.012 checking for signal... yes 5.080 checking for alarm... yes 5.135 checking for strnlen... yes 5.186 checking for getaddrinfo... yes 5.233 checking for getnameinfo... yes 5.281 checking for freeaddrinfo... yes 5.333 checking for gai_strerror... yes 5.379 checking for getifaddrs... yes 5.428 checking for getline... yes 5.474 checking for getdelim... yes 5.519 checking for getpass... yes 5.574 checking for memmem... yes 5.630 checking for memccpy... yes 5.681 checking for memspn... no 5.737 checking for memcspn... no 5.795 checking for strtoull... yes 5.848 checking for inet_ntop... yes 5.904 checking for inet_pton... yes 5.956 checking for poll... (cached) yes 5.962 checking whether SIGPIPE is declared... yes 6.050 checking for openssl... yes 6.057 checking openssl_CFLAGS... 6.057 checking openssl_LIBS... -lssl -lcrypto 6.057 checking for IP_RECVERR... yes 6.086 checking for IPV6_RECVERR... yes 6.118 checking for netinet/tcp.h... yes 6.142 checking for netinet/sctp.h... no 6.166 checking for check >= 0.9.4... checking for fnmatch.h... yes 6.206 checking for pthread_setschedparam in -lpthread... yes 6.259 checking for compress in -lz... yes 6.314 checking for dlopen in -ldl... yes 6.409 checking that generated files are newer than configure... done 6.409 configure: creating ./config.status 6.902 config.status: creating Makefile 6.914 config.status: error: cannot find input file: `packages/Makefile.in'

Dockerfile:19

17 | WORKDIR /sources/sofia-sip 18 | RUN ./bootstrap.sh 19 | >>> RUN ./configure 20 | RUN make && make install 21 |

ERROR: failed to solve: process "/bin/sh -c ./configure" did not complete successfully: exit code: 1

su-shi commented 1 week ago

@sandy53 There are two files were missed during commit and have been added since. f260671dceac2e636209153841ff7c6ae96a7de0