Subject: pkg/36491: Asterisk does not compile properly
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <info@sicurezzarete.com>
List: pkgsrc-bugs
Date: 06/14/2007 13:00:01
>Number:         36491
>Category:       pkg
>Synopsis:       Asterisk does not compile properly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 14 13:00:00 +0000 2007
>Originator:     Matteo Garofano
>Release:        
>Organization:
voltalinux
>Environment:
Linux, kernel 2.4.33.3 
-----
gcc -v
Reading specs from /usr/lib/gcc/i486-slackware-linux/3.4.6/specs
Configured with: ../gcc-3.4.6/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 3.4.6
----
pkgsrc 2007Q1
>Description:
app_curl.c:29:23: curl/curl.h: No such file or directory
app_curl.c: In function `curl_internal':
app_curl.c:95: error: `CURL' undeclared (first use in this function)
app_curl.c:95: error: (Each undeclared identifier is reported only once
app_curl.c:95: error: for each function it appears in.)
app_curl.c:95: error: `curl' undeclared (first use in this function)
app_curl.c:97: warning: implicit declaration of function `curl_easy_init'
app_curl.c:103: warning: implicit declaration of function `curl_easy_setopt'
app_curl.c:103: error: `CURLOPT_URL' undeclared (first use in this function)
app_curl.c:104: error: `CURLOPT_WRITEFUNCTION' undeclared (first use in this function)
app_curl.c:105: error: `CURLOPT_WRITEDATA' undeclared (first use in this function)
app_curl.c:106: error: `CURLOPT_USERAGENT' undeclared (first use in this function)
app_curl.c:109: error: `CURLOPT_POST' undeclared (first use in this function)
app_curl.c:110: error: `CURLOPT_POSTFIELDS' undeclared (first use in this function)
app_curl.c:113: warning: implicit declaration of function `curl_easy_perform'
app_curl.c:114: warning: implicit declaration of function `curl_easy_cleanup'
app_curl.c: In function `unload_module':
app_curl.c:226: warning: implicit declaration of function `curl_global_cleanup'
app_curl.c: In function `load_module':
app_curl.c:235: warning: implicit declaration of function `curl_global_init'
app_curl.c:235: error: `CURL_GLOBAL_ALL' undeclared (first use in this function)

[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/usr/pkgsrc/comms/asterisk/work/.gcc/bin/gcc -O2 -I/usr/pkgsrc/comms/asterisk/work/.buildlink/
include -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -Iincl
ude -I../include -D_REENTRANT -D_GNU_SOURCE -march=i686 -fomit-frame-pointer -fPIC -c -o app_c
url.o app_curl.c -L/usr/pkgsrc/comms/asterisk/work/.buildlink/lib
make[1]: *** [app_curl.o] Error 1
make[1]: Leaving directory `/usr/pkgsrc/comms/asterisk/work/asterisk-1.2.17/apps'
make: *** [subdirs] Error 1
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/comms/asterisk
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/comms/asterisk

>How-To-Repeat:
Just try to compile asterisk using pkgsrc 2007Q1 and linux 
>Fix: