RE:first draft and patch for module oriented API
Harrie Hazewinkel <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <7564190.1022682708@localhost> |
--On Wednesday, May 29, 2002 12:18 PM +1000 Ignat Vassilev <[email protected]> wrote: > Hi Harrie > > I tried to compile kannel with modules.patch but i recive error Hmm, I will try top built a patch again. I tested it here a few times and compilation was OK. Except for the test tools. I did not bother to mamke changes there. 1) Did you do a 'rm .depend ; gmake .depend'?? Otherwise, the new files (resulting in an object-file) do not end up in the libraries. 2) It also could be that the required patch lines (that includes the file bearerbox_modules.h) in the bearer_box.c did not went correctly. 3) It was a patch for the 'HEAD of CVS'. Hang on, I will see what really goes wrong. Since I did a change in CVS, the patch will change as well. New one will be provided soon. > > 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 > Harrie Internet Management Consulting mailto:[email protected] http ://www.mod-snmp.com/