I'm having trouble with the .so not getting the __ prefix - anyone else know about this? About to compile a new 7.6 and test with that as well..
Disregard this. I got another error mixed up with this one.. (@module@ mentioned earlier).. I suppose the prefix has been removed in the 7.7 branch?
Kaos wrote:
I'm having trouble with the .so not getting the __ prefix - anyone else know about this? About to compile a new 7.6 and test with that as well..
Hmmmm... on the other hand.. when the .so file doesn't get the underscore prefix, how do I inherit it in my module.pmod when the dir structure becomes:
Public.pmod/ Lang.pmod/ Lua.so Lua.pmod/ module.pmod
if I do: inherit Public.Lang.Lua; what am I inheriting... ?
Kaos wrote:
Disregard this. I got another error mixed up with this one.. (@module@ mentioned earlier).. I suppose the prefix has been removed in the 7.7 branch?
Kaos wrote:
I'm having trouble with the .so not getting the __ prefix - anyone else know about this? About to compile a new 7.6 and test with that as well..
I guess you'll be inheriting the joinnode class in the master since there ought to be one that joins the identifiers in Lua.so and Lua.pmod (or else one of them overrides the other; I'm not entirely sure what happens in that case). Needless to say, that's not what you want.
I think there has been a discussion here about how to get rid of the dirnodes and joinnodes so that inherit works as one expects, but for now it's not adviceable to try to inherit directory modules or modules joined from several places.
/ Martin Stjernholm, Roxen IS
Previous text:
2004-10-14 18:55: Subject: Re: pike -x module install (7.7)
Hmmmm... on the other hand.. when the .so file doesn't get the underscore prefix, how do I inherit it in my module.pmod when the dir structure becomes:
Public.pmod/ Lang.pmod/ Lua.so Lua.pmod/ module.pmod
if I do: inherit Public.Lang.Lua; what am I inheriting... ?
Kaos wrote:
Disregard this. I got another error mixed up with this one.. (@module@ mentioned earlier).. I suppose the prefix has been removed in the 7.7 branch?
Kaos wrote:
I'm having trouble with the .so not getting the __ prefix - anyone else know about this? About to compile a new 7.6 and test with that as well..
/ Brevbäraren
Well, since both are presumable modules (and not classes), you're shooting yourself in the foot and probably inherits master()->Joinnode.
Why are you inheriting a .pmod?
.so modules are always modules to some degree; they can "be" something else but only through a magic identifier (_module_value, iirc), so in the case of that happening in the .so file (or the .pmod, which I actually think works too) you would inherit whatever that value points to in the resulting Joinnode.
/ Mirar
Previous text:
2004-10-14 18:55: Subject: Re: pike -x module install (7.7)
Hmmmm... on the other hand.. when the .so file doesn't get the underscore prefix, how do I inherit it in my module.pmod when the dir structure becomes:
Public.pmod/ Lang.pmod/ Lua.so Lua.pmod/ module.pmod
if I do: inherit Public.Lang.Lua; what am I inheriting... ?
Kaos wrote:
Disregard this. I got another error mixed up with this one.. (@module@ mentioned earlier).. I suppose the prefix has been removed in the 7.7 branch?
Kaos wrote:
I'm having trouble with the .so not getting the __ prefix - anyone else know about this? About to compile a new 7.6 and test with that as well..
/ Brevbäraren
Ah, maybe I don't have to inherit the .so when I don't have the ___ prefix... ? :) have to try that It's from the idea that there's a __Foo.so and a module.pmod that inherits from the .so file to place it in the module path in pike, and make all the stuff in __Foo.so accessible as Foo.
I've seen dirnode's and joinnode's some when goofing around with hilfe, but can't really say I've grasped the ins and outs of it just yet :P
Thanks
Mirar @ Pike developers forum wrote:
Well, since both are presumable modules (and not classes), you're shooting yourself in the foot and probably inherits master()->Joinnode.
Why are you inheriting a .pmod?
.so modules are always modules to some degree; they can "be" something else but only through a magic identifier (_module_value, iirc), so in the case of that happening in the .so file (or the .pmod, which I actually think works too) you would inherit whatever that value points to in the resulting Joinnode.
/ Mirar
Previous text:
2004-10-14 18:55: Subject: Re: pike -x module install (7.7)
Hmmmm... on the other hand.. when the .so file doesn't get the underscore prefix, how do I inherit it in my module.pmod when the dir structure becomes:
Public.pmod/ Lang.pmod/ Lua.so Lua.pmod/ module.pmod
if I do: inherit Public.Lang.Lua; what am I inheriting... ?
Kaos wrote:
Disregard this. I got another error mixed up with this one.. (@module@ mentioned earlier).. I suppose the prefix has been removed in the 7.7 branch?
Kaos wrote:
I'm having trouble with the .so not getting the __ prefix - anyone else know about this? About to compile a new 7.6 and test with that as well..
/ Brevbäraren
I've seen dirnode's and joinnode's some when goofing around with hilfe, but can't really say I've grasped the ins and outs of it just yet :P
Well, they exist to solve two problems; for when a module is in two places (joinnode then) and for when a module is a directory (dirnode, for instance Protocols is a typical dirnode).
The module.pmod thing for dirnodes is an afterconstruct, I think, and then the dirnode will just join up with that module.pmod as well (but without the joinnode, I think).
/ Mirar
Previous text:
2004-10-15 10:00: Subject: Re: pike -x module install (7.7)
Ah, maybe I don't have to inherit the .so when I don't have the ___ prefix... ? :) have to try that It's from the idea that there's a __Foo.so and a module.pmod that inherits from the .so file to place it in the module path in pike, and make all the stuff in __Foo.so accessible as Foo.
I've seen dirnode's and joinnode's some when goofing around with hilfe, but can't really say I've grasped the ins and outs of it just yet :P
Thanks
Mirar @ Pike developers forum wrote:
Well, since both are presumable modules (and not classes), you're shooting yourself in the foot and probably inherits master()->Joinnode.
Why are you inheriting a .pmod?
.so modules are always modules to some degree; they can "be" something else but only through a magic identifier (_module_value, iirc), so in the case of that happening in the .so file (or the .pmod, which I actually think works too) you would inherit whatever that value points to in the resulting Joinnode.
/ Mirar
Previous text:
2004-10-14 18:55: Subject: Re: pike -x module install (7.7)
Hmmmm... on the other hand.. when the .so file doesn't get the underscore prefix, how do I inherit it in my module.pmod when the dir structure becomes:
Public.pmod/ Lang.pmod/ Lua.so Lua.pmod/ module.pmod
if I do: inherit Public.Lang.Lua; what am I inheriting... ?
Kaos wrote:
Disregard this. I got another error mixed up with this one.. (@module@ mentioned earlier).. I suppose the prefix has been removed in the 7.7 branch?
Kaos wrote:
I'm having trouble with the .so not getting the __ prefix - anyone else know about this? About to compile a new 7.6 and test with that as well..
/ Brevbäraren
/ Brevbäraren
pike-devel@lists.lysator.liu.se