Re: compiling 1.3.2 on FreeBSD 5.2.1

Dimitri Aivaliotis <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization EveryWare AG
Message-ID <[email protected]>
Hello,

On Sat, 21 Aug 2004 03:03:15 +0200
Stipe Tolj <[email protected]> wrote:

> sorry, the patch has been stripped and there was something missing. 
> Please use the attached one.
> 
>

Thank you for the patch.  Unfortunately, I'm still getting:

gcc -D_REENTRANT=1 -I. -Igw  -pthread -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/include/openssl -I/usr/local/include/mysql -o utils/seewbmp.o -c utils/seewbmp.c
gcc -D_REENTRANT=1 -I. -Igw  -pthread -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/include/openssl -I/usr/local/include/mysql -o utils/mtbatch.o -c utils/mtbatch.c
gcc -D_REENTRANT=1 -I. -Igw  -pthread -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/include/openssl -I/usr/local/include/mysql -o utils/run_kannel_box.o -c utils/run_kannel_box.c
gcc -D_REENTRANT=1 -I. -Igw  -pthread -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/include/openssl -I/usr/local/include/mysql  -o wmlscript/wmlsc wmlscript/wmlsc.o libgw.a libwmlscript.a libwap.a libgwlib.a -lssl -lm  -pthread -lc_r -L/usr/local/lib -lxml2 -lz -L/usr/local/lib -liconv -lm -L/usr/lib -lcrypto -lssl -L/usr/local/lib/mysql -lmysqlclient_r -lc_r -lz -lcrypt -lm  -lc_r
libgwlib.a(counter.o): In function `counter_create':
counter.o(.text+0x1f): undefined reference to `pthread_spin_init'
libgwlib.a(counter.o): In function `counter_destroy':
counter.o(.text+0x45): undefined reference to `pthread_spin_destroy'
libgwlib.a(counter.o): In function `counter_increase':
counter.o(.text+0x69): undefined reference to `pthread_spin_lock'
counter.o(.text+0x86): undefined reference to `pthread_spin_unlock'
libgwlib.a(counter.o): In function `counter_increase_with':
counter.o(.text+0xa1): undefined reference to `pthread_spin_lock'
counter.o(.text+0xc7): undefined reference to `pthread_spin_unlock'
libgwlib.a(counter.o): In function `counter_value':
counter.o(.text+0xe1): undefined reference to `pthread_spin_lock'
counter.o(.text+0xf8): undefined reference to `pthread_spin_unlock'
libgwlib.a(counter.o): In function `counter_decrease':
counter.o(.text+0x111): undefined reference to `pthread_spin_lock'
counter.o(.text+0x137): undefined reference to `pthread_spin_unlock'
libgwlib.a(counter.o): In function `counter_set':
counter.o(.text+0x151): undefined reference to `pthread_spin_lock'
counter.o(.text+0x171): undefined reference to `pthread_spin_unlock'
gmake: *** [wmlscript/wmlsc] Error 1


I noticed your comment in the patch:

# Do not include libc_r directly, use -pthread flag.

but it seems that -lc_r is still included in the gcc line.  How can I get this removed.


- Dimitri



-- 
Dimitri Aivaliotis
EveryWare AG
Birmensdorferstrasse 125
8003 Zurich

tel: +41 (1) 466 60 00
fax: +41 (1) 466 60 10
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.