From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jan 18 22:40:08 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0ABDF16A41F for ; Wed, 18 Jan 2006 22:40:08 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9D9A43D49 for ; Wed, 18 Jan 2006 22:40:06 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k0IMe6Ys032368 for ; Wed, 18 Jan 2006 22:40:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k0IMe6KU032366; Wed, 18 Jan 2006 22:40:06 GMT (envelope-from gnats) Resent-Date: Wed, 18 Jan 2006 22:40:06 GMT Resent-Message-Id: <200601182240.k0IMe6KU032366@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mina Naguib Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 14AFC16A437 for ; Wed, 18 Jan 2006 22:33:21 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC9F643D45 for ; Wed, 18 Jan 2006 22:33:20 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k0IMXKd8052871 for ; Wed, 18 Jan 2006 22:33:20 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k0IMXKL2052870; Wed, 18 Jan 2006 22:33:20 GMT (envelope-from nobody) Message-Id: <200601182233.k0IMXKL2052870@www.freebsd.org> Date: Wed, 18 Jan 2006 22:33:20 GMT From: Mina Naguib To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/91977: net/asterisk 1.2.1: Fails to compile in several places X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jan 2006 22:40:08 -0000 >Number: 91977 >Category: ports >Synopsis: net/asterisk 1.2.1: Fails to compile in several places >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 18 22:40:06 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Mina Naguib >Release: RELENG_4 >Organization: >Environment: FreeBSD thecouch.homeip.net 4.11-STABLE FreeBSD 4.11-STABLE #0: Sat Sep 10 17:14:54 EDT 2005 root@thecouch.homeip.net:/usr/obj/usr/src/sys/MINA i386 >Description: The asterisk port fails to compile in a couple of places. This is encoutered when upgrading from the current version in ports 1.0.9_2 using portupgrade Problem 1: In the "channels" subdirectory, croaks with: cc -O2 -pipe -march=pentiumpro -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -I/usr/local/include -L/usr/local/lib -march=i386 -D_THREAD_SAFE -I/usr/local/include/spandsp -DZAPTEL_OPTIMIZATIONS -fomit-frame-pointer -I/usr/local/include -L/usr/local/lib -Wno-missing-prototypes -Wno-missing-declarations -DZAPATA_PRI -DIAX_TRUNKING -DCRYPTO -fPIC -c -o chan_h323.o chan_h323.c In file included from chan_h323.c:34: /usr/include/sys/socket.h:52: syntax error before `sa_family_t' /usr/include/sys/socket.h:52: warning: type defaults to `int' in declaration of `sa_family_t' /usr/include/sys/socket.h:52: warning: data definition has no type or storage class /usr/include/sys/socket.h:163: syntax error before `u_char' /usr/include/sys/socket.h:174: syntax error before `u_short' /usr/include/sys/socket.h:188: syntax error before `u_char' /usr/include/sys/socket.h:190: `int64_t' undeclared here (not in a function) /usr/include/sys/socket.h:190: `u_char' undeclared here (not in a function) /usr/include/sys/socket.h:190: size of array `__ss_pad1' is too large /usr/include/sys/socket.h:191: syntax error before `int64_t' /usr/include/sys/socket.h:192: `u_char' undeclared here (not in a function) /usr/include/sys/socket.h:192: `int64_t' undeclared here (not in a function) /usr/include/sys/socket.h:192: `u_char' undeclared here (not in a function) /usr/include/sys/socket.h:192: `int64_t' undeclared here (not in a function) /usr/include/sys/socket.h:359: syntax error before `pid_t' /usr/include/sys/socket.h:364: syntax error before `gid_t' /usr/include/sys/socket.h:399: syntax error before `u_short' /usr/include/sys/socket.h:407: syntax error before `caddr_t' /usr/include/sys/socket.h:411: syntax error before `caddr_t' In file included from chan_h323.c:34: /usr/include/sys/socket.h:444: syntax error before `recv' /usr/include/sys/socket.h:444: syntax error before `size_t' /usr/include/sys/socket.h:444: warning: type defaults to `int' in declaration of `recv' /usr/include/sys/socket.h:444: warning: function declaration isn't a prototype /usr/include/sys/socket.h:444: warning: data definition has no type or storage class /usr/include/sys/socket.h:445: syntax error before `recvfrom' /usr/include/sys/socket.h:445: syntax error before `size_t' /usr/include/sys/socket.h:445: warning: type defaults to `int' in declaration of `recvfrom' /usr/include/sys/socket.h:445: warning: function declaration isn't a prototype /usr/include/sys/socket.h:445: warning: data definition has no type or storage class /usr/include/sys/socket.h:446: syntax error before `recvmsg' /usr/include/sys/socket.h:446: warning: type defaults to `int' in declaration of `recvmsg' /usr/include/sys/socket.h:446: warning: data definition has no type or storage class /usr/include/sys/socket.h:447: syntax error before `send' /usr/include/sys/socket.h:447: syntax error before `size_t' /usr/include/sys/socket.h:447: warning: type defaults to `int' in declaration of `send' /usr/include/sys/socket.h:447: warning: function declaration isn't a prototype /usr/include/sys/socket.h:447: warning: data definition has no type or storage class /usr/include/sys/socket.h:448: syntax error before `sendto' /usr/include/sys/socket.h:449: syntax error before `size_t' /usr/include/sys/socket.h:449: warning: type defaults to `int' in declaration of `sendto' /usr/include/sys/socket.h:449: warning: function declaration isn't a prototype /usr/include/sys/socket.h:449: warning: data definition has no type or storage class /usr/include/sys/socket.h:450: syntax error before `sendmsg' /usr/include/sys/socket.h:450: warning: type defaults to `int' in declaration of `sendmsg' /usr/include/sys/socket.h:450: warning: data definition has no type or storage class /usr/include/sys/socket.h:451: syntax error before `off_t' /usr/include/sys/socket.h:451: warning: function declaration isn't a prototype In file included from chan_h323.c:42: /usr/include/arpa/inet.h:89: warning: parameter has incomplete type /usr/include/arpa/inet.h:92: warning: parameter has incomplete type /usr/include/arpa/inet.h:96: warning: parameter has incomplete type chan_h323.c: In function `connection_made': chan_h323.c:1236: warning: unused variable `c' chan_h323.c: In function `chan_ringing': chan_h323.c:1438: warning: unused variable `c' gmake[1]: *** [chan_h323.o] Error 1 gmake[1]: Leaving directory `/usr/ports/net/asterisk/work/asterisk-1.2.1/channels' gmake: *** [subdirs] Error 1 *** Error code 2 Problem 2: In the "apps" subdirectory, croaks with: cc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -I/include -L/lib -march=i386 -fomit-frame-pointer -I/include -L/lib -fPIC -c -o app_curl.o app_curl.c app_curl.c:29: curl/curl.h: No such file or directory gmake[1]: *** [app_curl.o] Error 1 gmake[1]: Leaving directory `/usr/ports/net/asterisk/work/asterisk-1.2.1/apps' gmake: *** [subdirs] Error 1 >How-To-Repeat: portupgrade asterisk >Fix: For problem 1: Not a fix, but changing to the work directory and running `gmake` no longer croaks and finishes the channels subdirectory. I don't know why it does that if the compile of chan_h323.c failed For problem 2: On the CLI manually setting CFLAGS="-I /usr/local/include" makes it find curl/curl.h, however a new compile problem causes a different croak: cc -I /usr/local/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -I/include -L/lib -march=i386 -fomit-frame-pointer -I/include -L/lib -fPIC -c -o app_curl.o app_curl.c app_curl.c: In function `curl_exec': app_curl.c:132: warning: implicit declaration of function `ast_strlen_zero' app_curl.c: In function `acf_curl_exec': app_curl.c:180: warning: implicit declaration of function `LOCAL_USER_ACF_ADD' app_curl.c:198: warning: implicit declaration of function `ast_copy_string' app_curl.c: At top level: app_curl.c:209: variable `acf_curl' has initializer but incomplete type app_curl.c:210: unknown field `name' specified in initializer app_curl.c:210: warning: excess elements in struct initializer app_curl.c:210: warning: (near initialization for `acf_curl') app_curl.c:211: unknown field `synopsis' specified in initializer app_curl.c:211: warning: excess elements in struct initializer app_curl.c:211: warning: (near initialization for `acf_curl') app_curl.c:212: unknown field `syntax' specified in initializer app_curl.c:212: warning: excess elements in struct initializer app_curl.c:212: warning: (near initialization for `acf_curl') app_curl.c:213: unknown field `desc' specified in initializer app_curl.c:215: warning: excess elements in struct initializer app_curl.c:215: warning: (near initialization for `acf_curl') app_curl.c:216: unknown field `read' specified in initializer app_curl.c:216: warning: excess elements in struct initializer app_curl.c:216: warning: (near initialization for `acf_curl') app_curl.c: In function `unload_module': app_curl.c:223: warning: implicit declaration of function `ast_custom_function_unregister' app_curl.c: In function `load_module': app_curl.c:235: warning: implicit declaration of function `ast_custom_function_register' gmake[1]: *** [app_curl.o] Error 1 gmake[1]: Leaving directory `/usr/ports/net/asterisk/work/asterisk-1.2.1/apps' gmake: *** [subdirs] Error 1 >Release-Note: >Audit-Trail: >Unformatted: