* Package: net-misc/astmanproxy-1.28.2 * Repository: gentoo * Maintainer: chainsaw@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking astmanproxy-1.28.2.tar.gz to /var/tmp/portage/net-misc/astmanproxy-1.28.2/work >>> Source unpacked in /var/tmp/portage/net-misc/astmanproxy-1.28.2/work >>> Preparing source in /var/tmp/portage/net-misc/astmanproxy-1.28.2/work/astmanproxy-1.28.2 ... * Applying astmanproxy-1.28.2-gentoo.diff ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/net-misc/astmanproxy-1.28.2/work/astmanproxy-1.28.2 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/net-misc/astmanproxy-1.28.2/work/astmanproxy-1.28.2 ... /var/tmp/portage/net-misc/astmanproxy-1.28.2/temp/environment: line 1960: raw-ldflags: command not found make -j1 CC=x86_64-pc-linux-gnu-gcc 'LDFLAGS=-Wl,-O1 -Wl,--as-needed' LD=x86_64-pc-linux-gnu-ld RAWLDFLAGS= x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -O2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Isrc/include -I/usr/include/openssl -iquotesrc/include '-DPROXY_VERSION="1.28.2"' '-DCDIR="/etc/asterisk"' '-DCFILE="astmanproxy.conf"' '-DMDIR="/usr/lib64/astmanproxy/modules"' '-DPDIR="/etc/asterisk"' '-DPFILE="astmanproxy.users"' -c -o astmanproxy.o src/astmanproxy.c src/astmanproxy.c: In function ‘WriteClients’: src/astmanproxy.c:306:24: warning: comparison between pointer and zero character constant [-Wpointer-compare] 306 | if ( c->untilevent == '\0' || !strncasecmp( event, c->untilevent, MAX_LEN ) ) { | ^~ src/astmanproxy.c:306:10: note: did you mean to dereference the pointer? 306 | if ( c->untilevent == '\0' || !strncasecmp( event, c->untilevent, MAX_LEN ) ) { | ^ src/astmanproxy.c: In function ‘main’: src/astmanproxy.c:764:6: warning: variable ‘cli_addrlen’ set but not used [-Wunused-but-set-variable] 764 | int cli_addrlen; | ^~~~~~~~~~~ In file included from /usr/include/string.h:494, from src/include/astmanproxy.h:5, from src/astmanproxy.c:12: In function ‘strncpy’, inlined from ‘setactionid’ at src/astmanproxy.c:372:3: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/astmanproxy.c: In function ‘setactionid’: src/astmanproxy.c:372:3: note: length computed here 372 | strncpy(actionid, s->actionid, strlen(s->actionid)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:494, from src/include/astmanproxy.h:5, from src/astmanproxy.c:12: In function ‘strncpy’, inlined from ‘setactionid’ at src/astmanproxy.c:369:3: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 1024 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -O2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Isrc/include -I/usr/include/openssl -iquotesrc/include '-DPROXY_VERSION="1.28.2"' '-DCDIR="/etc/asterisk"' '-DCFILE="astmanproxy.conf"' '-DMDIR="/usr/lib64/astmanproxy/modules"' '-DPDIR="/etc/asterisk"' '-DPFILE="astmanproxy.users"' -c -o config.o src/config.c src/config.c: In function ‘LoadHandlers’: src/config.c:194:25: warning: ‘%s’ directive writing up to 255 bytes into a region of size between 0 and 79 [-Wformat-overflow=] 194 | sprintf(modfile, "%s/%s", moddir, d->d_name); | ^~ In file included from /usr/include/stdio.h:867, from src/include/astmanproxy.h:2, from src/config.c:14: /usr/include/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 2 and 336 bytes into a destination of size 80 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:494, from src/include/astmanproxy.h:5, from src/config.c:14: In function ‘strncpy’, inlined from ‘LoadHandlers’ at src/config.c:192:4: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin___strncpy_chk’ specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/config.c: In function ‘LoadHandlers’: src/config.c:192:28: note: length computed here 192 | strncpy(fmt, d->d_name, strlen(d->d_name) - 3); | ^~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -O2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Isrc/include -I/usr/include/openssl -iquotesrc/include '-DPROXY_VERSION="1.28.2"' '-DCDIR="/etc/asterisk"' '-DCFILE="astmanproxy.conf"' '-DMDIR="/usr/lib64/astmanproxy/modules"' '-DPDIR="/etc/asterisk"' '-DPFILE="astmanproxy.users"' -c -o config_perms.o src/config_perms.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -O2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Isrc/include -I/usr/include/openssl -iquotesrc/include '-DPROXY_VERSION="1.28.2"' '-DCDIR="/etc/asterisk"' '-DCFILE="astmanproxy.conf"' '-DMDIR="/usr/lib64/astmanproxy/modules"' '-DPDIR="/etc/asterisk"' '-DPFILE="astmanproxy.users"' -c -o common.o src/common.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -O2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Isrc/include -I/usr/include/openssl -iquotesrc/include '-DPROXY_VERSION="1.28.2"' '-DCDIR="/etc/asterisk"' '-DCFILE="astmanproxy.conf"' '-DMDIR="/usr/lib64/astmanproxy/modules"' '-DPDIR="/etc/asterisk"' '-DPFILE="astmanproxy.users"' -c -o proxyfunc.o src/proxyfunc.c In file included from /usr/include/string.h:494, from src/include/astmanproxy.h:5, from src/proxyfunc.c:11: In function ‘strncpy’, inlined from ‘do_AddToStack’ at src/proxyfunc.c:426:3: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 80 equals destination size [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -O2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Isrc/include -I/usr/include/openssl -iquotesrc/include '-DPROXY_VERSION="1.28.2"' '-DCDIR="/etc/asterisk"' '-DCFILE="astmanproxy.conf"' '-DMDIR="/usr/lib64/astmanproxy/modules"' '-DPDIR="/etc/asterisk"' '-DPFILE="astmanproxy.users"' -c -o log.o src/log.c x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -O2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Isrc/include -I/usr/include/openssl -iquotesrc/include '-DPROXY_VERSION="1.28.2"' '-DCDIR="/etc/asterisk"' '-DCFILE="astmanproxy.conf"' '-DMDIR="/usr/lib64/astmanproxy/modules"' '-DPDIR="/etc/asterisk"' '-DPFILE="astmanproxy.users"' -c -o ssl.o src/ssl.c src/ssl.c: In function ‘init_secure’: src/ssl.c:59:7: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 59 | meth = SSLv23_server_method(); | ^ src/ssl.c: In function ‘client_init_secure’: src/ssl.c:90:7: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 90 | meth = SSLv23_client_method(); | ^ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -O2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Isrc/include -I/usr/include/openssl -iquotesrc/include '-DPROXY_VERSION="1.28.2"' '-DCDIR="/etc/asterisk"' '-DCFILE="astmanproxy.conf"' '-DMDIR="/usr/lib64/astmanproxy/modules"' '-DPDIR="/etc/asterisk"' '-DPFILE="astmanproxy.users"' -c -o md5.o src/md5.c src/md5.c: In function ‘MD5Final’: src/md5.c:155:23: warning: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] 155 | memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */ | ^ x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -O2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Isrc/include -I/usr/include/openssl -iquotesrc/include '-DPROXY_VERSION="1.28.2"' '-DCDIR="/etc/asterisk"' '-DCFILE="astmanproxy.conf"' '-DMDIR="/usr/lib64/astmanproxy/modules"' '-DPDIR="/etc/asterisk"' '-DPFILE="astmanproxy.users"' -c -o xml.o src/xml.c src/xml.c: In function ‘_write’: src/xml.c:75:19: warning: ‘> ’ directive writing 3 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] 75 | sprintf(buf, "<%s>\r\n", xmldoctag); | ^~~~~ In file included from /usr/include/stdio.h:867, from src/include/astmanproxy.h:2, from src/xml.c:11: /usr/include/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 5 and 1028 bytes into a destination of size 1024 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/xml.c:92:37: warning: ‘%s’ directive writing up to 3071 bytes into a region of size 3050 [-Wformat-overflow=] 83 | lpos = xmlescaped; | ~~~~~~~~~~ ...... 92 | sprintf(outstring, " <%s Value=\"%s\"/>\r\n", XML_UNPARSED, lpos); | ^~ In file included from /usr/include/stdio.h:867, from src/include/astmanproxy.h:2, from src/xml.c:11: /usr/include/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 28 and 3099 bytes into a destination of size 3072 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/xml.c:95:18: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 1022 [-Wformat-overflow=] 95 | sprintf(buf, "\r\n\r\n", xmldoctag); | ^~ ~~~~~~~~~ In file included from /usr/include/stdio.h:867, from src/include/astmanproxy.h:2, from src/xml.c:11: /usr/include/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 8 and 1031 bytes into a destination of size 1024 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -shared -Xlinker -x xml.o -o xml.so x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -O2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Isrc/include -I/usr/include/openssl -iquotesrc/include '-DPROXY_VERSION="1.28.2"' '-DCDIR="/etc/asterisk"' '-DCFILE="astmanproxy.conf"' '-DMDIR="/usr/lib64/astmanproxy/modules"' '-DPDIR="/etc/asterisk"' '-DPFILE="astmanproxy.users"' -c -o standard.o src/standard.c x86_64-pc-linux-gnu-gcc -shared -Xlinker -x standard.o -o standard.so x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -O2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Isrc/include -I/usr/include/openssl -iquotesrc/include '-DPROXY_VERSION="1.28.2"' '-DCDIR="/etc/asterisk"' '-DCFILE="astmanproxy.conf"' '-DMDIR="/usr/lib64/astmanproxy/modules"' '-DPDIR="/etc/asterisk"' '-DPFILE="astmanproxy.users"' -c -o csv.o src/csv.c x86_64-pc-linux-gnu-gcc -shared -Xlinker -x csv.o -o csv.so x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -O2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Isrc/include -I/usr/include/openssl -iquotesrc/include '-DPROXY_VERSION="1.28.2"' '-DCDIR="/etc/asterisk"' '-DCFILE="astmanproxy.conf"' '-DMDIR="/usr/lib64/astmanproxy/modules"' '-DPDIR="/etc/asterisk"' '-DPFILE="astmanproxy.users"' -c -o http.o src/http.c src/http.c: In function ‘_read’: src/http.c:198:23: warning: comparison between pointer and zero character constant [-Wpointer-compare] 198 | if ( s->untilevent != '\0' && !strncasecmp(line, "X-Until-Event: ", 15) ) | ^~ src/http.c:198:9: note: did you mean to dereference the pointer? 198 | if ( s->untilevent != '\0' && !strncasecmp(line, "X-Until-Event: ", 15) ) | ^ src/http.c:215:38: warning: ‘501 Not Implemented’ directive writing 19 bytes into a region of size 15 [-Wformat-overflow=] 215 | sprintf(status, "501 Not Implemented"); | ~~~~~~~~~~~~~~~^~~~ In file included from /usr/include/stdio.h:867, from src/include/astmanproxy.h:2, from src/http.c:11: /usr/include/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output 20 bytes into a destination of size 15 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:494, from src/include/astmanproxy.h:5, from src/http.c:11: In function ‘strncpy’, inlined from ‘_read’ at src/http.c:206:6: /usr/include/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ output may be truncated copying 4 bytes from a string of length 1023 [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-gcc -shared -Xlinker -x http.o -o http.so x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -O2 -D_REENTRANT -D_GNU_SOURCE -fPIC -Isrc/include -I/usr/include/openssl -iquotesrc/include '-DPROXY_VERSION="1.28.2"' '-DCDIR="/etc/asterisk"' '-DCFILE="astmanproxy.conf"' '-DMDIR="/usr/lib64/astmanproxy/modules"' '-DPDIR="/etc/asterisk"' '-DPFILE="astmanproxy.users"' -o astmanproxy -Wl,-E astmanproxy.o config.o config_perms.o common.o proxyfunc.o log.o ssl.o md5.o -lssl -ldl -pthread /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: config.o:(.bss+0x0): multiple definition of `pc'; astmanproxy.o:(.bss+0x180): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: config_perms.o:(.bss+0x0): multiple definition of `pc'; astmanproxy.o:(.bss+0x180): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: common.o:(.bss+0x0): multiple definition of `pc'; astmanproxy.o:(.bss+0x180): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: proxyfunc.o:(.bss+0x0): multiple definition of `pc'; astmanproxy.o:(.bss+0x180): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: log.o:(.bss+0x0): multiple definition of `pc'; astmanproxy.o:(.bss+0x180): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ssl.o:(.bss+0x120): multiple definition of `pc'; astmanproxy.o:(.bss+0x180): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: md5.o:(.bss+0x0): multiple definition of `pc'; astmanproxy.o:(.bss+0x180): first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:82: astmanproxy] Error 1 * ERROR: net-misc/astmanproxy-1.28.2::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-misc/astmanproxy-1.28.2::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-misc/astmanproxy-1.28.2::gentoo'`. * The complete build log is located at '/var/log/portage/net-misc:astmanproxy-1.28.2:20200128-074511.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-misc/astmanproxy-1.28.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-misc/astmanproxy-1.28.2/temp/environment'. * Working directory: '/var/tmp/portage/net-misc/astmanproxy-1.28.2/work/astmanproxy-1.28.2' * S: '/var/tmp/portage/net-misc/astmanproxy-1.28.2/work/astmanproxy-1.28.2'