[FreeNX-kNX] porting to freebsd

Fabian Franz FabianFranz at gmx.de
Fri Mar 30 20:28:02 UTC 2007


> But now back to nx 2.1
> 
> Fabien, nxagent -display nx/nx,link=lan:1000 :1000 starts and waits,
> nxproxy -S :1000 starts and waits, terminates eventually.
> 
> Do I understand it correctly that 
> 	nxagent -display nx/nx,link=lan:1000 :1000 
> should listen on local ports 5000 (e.g. posing as nxproxy -c :1000 and
> 7000 (for x connections)?

yes

> 
> Because it's not, it's only listening on 7000. 

Hum, thats strange and seems to be the cause of the error.

But two nxproxies directly together did work?

Which is strange, because both use nxcomp to setup the listening on port 5000.

Can you strace it and see if bind() is called?

> So, maybe I could build nxagent with debugging enabled, only: how do I
> do that. I tried to change the flags in FreeBSD.cf, but there is still
> an -O3 lurking somewhere, which I can't seem to get rid of. (I just
> can't find out where it comes from, no .cf file nor Imakefile in
> directory nx-X11 has an -O3 flag in it any more....

There are #undef TEST,INFO,... in Loop.cpp of nxcomp for example.

Change this to #define TEST, #define INFO, ...

and you should get more output than you ever wanted (most goes to session file  (~/.nx/C-1000/session) though ...

cu

Fabian



More information about the FreeNX-kNX mailing list