[Bug 271131] net/asterisk18: utils.c:99:12: error: static declaration of 'gethostbyname_r' follows non-static declaration

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 29 Apr 2023 12:32:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271131

            Bug ID: 271131
           Summary: net/asterisk18: utils.c:99:12: error: static
                    declaration of 'gethostbyname_r' follows non-static
                    declaration
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: ohartmann@walstatt.org

CURRENT host running poudriere for 13-STABLE jails.
CURRENT: 14.0-CURRENT #30 main-n262556-82bc33d5ad2: Tue Apr 25 22:53:05 CEST
2023

Building of net/asterisk18 fails due to the error shown below.

SAME ERROR STRUCK DOWN net/asterisk16!

=>> Building net/asterisk18
build started at Sat Apr 29 11:18:12 UTC 2023
port directory: /usr/ports/net/asterisk18
package name: asterisk18-18.17.1_1
building for: FreeBSD host.der 13.2-STABLE FreeBSD 13.2-STABLE 1302505 amd64
maintained by: ports@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root  wheel  10576 Apr 25 15:38
/usr/ports/net/asterisk18/Makefile
Ports top last git commit: 5493ec9d4041
Ports top unclean checkout: no
Port dir last git commit: feb1fa34f58e
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.3.99.20220831
Host OSVERSION: 1400088
Jail OSVERSION: 1302505
Job Id: 01

---Begin Environment---
SHELL=/bin/csh
OSVERSION=1302505
UNAME_v=FreeBSD 13.2-STABLE 1302505
UNAME_r=13.2-STABLE
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
LOCALBASE=/usr/local
USER=root
POUDRIERE_NAME=poudriere-git
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.3.99.20220831
MAKEOBJDIRPREFIX=/pool/sources/13-STABLE/obj/
MASTERMNT=/pool/poudriere/data/.m/13-amd64-head-default/ref
LC_COLLATE=C
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=screen
OUTPUT_REDIRECTED_STDERR=4
OUTPUT_REDIRECTED=1
PWD=/pool/poudriere/data/.m/13-amd64-head-default/01/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=13-amd64-head-default
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/pool/poudriere/data/.m/13-amd64-head-default/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.3.99.20220831
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
DEPENDS_ARGS=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
===> The following configuration options are available for
asterisk18-18.17.1_1:
     ASTVERSION=off: Install astversion (requires bash)
     BACKTRACE=off: Stack backtrace support via (lib)execinfo
     CURL=on: Data transfer support via cURL
     DAHDI=on: DAHDI support
     EXCHANGE=off: Exchange calendar support
     FREETDS=on: FreeTDS library support
     G729=on: Install G.729 format sounds for Music-on-Hold (MoH)
     GEOLOCATION=off: Enable SIP Geolocation support
     LDAP=on: LDAP protocol support
     LUA=on: Lua scripting language support
     MACRO=on: Enable app_macro (deprecated)
     MP3PLAYER=on: Install MP3 Player for Music-On-Hold (mpg123)
     OOH323=off: ooh323 support
     OPTIMIZED_CFLAGS=on: Use extra compiler optimizations
     PJSIP=on: Build the PJSIP based SIP channel
     PORTAUDIO=on: PortAudio library support
     RADIUS=on: RADIUS protocol support
     SNMP=on: SNMP network protocol support
     SPANDSP=on: SpanDSP faxing support
     SRTP=on: SecureRTP support
     SYSINFO=off: Use devel/libsysinfo to get system information
     URIPARSER=on: Use RFC 3986 compliant uriparser library
     XMLDOC=on: Build and install XML documentation
     XMPP=on: XMPP/GTALK support
====> Menuselect Interface Backend: you have to choose at least one of them
     NCURSES=off: Console (text) interface support
     NEWT=on: Newt User Interface
====> Encoder/Decoder (Codec) Support
     GSM=on: GSM codec support
     NEWG711=off: New G711 Codec
     OPUS=on: Opus Codec
     SPEEX=on: Speex audio format support
     VORBIS=on: Ogg Vorbis audio codec support
====> Database Support
     MYSQL=on: MySQL database support
     ODBC=on: ODBC database backend
     PGSQL=on: PostgreSQL database support
===> Use 'make config' to modify these settings
---End OPTIONS List---

[...]
cc -o version.o -c version.c -MD -MT version.o -MF .version.o.d -MP -pthread
-I/wrkdirs/usr/ports/net/asterisk18/work/asterisk-18.17.1/include -O2 -pipe 
-I/usr/local/include/lua54 -DLIBICONV_PLUG -DLDAP_DEPRECATED
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  
-I/usr/local/include/libxml2 -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations  -fblocks  -isystem /usr/local/include -O3
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -march=native -DAST_MODULE=\"core\"
-DAST_IN_CORE -O2 -pipe  -I/usr/local/include/lua54 -DLIBICONV_PLUG
-DLDAP_DEPRECATED -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing  -Wno-unused-value -Wno-parentheses-equality 
cc -o xml.o -c xml.c -MD -MT xml.o -MF .xml.o.d -MP -pthread
-I/wrkdirs/usr/ports/net/asterisk18/work/asterisk-18.17.1/include -O2 -pipe 
-I/usr/local/include/lua54 -DLIBICONV_PLUG -DLDAP_DEPRECATED
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  
-I/usr/local/include/libxml2 -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations  -fblocks  -isystem /usr/local/include -O3
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -march=native -DAST_MODULE=\"core\"
-DAST_IN_CORE -O2 -pipe  -I/usr/local/include/lua54 -DLIBICONV_PLUG
-DLDAP_DEPRECATED -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing  -Wno-unused-value -Wno-parentheses-equality 
utils.c:99:12: error: static declaration of 'gethostbyname_r' follows
non-static declaration
static int gethostbyname_r (const char *name, struct hostent *ret, char *buf,

-- 
You are receiving this mail because:
You are the assignee for the bug.