Re: [AOLSERVER] writing an aolserver 4 module frustration

2008-03-23 Thread Mark Aufflick
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

Re: [AOLSERVER] writing an aolserver 4 module frustration

2008-03-23 Thread Tom Jackson
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:

Re: [AOLSERVER] writing an aolserver 4 module frustration

2008-03-23 Thread Dossy Shiobara
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

Re: [AOLSERVER] writing an aolserver 4 module frustration

2008-03-23 Thread Gustaf Neumann
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

Re: [AOLSERVER] writing an aolserver 4 module frustration

2008-03-23 Thread Mark Aufflick
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