this does not work

libs/std/socket.c: In function 'socket_bind':
libs/std/socket.c:372: error: 'errno' undeclared (first use in this function) libs/std/socket.c:372: error: (Each undeclared identifier is reported only once
libs/std/socket.c:372: error: for each function it appears in.)
make: *** [libs/std/socket.o] Error 1

if I change like you suggested:

if( path == NULL )
   path = "/usr/lib/neko:/usr/local/lib/neko:/usr/bin:/usr/local/bin";

into:

if( path == NULL )
   return val_null;

mod_neko works.

mod_neko is always working if the path has only one part (no path:path1:path2)
path = "/usr/lib/neko"                        working
path = "/usr/lib/neko:/usr/local/lib/neko"    not working.



I also noticed that mod_neko does not get the value  NEKOPATH
but PHP does ?
I used mod_env to set NEKOPATH

httpd.conf
SetEnv NEKOPATH /opt/neko/bin/


Luzifer

On 05.02.2006, at 18:14, Nicolas Cannasse wrote:

Luzifer Altenberg wrote:

jes always a bind problem.

Starting Neko Server on localhost:2000
Called from tools/Tools.nml line 36
Called from core/Args.nml line 50
Called from tools/Tools.nml line 27
Called from core/Net.nml line 82
Exception : Neko_error([EMAIL PROTECTED])

libs/std/socket.c:

if( bind(val_sock(o),(struct sockaddr*)&addr,sizeof(addr)) == SOCKET_ERROR )
        neko_error();

It would be interesting to know which errno did happen. Try replacing
neko_error() by failure(alloc_int(errno))

Nicolas

--
Neko : One VM to run them all
(http://nekovm.org)



--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to