I did not make a complete review but the first thing I
saw is that you should move all the module interface to the .c file.
Samuel.
Unclassified.
Actually those were
incredibly useful. Thank you.
Now, when I compile my module I am getting the following error message:
16:18:13 root#proxy2:/usr/local/src/ser-0.9.0/modules/radius_cache>gcc
-c -o radius_cache.o radius_cache.c
In file included from radius_cache.c:46:
radius_cache.h:58: `NAME' undeclared here (not in a function)
radius_cache.h:58: syntax error before string constant
radius_cache.h:62: warning: initialization from incompatible pointer type
I'm not sure what to do about that. It seems to be something internal
and specific to MODULE_VERSION in the SER header.
My module:
Thanks for the help.
-Daniel
On 5/23/05, Samuel Osorio Calvo <samuel.osorio(a)nl.thalesgroup.com> wrote:
There's a simple module, called print that is
meant to be mainly an
example. So I recommend you to take a look at its interface and to start
from there your module.
I attacht also several files that a little bit old but still they are
really useful.
Luck!
Samuel.
Unclassified.
>> Daniel Corbe
<daniel.junkmail(a)gmail.com> 05/22/05 10:41PM >>>
Here's another
question:
I got my module to compile by taking _init out and reworking the
initalization of the module into something else.
Now when SER loads I get:
May 22 21:34:00 proxy2 ser: ERROR: no version info in module
</usr/local/lib/ser/modules/radius_cache.so>: Undefined symbol
"module_version"
What is module_version? How do I define it?
Thanks.
-Daniel
On 5/22/05, Daniel Corbe <daniel.junkmail(a)gmail.com> wrote:
Hello,
I have a SER module which I've written in C and I'm trying to
compile.
When I compile it I get this error:
20:53:24
root#proxy2:/usr/local/src/ser-0.9.0/modules/radius_cache>gcc
-shared -o radius_cache.so radius_cache.o
radius_cache.o: In function `_init':
radius_cache.o(.text+0x0): multiple definition of `_init'
/usr/lib/crti.o(.init+0x0): first defined here
Is there something else in SER that exports _init already?
Thanks.
-Daniel
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers