Re: first draft and patch for module oriented API

Ignat Vassilev <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi Harrie

I tried to compile kannel with * modules.patch 
<http://www.mail-archive.com/[email protected]/msg03753/modules.patch>* 
but i recive error

gcc -D_REENTRANT=1 -I. -g -O2 -DBROKEN_PTHREADS=1 
-I/usr/include/libxml2/libxml -I/usr/include/libxml2 -I/include -Wall 
-I/usr/include/openssl -I/usr/include/mysql  -o gw/bearerbox 
gw/bearerbox.o libgw.a libwmlscript.a libwap.a libgwlib.a -lmysqlclient 
-lssl -ldl -lpam -lpthread -lresolv -lnsl -lm  -L/usr/lib -lxml2 -lz 
-L/lib -lm -L/usr/lib -lcrypto -lssl -L/usr/lib/mysql -lmysqlclient
libgwlib.a(modules.o): In function `is_allowed_by_module':
/home/ozzy/kannel/gateway/gwlib/modules.c:54: undefined reference to 
`module_array'
/home/ozzy/kannel/gateway/gwlib/modules.c:56: undefined reference to 
`module_array_size'
/home/ozzy/kannel/gateway/gwlib/modules.c:57: undefined reference to 
`module_array'
/home/ozzy/kannel/gateway/gwlib/modules.c:67: undefined reference to 
`module_array_size'
libgwlib.a(modules.o): In function `run_init':
/home/ozzy/kannel/gateway/gwlib/modules.c:84: undefined reference to 
`module_array'
/home/ozzy/kannel/gateway/gwlib/modules.c:86: undefined reference to 
`module_array_size'
/home/ozzy/kannel/gateway/gwlib/modules.c:87: undefined reference to 
`module_array'
/home/ozzy/kannel/gateway/gwlib/modules.c:93: undefined reference to 
`module_array_size'
libgwlib.a(modules.o): In function `run_start_thread':
/home/ozzy/kannel/gateway/gwlib/modules.c:104: undefined reference to 
`module_array'
/home/ozzy/kannel/gateway/gwlib/modules.c:107: undefined reference to 
`module_array_size'
/home/ozzy/kannel/gateway/gwlib/modules.c:109: undefined reference to 
`module_array_size'
/home/ozzy/kannel/gateway/gwlib/modules.c:110: undefined reference to 
`module_array'
/home/ozzy/kannel/gateway/gwlib/modules.c:116: undefined reference to 
`module_array_size'
libgwlib.a(modules.o): In function `run_stop_thread':
/home/ozzy/kannel/gateway/gwlib/modules.c:126: undefined reference to 
`module_array'
/home/ozzy/kannel/gateway/gwlib/modules.c:129: undefined reference to 
`module_array_size'
/home/ozzy/kannel/gateway/gwlib/modules.c:131: undefined reference to 
`module_array_size'
/home/ozzy/kannel/gateway/gwlib/modules.c:132: undefined reference to 
`module_array'
/home/ozzy/kannel/gateway/gwlib/modules.c:134: undefined reference to 
`module_array_size'
libgwlib.a(modules.o): In function `run_log':
/home/ozzy/kannel/gateway/gwlib/modules.c:145: undefined reference to 
`module_array'
/home/ozzy/kannel/gateway/gwlib/modules.c:147: undefined reference to 
`module_array_size'
/home/ozzy/kannel/gateway/gwlib/modules.c:148: undefined reference to 
`module_array'
/home/ozzy/kannel/gateway/gwlib/modules.c:154: undefined reference to 
`module_array_size'
libgwlib.a(modules.o): In function `run_exit':
/home/ozzy/kannel/gateway/gwlib/modules.c:164: undefined reference to 
`module_array'
/home/ozzy/kannel/gateway/gwlib/modules.c:166: undefined reference to 
`module_array_size'
/home/ozzy/kannel/gateway/gwlib/modules.c:167: undefined reference to 
`module_array'
/home/ozzy/kannel/gateway/gwlib/modules.c:169: undefined reference to 
`module_array_size'
collect2: ld returned 1 exit status
make: *** [gw/bearerbox] Error 1

Regards
Ignat
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.