Hi all,
So I'm trying to write a new loadable module. From a combination of
example modules I thought I was set, but I have this frustrating
roadblock I can't figure out.
As soon as I have a Tcl_CreateCommand in my code, the server startup
crashes with alloc: invalid block. I have attached my .c
Slight prototype fix to my .c file, but no change to the issue/
On Sun, Mar 23, 2008 at 7:45 PM, Mark Aufflick
[EMAIL PROTECTED] wrote:
Hi all,
So I'm trying to write a new loadable module. From a combination of
example modules I thought I was set, but I have this frustrating
roadblock I
I'm not sure what module file you are using as a template, but I have used
nszlib.
Here are two examples:
nszlib:
http://junom.com/gitweb/gitweb.perl?p=aolserver.git;a=blob;f=aolserver/nszlib/nszlib.c
nsbgwrite:
On 2008.03.23, Mark Aufflick [EMAIL PROTECTED] wrote:
So I'm trying to write a new loadable module. From a combination of
example modules I thought I was set, but I have this frustrating
roadblock I can't figure out.
Can you share your code with us? Or, at least, with me?
-- Dossy
--
Dossy
Mark,
i have compiled and installed your posted version of nsperl2 on
Mac OS X 10.5.2 against aolserver 4.5 from head, and it does not crash.
Are you sure, you linked nsperl2 against the same tcl version, with the
same alloc implementation? What other modules are you loading?
The invalid block
Ah bingo! otool -L shows that nsperl2.so is linked against a different
tcl than nsd.
I assumed that including the aolserver build ns.mak would take care of
that, but since that always += the LIBS variable, the LIBS variable in
my default environment (for linking to macports) was pre-pending