[asterisk-dev] Build 1.4 on freebsd fails

Olle E. Johansson oej at edvina.net
Tue Sep 22 07:54:44 CDT 2009


Just upgraded my 1.4 on FreeBSD 5.5 stable. The latest svn doesn't  
compile properly.
Configure runs properly and finds everything it should.

Random data below :-)

/O

Running make

- It can't find the libs in /usr/local/lib (iksemel, odbc is there)

Pthread fails
- /usr/local/src/asterisk-1.4-edv/main/pbx.c:5147: undefined reference  
to `pthread_attr_init'

Noisy build output:

gcc -o chan_gtalk.o -c chan_gtalk.c -MD -MT chan_gtalk.o - 
MF .chan_gtalk.o.d -MP -D_THREAD_SAFE -pthread -I/usr/local/src/ 
asterisk-1.4-edv/include -pipe -Wall -Wstrict-prototypes -Wmissing- 
prototypes -Wmissing-declarations -g3 -isystem /usr/local/include - 
march=i386   -fPIC -DAST_MODULE=\"chan_gtalk\"
gcc  -o chan_gtalk.so -D_THREAD_SAFE -pthread    -shared -Wl,--version- 
script,/usr/local/src/asterisk-1.4-edv/default.exports  chan_gtalk.o  - 
liksemel   -lgnutls -lz -lgcrypt -lgpg-error
/usr/bin/ld: cannot find -liksemel


Config.log on iksemel:

configure:18413: checking for iks_start_sasl in -liksemel
configure:18448: gcc -o conftest -g -O2 -I/usr/local/include -L/usr/ 
local/lib conftest.c -liksemel    >&5
configure:18454: $? = 0
configure:18472: result: yes
configure:18502: checking iksemel.h usability
configure:18519: gcc -c -g -O2 -I/usr/local/include   conftest.c >&5
configure:18525: $? = 0
configure:18539: result: yes
configure:18543: checking iksemel.h presence
configure:18558: gcc -E -I/usr/local/include   conftest.c
configure:18564: $? = 0
configure:18578: result: yes
configure:18611: checking for iksemel.h
configure:18618: result: yes
configure:18681: checking for gnutls_bye in -lgnutls
configure:18716: gcc -o conftest -g -O2 -I/usr/local/include -L/usr/ 
local/lib conftest.c -lgnutls  -lz -lgc
rypt -lgpg-error  >&5
configure:18722: $? = 0
configure:18740: result: yes




More information about the asterisk-dev mailing list