Date: Wed, 18 Jan 2006 22:33:20 GMT From: Mina Naguib <mina.freebsd@naguib.ca> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/91977: net/asterisk 1.2.1: Fails to compile in several places Message-ID: <200601182233.k0IMXKL2052870@www.freebsd.org> Resent-Message-ID: <200601182240.k0IMe6KU032366@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601182233.k0IMXKL2052870>