11-11-2008 03:34 AM
Hi,
I have the following problem: I've built under linux a shared library using Application Builder of Labview 8.6, this shared library contains function using datasocket, and finally I've linked this library to a C++ program. Sometimes (let say 1 every 10) running my program I get errror 1143 every time I call functions of the library using datasocket, at this point killing my program and running again most of the times works but sometimes not. Am I missing some initialization? or something wrong with datasocket, or compiler options?
I am using gcc 3.3 and if it could be useful this is what returns ldd on my program (libmylibrary.so is the shared library built with Application Builder):
$ ldd myprogram
linux-gate.so.1 => (0xffffe000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb75a2000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb758a000)
libmylibrary.so => ./lib/libmylibrary.so (0xb7585000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7579000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7438000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xb737e000)
liblvrtdark.so.8.6 => /usr/local/lib/liblvrtdark.so.8.6 (0xb689d000)
libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0xb6886000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb685f000)
/lib/ld-linux.so.2 (0xb7f12000)
Thanks in advance,
Gonzalo
11-13-2008 07:19 AM
Hi Gonzalo,
have you installed NI Datasocket?
Regards,
Licia
11-13-2008 09:44 AM
Yes, in fact, as I said, most of the times it works.
But some times it happens that just killing my program and relaunching it, without changing anything, gives error 1143.
Gonzalo
11-13-2008 10:15 AM
Maybe a problem of firewall?
Regards.
Licia
11-13-2008 11:00 AM
I'm running everything locally and without firewalls.
Any ather suggestion?
Gonzalo